Review your favorite Linux distribution.
Go Back > Forums > Linux Forums > Linux - Security
User Name
Linux - Security This forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here.


  Search this Thread
Old 06-24-2007, 10:36 PM   #1
Registered: Jul 2005
Posts: 273

Rep: Reputation: 31
what permissions to set so ftp users can't get to rest of system

Hi there,

I have a server that normally usually was only used by me. This was great, as I only had to worry about myself.

A friend needed some webspace, so I setup vsftp, and gave them a login, which leads right to thier web folder.

My problem is that they can go and get out of this directory and see everything. Put files into places other than that directory.

How do I or what permissions do I need to protect my system from this user?

Should I be looking into a chroot type of solution? Is it just a matter of changing / setting permissions on the server?

Thanks for any advice.
Old 06-25-2007, 03:23 AM   #2
LQ Guru
Registered: Jul 2003
Location: Los Angeles
Distribution: Ubuntu
Posts: 9,870

Rep: Reputation: 377Reputation: 377Reputation: 377Reputation: 377
There's an option in vsftpd.conf to chroot users to their home directories upon log-in. So you'd basically just need to activate that option and make sure you've set your user's home dir to be his web dir (by editing /etc/passwd).

Last edited by win32sux; 06-25-2007 at 03:27 AM.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
how to set permissions for normal users to access windows hard drives on suse 10? akshay_jp SUSE / openSUSE 4 12-25-2005 12:33 PM
Permissions for System users Phaethar Red Hat 2 12-08-2003 07:50 AM
I want to set up a Website and chroot the users ftp davidsch Linux - Newbie 2 11-10-2003 11:59 AM
Samba: How to set permissions on subfolders for different users. adewri Linux - Software 3 08-25-2003 11:01 AM
How to set permissions to read, execute, write for users only chupacabra Linux - General 3 12-18-2002 03:54 PM > Forums > Linux Forums > Linux - Security

All times are GMT -5. The time now is 02:34 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration