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?
rawandnetAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
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.

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

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
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
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 Distributions

From novice to tech pro — start learning today.