LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 04-28-2003, 08:31 AM   #1
farhanali
LQ Newbie
 
Registered: Apr 2003
Location: Pakistan
Distribution: Ubuntu
Posts: 15

Rep: Reputation: 0
cant delete user account!!!


hi

i tried to delete one account on my linux box and tried two methods ... both failed with the same reply

"vipw lockfile (/etc/ptmp) is present."

by using linux conf i was able to delete the users homedir, but when i the user is still listed and i can login with that userid and password, albeit with some warning messages.

by the way...i am using mandrake 9

thanks in advance
Farhan Ali
 
Old 04-28-2003, 08:40 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
You can simply delete the user from /etc/passwd if you'd like.

Also, I am not sure if it's distro specific, but as root try:
userdel -r username

And that should delete the user and their home directory.

Cool
 
Old 04-28-2003, 08:44 AM   #3
trickykid
LQ Guru
 
Registered: Jan 2001
Posts: 24,149

Rep: Reputation: 270Reputation: 270Reputation: 270
Re: cant delete user account!!!

Quote:
Originally posted by farhanali
by using linux conf i was able to delete the users homedir, but when i the user is still listed and i can login with that userid and password, albeit with some warning messages.
Just to point out, don't use linuxconf, as you can see its buggy and unstable. Its better to maybe use another GUI program that Mandrake might come installed with, webmin, etc or actually its just best to do it manually by the command like MasterC pointed out. Much more effecient.
 
Old 04-28-2003, 09:39 AM   #4
benjaminrtz
Member
 
Registered: Jul 2002
Location: India
Distribution: Ubuntu, Gentoo
Posts: 99

Rep: Reputation: 15
Also u can use the drakxconf tools provided

by Mandrake


just type


drak<press tab>

u'll get the all draks tools
 
Old 04-28-2003, 10:58 AM   #5
farhanali
LQ Newbie
 
Registered: Apr 2003
Location: Pakistan
Distribution: Ubuntu
Posts: 15

Original Poster
Rep: Reputation: 0
thanks but still the same problem ... userdel -r username still gives the same message. userdrake also gives the same message

Farhan Ali
 
Old 04-28-2003, 11:16 AM   #6
trickykid
LQ Guru
 
Registered: Jan 2001
Posts: 24,149

Rep: Reputation: 270Reputation: 270Reputation: 270
Quote:
Originally posted by farhanali
thanks but still the same problem ... userdel -r username still gives the same message. userdrake also gives the same message

Farhan Ali
Well, what does the file /etc/ptmp have in it that might be preventing you from removing a user? Does the file even exist?

This page might be of help in explaining what the ptmp file is and does: http://mail-index.netbsd.org/netbsd-...6/28/0004.html

Last edited by trickykid; 04-28-2003 at 11:18 AM.
 
Old 04-29-2003, 01:17 AM   #7
farhanali
LQ Newbie
 
Registered: Apr 2003
Location: Pakistan
Distribution: Ubuntu
Posts: 15

Original Poster
Rep: Reputation: 0
Quote:
Originally posted by farhanali
thanks but still the same problem ... userdel -r username still gives the same message. userdrake also gives the same message

Farhan Ali
hey guys ... guess what ... as advised, i just deleted the info from /etc/passwd and viola... the account is gone.

i guess userdrake,userdel and linuxconf all are buggy...

Farhan Ali
 
Old 04-29-2003, 08:31 AM   #8
trickykid
LQ Guru
 
Registered: Jan 2001
Posts: 24,149

Rep: Reputation: 270Reputation: 270Reputation: 270
Quote:
Originally posted by farhanali
hey guys ... guess what ... as advised, i just deleted the info from /etc/passwd and viola... the account is gone.

i guess userdrake,userdel and linuxconf all are buggy...
Well I never trust linuxconf but the others most likely aren't buggy, your passwd file was just locked somehow after a process that might have been accessing it or such didn't close or die properly.

But editing and configuring manually by hand will usually always work. You might not have the user no longer in the passwd file but if you want to completely remove the user, don't forget any home directories, mail spool directories and such to remove 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
system account or user account??? yenonn Linux - Newbie 6 05-10-2006 07:49 PM
eBay threatens to delete my account for selling linux Ptrs!OP General 21 06-24-2005 03:11 PM
My user account mfo6463 Linux - Newbie 9 05-13-2004 05:34 PM
ftp user account? marri Linux - Software 0 05-05-2004 06:45 AM
accept (.) in user account reaky Linux - General 1 04-27-2004 04:50 AM

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

All times are GMT -5. The time now is 09:24 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