• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 529
  • Last Modified:

allow users to use sftp only access one folder

I want to allow users to user sftp to upload and download files frome one folder, as you know this uses ssh, my question is if i create user to access linux server through ftpd they will be able to browse the root directry, can I create users and ristrict them to only specific directory?
0
rawandnet
Asked:
rawandnet
3 Solutions
 
MikeKaneCommented:
Are you using vs-ftpd?   If so, you can setup a list of virtual users and map them to a 'local_root'.    Or, create multiple users all mapped to the same folder....  

Here's how:
http://howto.gumph.org/content/setup-virtual-users-and-directories-in-vsftpd/

0
 
rawandnetAuthor Commented:
I am using fstp which is ssh based,
0
 
Jan SpringerCommented:
Have you read documents such as this?

http://blogs.techrepublic.com.com/opensource/?p=229
0
 
arober11Commented:
Per _jespers_ comments, a quick tweak of the /etc/ssh/sshd_config and bounce should suffice.

But if your running an old OpenSSHD < v4,  you may have to upgrade the daemon or look at installing one of the Scp/FTP only chrooted shells e.g. http://sublimation.org/scponly/wiki/index.php/Main_Page and change the users shell.
0
 
rawandnetAuthor Commented:
thaks guys, now i can access sftp after recompiling openssh openssl and zlib.

thanks
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Introducing Cloud Class® training courses

Tech changes fast. You can learn faster. That’s why we’re bringing professional training courses to Experts Exchange. With a subscription, you can access all the Cloud Class® courses to expand your education, prep for certifications, and get top-notch instructions.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now