troubleshooting Question

restrict sftp user access

Avatar of enthuguy
enthuguyFlag for Australia asked on
LinuxNetworkingFTP* File Transfer
4 Comments2 Solutions63 ViewsLast Modified:
Hi Linux, Network, SFP experts,

could you please suggest, how to restrict a user sftp access

scenario:
Have a linux server
Created a local user "sftpuser" on the Amazon Linux server
Since we just wanted to allow sftp access to a particualar directory
Installed required sftp packages etc and mounted a NAS drive
Now, I can sftp to this host without any issues.

My request is
1. how can I restrict this user "sftpuser" to access only a particular directory (NAS mounted path) with readwrite access
2. Is it possible to give only a readonly access (not write) to a particular directory (NAS mounted path)
3. First time it asks for host confirmation and I have to type yes, then all the subsquent login is fine wihtout prompt. So how to avoid them

kindy please help
Join the community to see this answer!
Join our exclusive community to see this answer & millions of others.
Unlock 2 Answers and 4 Comments.
Join the Community
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 2 Answers and 4 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros