LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 03-12-2006, 11:44 PM   #1
shawnbishop
Member
 
Registered: Dec 2005
Location: South Africa
Distribution: CentOS,Ubuntu,Fedora
Posts: 249

Rep: Reputation: 30
Admin User for vsftpd FTP server


Good Day

I am running a vsftp server on CentOS 4.1,I have enabled the option "cmds_allowed",I have inserted all the commands the ftp users can use,and I have omitted the DELE (delete) command,so that users cannot delete files by mistake.The problem I now have is want to create a "Admin" user that can delete files out of the FTP directories,but as the DELE command is not enable I cant do this,does anybody have an idea of how I can do this?

Regards
Shawn Bishop
 
Old 03-13-2006, 01:57 AM   #2
timmeke
Senior Member
 
Registered: Nov 2005
Location: Belgium
Distribution: Red Hat, Fedora
Posts: 1,515

Rep: Reputation: 61
If I'm not mistaken, vsftpd supports user-specific configuration options (ie configuration files for each user).

Code:
man vsftpd.conf
on my FC4 box shows the option:
user_config_dir

Enable that option, then create a config file with the same name as your admin user in /etc/vsftpd_user_conf/.
In the config file for your admin user, put a new set of allowed commands, this time including the "dele".

Another option would be to allow all user the "dele" command, but to limit their freedom by:
-chroot'ing them (and possibly not giving them the "rm" command)
-putting them in directories with sticky bit (makes deletion impossible for all users except owner = your admin user).
 
  


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
vsftpd - only one user can login to ftp greengrocer Linux - Newbie 4 12-08-2005 05:41 AM
create ftp user for vsftpd server without home directory cccc Linux - Networking 2 07-30-2005 06:32 AM
How do I create a admin user for FTP? dwz3591 Linux From Scratch 1 07-03-2005 06:47 AM
mail server user account admin? bejamex Linux - Software 0 06-22-2003 09:59 PM
vsftpd to authenticate ftp user thethakuri Linux - Networking 4 01-31-2003 03:49 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

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