LinuxQuestions.org
Go Job Hunting at the LQ Job Marketplace
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Fedora
User Name
Password
Fedora This forum is for the discussion of the Fedora Project.

Notices

Reply
 
LinkBack Search this Thread
Old 05-05-2005, 12:36 AM   #1
pantera
Member
 
Registered: May 2004
Posts: 80

Rep: Reputation: 15
delete user


i used the user manager in fc3 to delete the user ......the users home directory is deleted but still the user appears in the user manager's list of users........another problem is that when i itried to assign other groups to another user it didt add the other groups to the user
can i do all these in command line?
 
Old 05-05-2005, 02:07 AM   #2
heema
Senior Member
 
Registered: Sep 2003
Location: Egypt
Distribution: Arch
Posts: 1,528

Rep: Reputation: 46
the great thing about linux is that you could do almost anything from the commandline

to delete a user :
su
<your root password>
userdel -r username

-r
Files in the user's home directory will be removed along with the home directory itself and the user's mail spool. Files located in other file systems will have to be searched for and deleted manually.
 
Old 05-06-2005, 04:37 AM   #3
pantera
Member
 
Registered: May 2004
Posts: 80

Original Poster
Rep: Reputation: 15
not working

i did userdel -r <username>
but it showed me
bash: userdel: command not found
 
Old 05-06-2005, 05:06 AM   #4
mousebubble
LQ Newbie
 
Registered: Feb 2004
Location: Ohio
Distribution: Ubuntu
Posts: 16

Rep: Reputation: 0
try

su -

instead of just su
 
Old 05-06-2005, 05:27 AM   #5
pantera
Member
 
Registered: May 2004
Posts: 80

Original Poster
Rep: Reputation: 15
i did delete the user but in the gui user manager the deleted user still exists
 
Old 05-06-2005, 06:20 AM   #6
pantera
Member
 
Registered: May 2004
Posts: 80

Original Poster
Rep: Reputation: 15
another proble,

i tried to addnew user(using useradd) but it said
useradd: cannot rewrite password file
 
Old 09-16-2005, 05:49 AM   #7
cwmaher
LQ Newbie
 
Registered: Sep 2005
Posts: 3

Rep: Reputation: 0
Question userdel: cannot rewrite password file

I'm getting a similar problem when I try to add or delete a user:

userdel: cannot rewrite password file
userdel: cannot rewrite shadow password file

There are no .lock files in /etc

Anybody got any ideas?


Cheers,
Ciaran
 
Old 09-16-2005, 06:19 AM   #8
cwmaher
LQ Newbie
 
Registered: Sep 2005
Posts: 3

Rep: Reputation: 0
Question SE Linux?

Just been lookin around abit more, does anybody know if it ould have anything to do with having SE enabled?

Last edited by cwmaher; 09-16-2005 at 06:26 AM.
 
Old 09-16-2005, 07:11 PM   #9
sum1else
Member
 
Registered: Sep 2005
Posts: 47

Rep: Reputation: 15
ya thats probably your whole problem right there..
i disabled SE after having more problems than i can remember with it and haven't had a prob since.
 
Old 09-20-2005, 06:34 AM   #10
cwmaher
LQ Newbie
 
Registered: Sep 2005
Posts: 3

Rep: Reputation: 0
Smile all fixed

SE was already disabled.

Found out the problem, my root partition was nearly full, I moved a few files and all is good again.

Cheers,
Ciarán
 
  


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
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
how do I delete my user FlyingSolo General 3 04-13-2005 05:26 AM
newbie question: How to delete a user? preswang Linux - Newbie 3 10-29-2003 07:13 PM
cant delete user account!!! farhanali Linux - General 7 04-29-2003 08:31 AM
How can I delete a profile/user from the forum? Womandrake General 3 04-21-2003 12:48 PM
Is it safe to delete default nobody user? dunkyb Linux - General 2 03-16-2003 12:38 PM


All times are GMT -5. The time now is 05:22 PM.

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
Open Source Consulting | Domain Registration