2
votes
3answers
1k views

How to recover a deleted /etc/passwd?

I deleted the /etc/passwd file and cannot login now. I don't know the root password and tried lots of passwords, but none of them worked. How can I fix this?
2
votes
3answers
460 views

Locked out after using usermod

After trying to change my password with usermod -p <new password> <username> ( which seemed to work but didn't give any messages ) I found I could not log in using either my old or new ...
2
votes
1answer
582 views

Ubuntu User Accounts messed up

I need to fix Ubuntu Accounts but somehow don't really see how it could be done. The problem is: files /etc/passwd and /etc/hostname and /etc/hosts where changed. /etc/passwd After ...
0
votes
1answer
820 views

Do I need user 1000, and can I replace it?

On my computer running Mythbuntu, I'm having a problem where some important processes are being run by a user called 1000. $ ps -aux | grep myth Warning: bad ps syntax, perhaps a bogus '-'? See ...
12
votes
3answers
6k views

I deleted the “/etc/passwd” file and cannot log in

I was trying to change my username and also my home directory (/home/username) and my system started to crash. I deleted the passwd file but I had a backup named passwd_bkp. I tried to rename this ...
6
votes
1answer
1k views

Replacement for non-interactive “chpasswd -e”?

On older Debian machines one could issue something like: echo '<username>:*'|chpasswd -e in order to change the password field of the user (<username>) to *. Now I am aware of passwd ...
2
votes
2answers
6k views

How to add user without useradd command?

Is it possible to add a user in ubuntu linux without useradd command I think its possible by adding the entries in /etc/passwd and /etc/shadow but i don't know the exact steps to do it and the user ...