LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 06-11-2011, 04:49 PM   #1
inadram
LQ Newbie
 
Registered: Jun 2011
Posts: 2

Rep: Reputation: Disabled
delete ftp user on linux centos 5


Hi
How can i delete a ftp user on linux server centos 5 ?
 
Old 06-11-2011, 05:41 PM   #2
jschiwal
LQ Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682
What do you use for the ftp service? There are around 8 possible ftp servers you might be using, including ftpd, pure-ftpd, vsftpd and proftp.

Are users listed in a configuration file, or are they users on the system?
 
Old 06-11-2011, 07:44 PM   #3
inadram
LQ Newbie
 
Registered: Jun 2011
Posts: 2

Original Poster
Rep: Reputation: Disabled
its vsftp , i just define a group and add users with below syntax:

useradd -a -G "gruop" "username"

now i want to remove one of the users
 
Old 06-12-2011, 05:58 PM   #4
jschiwal
LQ Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682
If you added the users simply to give them ftp access, then you can use `userdel' to remove them.

You might want to look at adding a shell option to useradd such as "-s /bin/false" or "-s /bin/nologin" so they don't gain shell access.

Another option you could look at are the "userlist_enable" and "userlist_deny" options.
The vsftpd.conf manpage gives details, but I would experiment first. There might be a typo in the manpage. I'm not clear what happens if "userlist_enable yes" and "userlist_deny no" are used.

I think that you could then maintain a list of users allowed access and control access using the list.

I think that "userlist_enable yes" and "userlist_deny yes" would allow you to do what you are doing but add users to the userlist to deny them ftp access.
 
  


Reply


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 make ftp user in centoS linux mirror51 Linux - Newbie 2 07-22-2009 11:14 PM
[SOLVED] How to get notification when a user delete files from ftp site harikrishnan81 Solaris / OpenSolaris 2 02-28-2009 03:59 AM
Allow Anynomous FTP user to delete files RohanShrivastav Linux - Networking 2 10-12-2005 10:14 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 to disable ftp user's ability to delete files BrianG Linux - General 2 01-15-2002 04:40 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

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