Visit Jeremy's Blog.
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 12-18-2005, 05:51 AM   #1
Registered: Jun 2002
Distribution: Centos 4.4
Posts: 82

Rep: Reputation: 15
Setting up ftp only users in non std directories


I want to setup on a Linux server (Centos 4.1) accounts for folk that will only be allowed ftp and not in the standard /home/username directory. I have an application that will produce files for users in their own home directories and a few sub directories. The directory that the application uses as a base is /var/ftp under which each user has there own directories, e.g. user with login name bibi would have /var/ftp/bibi. I don't want that user to be able to navigate (do 'cd ..' for example or 'ls ../' outside that directory or its sub direcotries.

I am not sure how to go about this, so advice on which man pages might need to be read and general approach are most welcome.


Old 12-19-2005, 06:03 PM   #2
Registered: Feb 2002
Location: Grenoble
Distribution: Debian
Posts: 9,692

Rep: Reputation: 232Reputation: 232Reputation: 232
Which ftp server would you use? Ther are ones (like pure-ftpd) that have virtual users and options to set pretty strict policy.

I don't want that user to be able to navigate (do 'cd ..' for example or 'ls ../' outside that directory or its sub direcotries.
It's called 'chrooting'. Doable, but in different ways, depending on the FTP server software.


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 virtual users with different home directories remi Linux - Software 14 07-27-2009 12:20 PM
FTP users prevent browsing to other directories mephesto Linux - Software 2 05-07-2005 11:03 AM
setting up VSFTP for individual users and directories filch Linux - Software 0 05-13-2004 12:35 AM
FTP Users are able to Traverse directories up to the root of my server stingay Red Hat 6 10-25-2003 04:22 AM
Havin trouble allowing FTP users to access files and directories bripage Linux - Networking 9 04-15-2002 04:54 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 02:33 PM.

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