LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 08-06-2009, 11:00 AM   #1
pantuflo
LQ Newbie
 
Registered: Aug 2009
Distribution: ubuntu 9.04;slackware 12.2
Posts: 1

Rep: Reputation: 0
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
 
Old 08-06-2009, 12:18 PM   #2
bsdunix
Senior Member
 
Registered: May 2006
Distribution: BeOS, BSD, Caldera, CTOS, Debian, LFS, Mac, Mandrake, Red Hat, Slackware, Solaris, SuSE
Posts: 1,761

Rep: Reputation: 80
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

Last edited by bsdunix; 08-06-2009 at 12:41 PM. Reason: brief explaination
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
changing password of a user without using passwd command anerudhbalaji Linux - Software 2 05-22-2009 02:10 PM
Getting error when trying to change NT password using passwd Cyberitas Linux - Enterprise 0 11-01-2007 11:59 AM
passwd prompts for new password only once when a short password is entered powah Linux - Security 0 09-19-2007 04:20 PM
passwd: Bad password, too simplistic ??? qwijibow Linux - Security 2 02-05-2005 04:58 PM
how decode the passwd file's password? yikaikai Linux - Security 10 08-07-2001 04:13 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 12:20 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration