LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Server (https://www.linuxquestions.org/questions/linux-server-73/)
-   -   delete ftp user on linux centos 5 (https://www.linuxquestions.org/questions/linux-server-73/delete-ftp-user-on-linux-centos-5-a-885800/)

inadram 06-11-2011 04:49 PM

delete ftp user on linux centos 5
 
Hi
How can i delete a ftp user on linux server centos 5 ?

jschiwal 06-11-2011 05:41 PM

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?

inadram 06-11-2011 07:44 PM

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

jschiwal 06-12-2011 05:58 PM

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.


All times are GMT -5. The time now is 03:31 AM.