LinuxQuestions.org
Review your favorite Linux distribution.
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 03-08-2003, 10:57 AM   #1
centr0
Member
 
Registered: Feb 2003
Location: Earth
Distribution: Slackware 9.1
Posts: 134

Rep: Reputation: 15
how to delete users?


how do you delete users?

running RHL8 i checked hat>system settings>user and groups. the user i want to delete is not there. is there any way in the terminal?
 
Old 03-08-2003, 10:59 AM   #2
Crashed_Again
Senior Member
 
Registered: Dec 2002
Location: Atlantic City, NJ
Distribution: Ubuntu & Arch
Posts: 3,503

Rep: Reputation: 57
userdel username

If you want to delete there home directory as well you would do:

userdel -r username
 
Old 03-08-2003, 11:00 AM   #3
Mara
Moderator
 
Registered: Feb 2002
Location: Grenoble
Distribution: Debian
Posts: 9,537

Rep: Reputation: 149Reputation: 149
'userdel' is the command you're looking for.
 
Old 03-08-2003, 09:22 PM   #4
centr0
Member
 
Registered: Feb 2003
Location: Earth
Distribution: Slackware 9.1
Posts: 134

Original Poster
Rep: Reputation: 15
there is a user name: nfsnobody

how do i get rid of that?
 
Old 03-09-2003, 02:27 AM   #5
Mara
Moderator
 
Registered: Feb 2002
Location: Grenoble
Distribution: Debian
Posts: 9,537

Rep: Reputation: 149Reputation: 149
userdel nfsnobody
 
Old 03-09-2003, 06:54 AM   #6
centr0
Member
 
Registered: Feb 2003
Location: Earth
Distribution: Slackware 9.1
Posts: 134

Original Poster
Rep: Reputation: 15
Code:
# userdel nfsnobody
bash: userdel: command not found
tried that already
 
Old 03-09-2003, 07:14 AM   #7
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,414

Rep: Reputation: 1966Reputation: 1966Reputation: 1966Reputation: 1966Reputation: 1966Reputation: 1966Reputation: 1966Reputation: 1966Reputation: 1966Reputation: 1966Reputation: 1966
you're not root then. look for it in /sbin/
 
Old 03-09-2003, 10:42 AM   #8
Mara
Moderator
 
Registered: Feb 2002
Location: Grenoble
Distribution: Debian
Posts: 9,537

Rep: Reputation: 149Reputation: 149
/sbin/userdel or /usr/sbin/userdel. Better first try
locate userdel
and see the path it says.
 
Old 03-09-2003, 11:58 AM   #9
cuckoopint
Member
 
Registered: Feb 2003
Distribution: Debian
Posts: 797

Rep: Reputation: 30
there's also 'deluser'

also, there's a seperate option for deleting system users.
lastly, make sure the user is not logged in and does not have running processes.
 
Old 03-09-2003, 01:48 PM   #10
centr0
Member
 
Registered: Feb 2003
Location: Earth
Distribution: Slackware 9.1
Posts: 134

Original Poster
Rep: Reputation: 15
ok i just did a :

cat /etc/passwd

and i got a whole list off accts on there. do i need all of these accts? which ones can i delete?
 
Old 03-09-2003, 02:15 PM   #11
lynch
Member
 
Registered: Nov 2000
Location: A Mid-Atlantic state
Distribution: SuSE 8.1,Knoppix 3.2,Mandrake 9.1
Posts: 388

Rep: Reputation: 30
Each one of those usernames is there for a reason.It depends on what you do with the computer you run Linux on.For example,if you run an ftp server and you dont want to allow anonymous logon to the ftp server,you would want to remove the user ftp.Dont just start deleting usernames from the passwd file:you could screw things up.
lynch
 
Old 03-10-2003, 12:22 PM   #12
Mara
Moderator
 
Registered: Feb 2002
Location: Grenoble
Distribution: Debian
Posts: 9,537

Rep: Reputation: 149Reputation: 149
You can delete from /etc/passwd, but you must also do the same in /etc/shadow.
 
  


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
can i delete all the users except...... wangjinyi Linux - Security 10 10-23-2005 09:04 PM
Allow two users write access, but not delete jimieee Linux - General 4 03-29-2005 08:37 AM
how can i veiw and delete users citrus Linux - Newbie 2 05-21-2004 05:15 PM
How do I give users read but not delete permission suse7.1user Linux - General 2 09-03-2003 05:13 PM
how do i delete users? ShawnD Linux - General 9 07-22-2002 10:06 AM


All times are GMT -5. The time now is 07:22 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration