LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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!

Notices


Reply
  Search this Thread
Old 07-22-2009, 08:45 PM   #1
mirror51
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
born4linux
Senior Member
 
Registered: Sep 2002
Location: Philippines
Distribution: Slackware, RHEL&variants, AIX, SuSE
Posts: 1,127

Rep: Reputation: 49
so
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:

chroot_list_enable=YES
chroot_local_user=YES

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
mirror51
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
 
  


Reply



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

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 06:36 PM.

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