error SFTP error #3 Permission denied

Lucky Tham
Lucky Tham used Ask the Experts™
on
Hi,

How to resolve this error SFTP error #3 Permission denied mobaxterm to access on redhat VM lucky directory. thanks
error1.jpg
Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
Gerwin Jansen, EE MVETopic Advisor
Most Valuable Expert 2016

Commented:
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.
Lucky ThamFreelancer

Author

Commented:
How to issue the command on redhat?  Thanks
Gerwin Jansen, EE MVETopic Advisor
Most Valuable Expert 2016

Commented:
To give access:

# cd /home
# chmod 755 lucky

And to check what is wrong:

# grep lucky /etc/passwd
Lucky ThamFreelancer

Author

Commented:
Thanks.
David FavorFractional CTO
Distinguished Expert 2018

Commented:
If you require many users to have access to files + directories owned by other users, research the setfacl command also.

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial