Deleting a User - Was -Re: [K12OSN] (no subject)

jkinz@ultranet.com
Thu, 07 Mar 2002 12:29:18 -0500


At 12:08 PM 3/7/2002 -0500, rich wrote: 
>>>>
How do I delete the account?  When I use linuxconf to delete the account and then add that same accountid in, the system still doesnot run properly.
  
Is there another file somewhere I need to edit to completely delete the accountid.
  
ps - whats the command to delete an account?   I'm using "adduser" to add them in, but whats the delete user command???
<<<<

Hi Rich - here's a little tip to save you some time and frustration in the future - 

apropos delete | grep -i user

Will tell you what commands have "delete" and "user" in their description.

Here is what you might get back
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
Tcl_DeleteAssocData  (3)  - manage associations of string keys and user spe
Tcl_DeleteAssocData [AssocData] (3)  - manage associations of string keys a
Tcl_DeleteAssocData [Tcl_GetAssocData] (3)  - manage associations of string
Tcl_DeleteAssocData [Tcl_SetAssocData] (3)  - manage associations of string
Tcl_GetAssocData [Tcl_DeleteAssocData] (3)  - manage associations of string
Tcl_SetAssocData [Tcl_DeleteAssocData] (3)  - manage associations of string
userdel              (8)  - Delete a user account and related files

>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>

Here's another trick :

There is a section in each of the man pages entitled "SEE ALSO".

When you read the man page for any command, this section, (its near the bottom),
will tell you about other commands related to the one you are reading about.

For example - at the end of the adduser page the SEE ALSO section lists:
      SEE ALSO
       chfn(1),   chsh(1),   crypt(3),    groupadd(8),
       groupdel(8),       groupmod(8),      passwd(1),
       userdel(8), usermod(8)

Ok - Now which of these entries will help you delete a user ?
Well - you have to guess based on the name.

"userdel" looks promising doesn't it ?   "man userdel" will tell you
everything you need to know.

Final Hint - when adding and deleting accounts always use the same toolset to 
manage them.  eg. if using linuxconf to add accounts, also use linuxconf to 
delete accounts.  If using adduser to add accounts, use userdel to delete them.




--
Jeff Kinz, Emergent Research,  Hudson, MA. Email may contain words incorrectly
generated by Speech Recognition software. "jkinz@ultranet.com" copyright 1997-2002.
Use restricted to non-UCE uses. Any other use is an acceptance of the offer
at www.ultranet.com/~jkinz/policy.html.



_______________________________________________
K12OSN mailing list
K12OSN@redhat.com
https://listman.redhat.com/mailman/listinfo/k12osn
For more info see