How do I delete a User?

How do I delete a User?

Post by cjo.. » Fri, 12 Jan 1996 04:00:00



        How can I delete a user from my machine?  (I made a login for
myself, but I made a mistake typing in the name & directory...) How can I
get rid of myself?
 
 
 

How do I delete a User?

Post by Theo Buitendy » Fri, 12 Jan 1996 04:00:00


Edit the passwd file in /etc.

tb.

 
 
 

How do I delete a User?

Post by Dick Chapma » Sat, 13 Jan 1996 04:00:00


'mv' HOME to the right name, and edit the change (VERY carefully!) into
/etc/passwd.
 
 
 

How do I delete a User?

Post by Henrik Soderstro » Sat, 13 Jan 1996 04:00:00


Quote:>        How can I delete a user from my machine?  (I made a login for
>Amyself, but I made a mistake typing in the name & directory...) How can >I
>get rid of myself?

Dont know if this is the only way, or the best, there may be a
"proper" command to do it as well - but anyway, this is one way:

Edit the /etc/passwd file and remove the line containing the <username>.
(careful with that file though - be sure to back it up first and
 to have a bootdisk handy as well)
Then remove the /home/<username> directory with rmdir.

Cheers   /Henrik

 
 
 

How do I delete a User?

Post by Bjorn Davidss » Sat, 13 Jan 1996 04:00:00



>    How can I delete a user from my machine?  (I made a login for
>myself, but I made a mistake typing in the name & directory...) How can I
>get rid of myself?

delete the corresponding line in /etc/passwd
then delete
/var/spool/mail/(username)
and the users home directory.

That's it!

-Bjossi-

 
 
 

How do I delete a User?

Post by Richard W. Ko » Sat, 13 Jan 1996 04:00:00


/sbin/userdel

: Edit the passwd file in /etc.

: tb.

 
 
 

How do I delete a User?

Post by David Fo » Mon, 15 Jan 1996 04:00:00




Quote:>    How can I delete a user from my machine?  (I made a login for
>myself, but I made a mistake typing in the name & directory...) How can I
>get rid of myself?

A couple of ways to remedy that.

1) edit the passwd file, change the name(s) of the variables(s) you
want to.  Ensure if you change the directory in the passwd file, you
do the same on disk.

e.g. the passwd file has '/home/useer' and you change it to
'/home/user'.  make sure you 'mv /home/useer /home/user'

If you change the login name, be sure to change the mail file..usually
found in /var/spool/mail/...

2) 'userdel xxxxxx -r' and 'rm /var/spool/mail/xxxxx' then add a new
user.

David

 
 
 

1. Uninstall Linux: Deleted "non dos partition" with DOS fdisk -- Now what?!?

I am trying to turn my DOS machine into an exclusively DOS machine again.
 But I am afraid I did things in the wrong order and I am stuck.

Background:
I had my hard drive divided into three partitions.  The first partition
held DOS, the second held Linux, the third was a swap area (for Linux).  
I also had LILO doing the booting for me.

What I did:
I used the DOS fdisk program to delete my second and third partitions.  I
fear this was my error.

Where I am now:
The Linux side of the disk is trashed.  The system halts when I try to
boot with LILO.

When I try to boot with floppies, I get through the boot disk and most of
the root disk, but after I get the messages
"MINIX-fs: mounting unchecked file system, running fsck is recommended."
"VFS: Mounted root (minix filesystem)."
the system hangs.

My plan was to get linux up again and delete those partitions (and
LILO) from the Linux side like I should have done in the first place.

What I have tried:
The DOS fdisk program will not delete the non DOS partitions.  When I
delete them they appear to have been deleted, but upon running fdisk
(dos) again they are back.

What I need:
I need to get the second half of my hard disk back.  I would also like to
get LILO out of my boot area.

I do not have a Linux machine available to me at the time.  I do have the
infomagic 3 CD developers set.

Any ideas would be appreciated.  Let me also say that I am aware I did
things in the wrong order, so you can save space by leaving out the three
paragraphs about what I should have done in the first place.

Thanks very much.  Alex.

2. EMAIL PROBLEMS !!!

3. Help: How to ID a user by user number after userid has been deleted

4. Lhin-ucks or Line-ucks

5. Users deleting other users files

6. acua

7. deleting user account: disposition of user's files?

8. KDE causing crashes?

9. Deleting users and user password revoke.

10. need to restrict users doing a su to a selected group of users

11. need to restrict users from doing a su to a selected group of users

12. Why can't I delete DOS dirs?