Dont know if this is the only way, or the best, there may be aQuote:> 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?
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.
: Edit the passwd file in /etc.
A couple of ways to remedy that.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?
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
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.
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.
3. Help: How to ID a user by user number after userid has been deleted
5. Users deleting other users files
7. deleting user account: disposition of user's files?
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?