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
Lucky ThamFreelancerAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Gerwin Jansen, EE MVETopic Advisor 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 ThamFreelancerAuthor Commented:
How to issue the command on redhat?  Thanks
Gerwin Jansen, EE MVETopic Advisor Commented:
To give access:

# cd /home
# chmod 755 lucky

And to check what is wrong:

# grep lucky /etc/passwd
Lucky ThamFreelancerAuthor Commented:
Thanks.
David FavorLinux/LXD/WordPress/Hosting SavantCommented:
If you require many users to have access to files + directories owned by other users, research the setfacl command also.
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Linux

From novice to tech pro — start learning today.