Problems with Shadow password

Problems with Shadow password

Post by Jon Mitche » Sun, 17 Dec 1995 04:00:00




Quote:>Maybe I'm dense, but...
>Ok, it worked -- but the new password was encrypted in the /etc/passwd
>file, not in /etc/shadow! So I copied the string to /etc/shadow
>and substituted a '*' in /etc/passwd. It worked, I can login -- but
>the user can't change his own password, since passwd doesn't recognize
>it anymore. passwd lets him change his password only when it is encrypted
>in /etc/passwd.

Sounds like you messed up pretty bad.  You must have not put the login
and passwd programs that shadow made in the right place because it is
still asking for everything again.  My suggestion?  Get shadow-mk from
sunsite, remove (read move and back up here) all the binaries that it is
about to make (passwd, su, login, etc..) that way you know it is using
the correct one's after you finish installing.  Make sure you read the
makefile and config.h or whatever before you compile.  It's not good
enough to just type make install for every program.

Jon Mitchell
*****************************************************************************
* [Fun-Boy] Sleep is for weaklings!                        * jrmitche       *

*  and those who cannot.  It is one of the great divisions * My views have  *
*  of the human race." - Iris Murdoch (stolen from the     * _nothing_ to   *
*                        pages of Stephen King's Insomnia) * do with ccso!  *
*****************************************************************************  

 
 
 

Problems with Shadow password

Post by Luiz Claudio Duar » Sun, 17 Dec 1995 04:00:00


Maybe I'm dense, but...

I have installed the shadow password programs. When I useradd
a new user, the new account's password in /etc/passwd is '*' and
in /etc/shadow is '!'. I couldn't figure out how to login with
the new account this way (just Enter didn't work, the username
itself either), so I (as root) used passwd <newusername> to
set the new password.

Ok, it worked -- but the new password was encrypted in the /etc/passwd
file, not in /etc/shadow! So I copied the string to /etc/shadow
and substituted a '*' in /etc/passwd. It worked, I can login -- but
the user can't change his own password, since passwd doesn't recognize
it anymore. passwd lets him change his password only when it is encrypted
in /etc/passwd.

Can anyone help me out of this? I'm using shadow-3.3.1-2 and
Slackware 3.0, if this matters.

--
Luiz Claudio Duarte

Brasilia, Brazil

 
 
 

1. wu.ftpd problem with shadow password

Hi,

I tried to compile wu-ftpd-2.4-fixed.tar.gz but I kept getting the following
error message :

Making ftpd.
sh newvers.sh
gcc -O2 -I.. -I../support -I/usr/include/bsd -I/usr/include/netinet -L../support -c vers.c
gcc -O2 -I.. -I../support -I/usr/include/bsd -I/usr/include/netinet -L../support   -c ftpd.c -o ftpd.o
yacc  ftpcmd.y
mv -f y.tab.c ftpcmd.c
gcc -O2 -I.. -I../support -I/usr/include/bsd -I/usr/include/netinet -L../support   -c ftpcmd.c -o ftpcmd.o
gcc -O2 -I.. -I../support -I/usr/include/bsd -I/usr/include/netinet -L../support   -c glob.c -o glob.o
glob.c: In function `matchdir':
glob.c:240: dereferencing pointer to incomplete type
make: *** [glob.o] Error 1

My kernel is 2.0.27.
Any help would be much appreciated. Thank you.

2. Another printer question?

3. Samba authentication problems- PAM/Shadow passwords? (RH 6.1)

4. problem with hdisk naming, result: can't make an mksysb

5. POP (pop3d, ipop3d) problems with Shadow passwords

6. Install Probs

7. Terminal problems and shadow passwords.IPMcC

8. aha0 causes network hang

9. Problem with shadow-password:unknown item 'ISSUE_FILE_ENAB'

10. URGENT: Problem with Shadow Passwords

11. problems with shadow passwords

12. Shadow password files vs. non-shadowed passwords

13. ERROR: KDE shadow password error although no shadow passwords used