Click to See Complete Forum and Search --> : Deleting and restricting users
Chase
11-19-2001, 12:20 AM
I'll post this here, since the general forum doesn't work. I've got two probally really easy questions.
1.) How do I delete users?
2.) How do I disable services for certian users (telnet, ssh, apache, qmail, etc)
Any help is appreciated. Thanks!
- Chase
bdg1983
11-19-2001, 02:26 AM
userdel <user>
I'm not sure if you can disable services by users. Usually you would comment out the services in /etc/services, but that would disable them for all users.
There is probably a way to do this though I can't think of it right now.
Chase
11-21-2001, 05:22 PM
userdel did the trick, thanks!
It does delete the /home/user directory, but whatever, heh.
X_console
11-22-2001, 06:19 AM
userdel -r <user> will delete the user and his home directory.
If you want to allow only certain people to use certain services, one way to do this is to create a group and then only include users who are allowed to execute the services in that group. Then change the permissions of the programs you want them to run by removing world rwx and changing the group to the group you created.