Review your favorite Linux distribution.
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 03-11-2010, 12:59 AM   #1
Registered: Apr 2009
Location: Bengaluru, India
Distribution: RHEL 5.4, 6.0, Ubuntu 10.04
Posts: 704

Rep: Reputation: 55
Best way to implement ftp upload

Dear All,

I have followed following steps to implement, ftp upload by test1 user.

1. Add group ftp-users
# /usr/sbin/groupadd ftp-users

2. User test1 has been added to the group of ftp-users with /home/ftp-docs as home directory
# /usr/sbin/usermod -g ftp-users -d /home/ftp-docs  test1

3. Ownership and permission of /home/ftp-docs has been changed to provide read/write access to user test1 and group ftp-users
# chown test1.ftp-users /home/ftp-docs
# chmod 770 /home/ftp-docs
But My intention is for the user who login with test1 user privileges, he should not be able to browse any other direcoties say /, /var /etc etc.

Also he should not be able to change to any other directory.

How can I accomplish this ?
Old 03-11-2010, 06:31 AM   #2
Senior Member
Registered: Oct 2004
Distribution: Fedora Core 4, 12, 13, 14, 15, 17
Posts: 2,279

Rep: Reputation: 249Reputation: 249Reputation: 249
With vsftp you could create a chroot jail
Old 03-11-2010, 06:37 AM   #3
Registered: Jul 2007
Location: Scunthorpe, UK
Distribution: Ubuntu 8.10; Gentoo; Debian Lenny
Posts: 961

Rep: Reputation: 69
I suppose you could also just have the FTP daemon running as an FTP user (Which it ought to be doing anyway) which has a strict set of permissions stopping it from accessing these directories (Which it should be doing anyway)


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
Is there an ftp program that allows for multi-thread ftp uploads ? Want faster upload brjoon1021 Linux - Software 4 02-04-2009 07:28 PM
FTP UPload! nooni Linux - Newbie 3 03-15-2008 04:20 PM
How do I implement an ftp pull? dallasapollo Linux - Newbie 1 08-15-2006 03:20 PM
Can't Upload FTP twantrd Linux - General 1 03-28-2003 10:15 PM
ftp upload hotrodowner Linux - Networking 20 10-11-2002 05:23 PM > Forums > Linux Forums > Linux - Newbie

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