Welcome to the most active Linux Forum on the web.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 06-18-2007, 12:41 AM   #1
LQ Newbie
Registered: Jun 2007
Posts: 1

Rep: Reputation: 0
FTP Permissions Question

Nice to meet you.
I'm new to Linux.

I'm running a server off of Fedora 7.
I'm FTPing with vsftpd.

I have the directory /var/www/sub.

I have the user1 who's home directory is /var/www/sub/user1.
I have the user2 who's home directory is /var/www/sub/user2.

Right now, no matter who I login as for FTP (except anonymous) I can access all folders on the server.
I only want user1 to be able to access /var/www/sub/user1 and user2 to only access /var/ww/sub/user2. I don't want them to have permissions to access any of the parent directories or any other folder on the server for that matter.

How can I do this?
Old 06-18-2007, 07:48 PM   #2
Registered: Jul 2004
Location: louisiana
Distribution: fedora 4/kubuntu
Posts: 116

Rep: Reputation: 15
ftp chroot
Old 06-19-2007, 10:03 AM   #3
LQ Newbie
Registered: Jun 2007
Posts: 10

Rep: Reputation: 0
you have to configure your users so they are "jailed" in their own directory. that way they can only see what's in their directory and nobody else's. jscape secure ftp server for linux does this automatically. you can download free community edition at:
Old 06-20-2007, 04:25 AM   #4
Wim Sturkenboom
Senior Member
Registered: Jan 2005
Location: Roodepoort, South Africa
Distribution: Slackware 10.1/10.2/12, Ubuntu 12.04, Crunchbang Statler
Posts: 3,786

Rep: Reputation: 282Reputation: 282Reputation: 282
#WimS; additional config
#jail user to their homedirectory

#only allow me
The first directive (above) in the file vsftpd.conf enables the 'jail'. Unfortunately I don't know how to 'tranfer' it to the web directories (/var/www/sub) for the users. My approach is therefor slightly different: each user has his normal home directory and I tell Apache to look there for the files.

  +-- user1
  |    |
  |    +-- web (document root)
  |    |
  |    +-- inc
  +-- user2
  |    |
  |    +-- web (document root)
  |    |
  |    +-- inc
I use the following for my virtual host (as an example); apache 1.3!

#  General setup for the virtual host
DocumentRoot "/home/commandcentre/web"
ServerName btd-commandcentre


ftp, permissions, vsftpd

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
FTP, permissions help Odins_Son Linux - Newbie 9 02-21-2006 05:09 PM
FTP permissions question Seventh Linux - Newbie 9 06-23-2004 03:55 PM
Apache FTP permissions question Seventh Linux - Newbie 1 05-20-2004 03:09 PM
ftp permissions race Linux - Networking 0 01-15-2004 01:33 PM
FTP Permissions Wynd Linux - General 4 11-04-2003 08:53 PM

All times are GMT -5. The time now is 11:00 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