Share your knowledge at the LQ Wiki.
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 07-22-2009, 08:45 PM   #1
LQ Newbie
Registered: Jul 2009
Posts: 12

Rep: Reputation: 0
how to make ftp user in centoS linux

I have made o0ne directory with root permission /backups

Now i want that i make one ftp user so that he can access that folder to download all the backups.
I know how to give permisions but i don't know to make ftp user and assign him that directory
Old 07-22-2009, 09:49 PM   #2
Senior Member
Registered: Sep 2002
Location: Philippines
Distribution: Slackware, RHEL&variants, AIX, SuSE
Posts: 1,127

Rep: Reputation: 49
1. you want the ftpuser to download something via ftp into /backups? or
2. you want the ftpuser to do an ftp upload to your machine's /backups directory?

if its 2 then:

1. set /backups as ftpuser's home directory (man usermod/man chown)
2. jail the user to /backups (meaning user can only access /backups
if using vsftpd, you can edit /etc/vsftpd/vsftpd.conf and set the ff:


3. if using selinux:

chcon -t public_content_rw_t /backups/
setsebool -P ftp_home_dir on

so you can do an ftp write to /backups.

and that should be ok after restarting vsftpd.

Last edited by born4linux; 07-22-2009 at 10:23 PM.
Old 07-22-2009, 11:14 PM   #3
LQ Newbie
Registered: Jul 2009
Posts: 12

Original Poster
Rep: Reputation: 0
I am using centOS 5.3 . Mine is case 1 that use can only download from backups.

I have pureFTPd installed as ftp server


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 clone CentOS linux? I want to make same copy into another PC. rahilmaknojia Linux - Software 2 05-15-2009 11:14 PM
How to make a new linux install CD-Rom from centos 4.3 sumargin Linux - General 1 08-18-2006 05:35 AM
how to make linux(centOS) use more than 1 partitions lnthai2002 Linux - General 4 02-08-2006 05:52 PM
how to make that ftp user could upload files, but not to delete! spotass Linux - Newbie 4 06-12-2004 06:11 PM
How do I make ftp up- and downloads the only thing a restricted user can do? jgilels Linux - Security 3 08-15-2003 01:38 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 07:41 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
Open Source Consulting | Domain Registration