LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 07-20-2002, 02:53 AM   #1
ShawnD
Member
 
Registered: Jul 2002
Distribution: Mandrake 8.2
Posts: 127

Rep: Reputation: 15
how do i delete users?


i added a user which i now want to delete. i was thinxin that if i editted out the line saying that user exists in the file /etc/passwd but if that isn't the only place that user shows up, it's like shooting myself in the food because it screws up the system.

if you know the command, please share it
 
Old 07-20-2002, 03:31 AM   #2
MasterC
LQ Guru
 
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu ; CentOS ; Raspbian
Posts: 12,613

Rep: Reputation: 69
/usr/sbin/userdel

Check out:
http://www-jerry.oit.duke.edu/linux/...del_users.html
 
Old 07-20-2002, 04:14 AM   #3
ShawnD
Member
 
Registered: Jul 2002
Distribution: Mandrake 8.2
Posts: 127

Original Poster
Rep: Reputation: 15
thanks dude, i made a backup on my forum incase i forget that
 
Old 07-20-2002, 04:14 AM   #4
MasterC
LQ Guru
 
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu ; CentOS ; Raspbian
Posts: 12,613

Rep: Reputation: 69
Your welcome, glad I could help.
 
Old 07-20-2002, 05:07 AM   #5
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
/sbin/userdel -r would take care of that,wouldnt it?
lynch

Last edited by lynch; 07-20-2002 at 05:08 AM.
 
Old 07-20-2002, 05:17 AM   #6
ShawnD
Member
 
Registered: Jul 2002
Distribution: Mandrake 8.2
Posts: 127

Original Poster
Rep: Reputation: 15
"no such file or directory"

the first guy was right
 
Old 07-20-2002, 05:19 AM   #7
MasterC
LQ Guru
 
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu ; CentOS ; Raspbian
Posts: 12,613

Rep: Reputation: 69
Only this time, Lynch appears to be right 99.998% of the time though. The .001% that I have ever read is just this one, but it's probably just because of distro differences. He appears to know his Linux very well.
 
Old 07-20-2002, 05:42 AM   #8
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
*Post embarrassing admition here*
I quite forgot to include the usr directory in my command.
Thanks,guys.I try to be a careful Linux user
lynch
 
Old 07-20-2002, 09:21 PM   #9
linuxcool
LQ Addict
 
Registered: Jun 2001
Posts: 1,183

Rep: Reputation: 47
lynch, you have it right. I checked the man page and it indicated that all you needed was the -r and the user name.

It could be that userdel is not in /sbin on his system. It could be in /usr/sbin as MasterC said. So, /usr/sbin/userdel -r <user_name> should have worked.
 
Old 07-22-2002, 10:06 AM   #10
JHuizingh
Member
 
Registered: Jun 2001
Distribution: Gentoo 1.4
Posts: 140

Rep: Reputation: 15
Just for clarification, using userdel without flags removes the user. userdel -r removes the home directory as well.
 
  


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 On
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 to delete users? centr0 Linux - Newbie 11 03-10-2003 12:22 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 06:20 AM.

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