Link to home
Start Free TrialLog in
Avatar of Lucky Tham
Lucky Tham

asked on

error SFTP error #3 Permission denied

Hi,

How to resolve this error SFTP error #3 Permission denied mobaxterm to access on redhat VM lucky directory. thanks
error1.jpg
Avatar of Gerwin Jansen
Gerwin Jansen
Flag of Netherlands image

The owner of the 'lucky' folder is an account with the uid 1001 - since you are having access to the 'cloud-user' directory you must be connecting as 'cloud-user'. That user does not have access to the 'lucky' folder because of the uid being 1001 and the directory is not readable for other users (or groups). If the directory of the '1001' folder would have right drawer-xr-x you would be able to read it.
Avatar of Lucky Tham
Lucky Tham

ASKER

How to issue the command on redhat?  Thanks
To give access:

# cd /home
# chmod 755 lucky

And to check what is wrong:

# grep lucky /etc/passwd
Thanks.
If you require many users to have access to files + directories owned by other users, research the setfacl command also.
This question needs an answer!
Become an EE member today
7 DAY FREE TRIAL
Members can start a 7-Day Free trial then enjoy unlimited access to the platform.
View membership options
or
Learn why we charge membership fees
We get it - no one likes a content blocker. Take one extra minute and find out why we block content.