LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   passwd command modifies /etc/password? (https://www.linuxquestions.org/questions/linux-newbie-8/passwd-command-modifies-etc-password-745593/)

pantuflo 08-06-2009 11:00 AM

passwd command modifies /etc/password?
 
Hi!I was just creating manually a new user in slack 12.2.
I created a profile on /etc/passwd, putting an x on the password space.
when I tried to used the passwd command to encode my new password on /etc/shadow, nothing is written on shadow; instead the encoded string appears on /etc/password.
Could someone explain me why?Thanks

bsdunix 08-06-2009 12:18 PM

Since you didn't use adduser or useradd to create an account that has the password shadow suite installed, you need to run pwconv to change the encoded password in /etc/passwd to /etc/shadow.

http://linux.die.net/man/8/pwconv

http://tldp.org/HOWTO/Shadow-Passwor...O-7.html#ss7.1


All times are GMT -5. The time now is 09:21 PM.