LinuxQuestions.org
Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
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 01-15-2004, 05:40 AM   #1
lozz1978
Member
 
Registered: Jan 2004
Location: Sunny UK
Distribution: Slackware 9.1
Posts: 53

Rep: Reputation: 15
Deleting a user account from prompt


Hi there

I need to know where the account files are, I want to delete a user account, so he cant login, I have only a command prompt.

any ideas ?

I thought it would be /usr/

but cant find it,

thanks

lozz
 
Old 01-15-2004, 05:51 AM   #2
MartinN
Member
 
Registered: Nov 2003
Location: Ronneby, Sweden
Posts: 555

Rep: Reputation: 30
Hi!

man userdel

Regards
Martin
 
Old 01-15-2004, 05:53 AM   #3
slano
Member
 
Registered: May 2003
Distribution: slack,gentoo
Posts: 57

Rep: Reputation: 16
wt

Last edited by slano; 01-15-2004 at 05:54 AM.
 
Old 01-15-2004, 06:12 AM   #4
lozz1978
Member
 
Registered: Jan 2004
Location: Sunny UK
Distribution: Slackware 9.1
Posts: 53

Original Poster
Rep: Reputation: 15
Spot on with the info, thanks mate
 
Old 01-15-2004, 06:30 AM   #5
willand
Member
 
Registered: Dec 2003
Location: Paris, France
Distribution: Debian, Knoppix & Mandrake
Posts: 52

Rep: Reputation: 15
i think that deluser runs correctly (the useradd and adduser runs)
 
Old 01-15-2004, 07:06 AM   #6
lozz1978
Member
 
Registered: Jan 2004
Location: Sunny UK
Distribution: Slackware 9.1
Posts: 53

Original Poster
Rep: Reputation: 15
Do i have to be in a certain directory to run deluser ?

Im trying to del a user that i created called danr, I run the deluser and the command is not reconized ?

I have checked the man deluser page, but im a noob and dont really understand to much,


Thanks again for the quick responses


Lozz
 
Old 01-15-2004, 08:29 AM   #7
MartinN
Member
 
Registered: Nov 2003
Location: Ronneby, Sweden
Posts: 555

Rep: Reputation: 30
Hi again!

In my distribution (RedHat 8) it's:
/usr/sbin/userdel

If that doesn't work, try
locate userdel
to find the command.

And you need to be root of course

Martin
 
Old 01-15-2004, 08:40 AM   #8
LinuxLala
Senior Member
 
Registered: Aug 2003
Location: New Delhi, India
Distribution: Fedora 7
Posts: 1,305

Rep: Reputation: 45
no specific directory but you have to be a root user. just key in
deluser username

that is all
 
Old 01-15-2004, 08:43 AM   #9
LinuxLala
Senior Member
 
Registered: Aug 2003
Location: New Delhi, India
Distribution: Fedora 7
Posts: 1,305

Rep: Reputation: 45
No. as root do
user del -r username

The -r deletes the users home directory and all the files in it. If u dont do -r you will never be able to make a new user with that username
 
  


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
deleting account @ LQ .hack LQ Suggestions & Feedback 4 08-04-2005 09:13 AM
Stuck at Grub2 prompt after deleting Linux partition of dual boot alcorta Linux - Software 3 07-09-2005 12:12 AM
X wont start after deleting user account RockmanExe Mandriva 7 03-30-2004 09:03 PM
Deleting account Jose Muņiz LQ Suggestions & Feedback 2 07-09-2003 03:23 PM
how do you turn prompt off when deleting files on redhat 8 changwoo Linux - Newbie 5 05-08-2003 09:12 PM


All times are GMT -5. The time now is 01:32 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration