Tagged Questions

Questions about the file `/etc/passwd`. Contents, manipulation and recovery.

learn more… | top users | synonyms

0
votes
0answers
35 views

Check if the password has changed yet

I am supposed to ask the user to change his password then wait for some time then check if he has changed it how can I check if the password has been changed??
2
votes
1answer
318 views

Postfix+Dovecot Unix user authentication

I want to set up a mailserver with postfix+dovecot+roundcubemail. And I don't want virtual users. Is it possible to use Unix users and somehow just include the /etc/passwd file for ...
3
votes
3answers
2k 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?
0
votes
0answers
25 views

Finding Unique GID's

I have a piece of a script that will list all GIDs within /etc/group and /etc/passwd but I'm looking for the final piece that ensures whatever is in the passed file, is also in group file. So, I'm ...
0
votes
1answer
70 views

Is this shadow file normal or hacked?

I may have been hacked. This is most of my /etc/shadow file. I can't understand why so may items have a password hash of "x". Does "x" have a special meaning? Or is it really a hashed password, ...
0
votes
1answer
113 views

passwd file deleted in ubuntu

i was recently making some researches about the passwd file, and out of curiosity i deleted it, after i deleted it my computer froze, and after a hard reboot it doesnt boot. i found a solution on this ...
1
vote
2answers
2k views

How to change my UID back in passwd file?

My OS is Ubuntu 12.10, and my account is called acgtyrant, and its UID is 1000. For the need of researching, I changed my UID from 1000 to 1010 in /etc/passwd, and then I found my files' master ...
2
votes
3answers
579 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 ...
5
votes
2answers
444 views

Why is there a shell given to user for PostgreSQL?

cat /etc/passwd |grep postgre postgres:x:115:127:PostgreSQL administrator,,,:/var/lib/postgresql:/bin/bash apt-cache show postgresql Package: postgresql Priority: optional Section: database ...
5
votes
1answer
6k views

Unable to change user password in Ubuntu 12.10

The User Password is not changing for some reason. In the terminal it says password updated successfully, $ sudo passwd [sudo] password for zaigham: Enter new UNIX password: Retype new UNIX ...
2
votes
1answer
643 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 ...
1
vote
0answers
269 views

Cycles through black screen on login after changing password [duplicate]

On my laptop, I forgot the password to my Ubuntu partition, so I logged into the root command shell on the recovery start up option in GRUB so that I could change the password. On my first attempt to ...
1
vote
1answer
274 views

installation password [duplicate]

Possible Duplicate: How do I reset a lost Administrative (root) password? I just updated to ubuntu 11.10 and am getting "Your authentication attempt was unsuccessful." I am the only user ...
0
votes
1answer
1k 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 ...
2
votes
1answer
4k views

Why do I keep getting “invalid password” when trying to log in?

I have read and tried everything that I can find and I am still having issues logging in. I have Ubuntu 11.10 that I have put on my machine a couple of weeks ago and I still cannot log in. It says ...
3
votes
1answer
19k views

useradd: cannot lock /etc/passwd; try again later

Trying to add a user: useradd -c "test" -d /home/bbbbbbbb -e "01-jan-2013" -f 10 -g admin -p secretfgjdhdgd -s /bin/bash -u 123456 blobblob but getting: useradd: cannot lock /etc/passwd; try ...
13
votes
3answers
7k 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 ...
3
votes
1answer
2k views

Where is the username and password stored

Just for my curiosity ,where is the username and associated password is stored in ubuntu? And how it is verified at the login time?
6
votes
1answer
2k 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 ...
0
votes
0answers
107 views

After disabling password at login, the system will not accept a password to modify the system. Cannot install, uninstall, or modify anything. HELP? [duplicate]

Possible Duplicate: How do I reset a lost Administrative(root) password? I have been using Ubuntu on and off for a number of years. I have always been a fan. I have been having issues on ...
1
vote
1answer
447 views

different mailbox formats for special dovecot/system users

On a server me and a friend set up we're currently using mbox mailbox format. (Think I should mention that my friend set up the mail part of the server and I yet don't know too much about mailserver ...
2
votes
2answers
7k 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 ...