Problem adding new user...
Craig White
craigwhite at azapple.com
Wed Nov 9 02:04:25 UTC 2005
On Tue, 2005-11-08 at 19:49 -0600, Mike McCarty wrote:
> Thomas Springer wrote:
> > Am Dienstag, den 08.11.2005, 13:55 -0600 schrieb Mike McCarty:
> >
> >>I am having a problem adding a new user. Perhaps I don't understand
> >>the shadow file or sth.
> >>
> >>I use FC2 with GNOME. I used at first the command-line I/F since
> >>I'm more familiar and more comfortable with that technique of
> >>sys admin.
> >
> >
> > [snip]
> >
> >
> >>[jmccarty at Presario-1 jmccarty]$ login
> >>login: freddy
> >>Password:
> >>Login incorrect
> >>
> >>
> >>What am I missing?
> >>
> >>Mike
> >>--
> >
> >
> > I also did that and got the same result here with FC4.
> >
> > There's nothing related to that in
> >
> > /var/log/secure
> > /var/log/messages
> > /var/log/audit/audit.log
> >
> > Couldn't find anything helpful in
> >
> > rpm -q --changelog util-linux | grep login
> > <search> site:bugzilla.redhat.com
> >
> > Then I thought of how one could strace `login` ? ? ?
> >
> > Hopefully someone else can tell what's happening.
> >
> >
> > Thomas
> >
>
> I have more from /var/log/messages
>
> (1) Nov 8 19:35:50 Presario-1 su(pam_unix)[31141]: session opened for
> user root by jmccarty(uid=500)
> (2) Nov 8 19:38:20 Presario-1 passwd(pam_unix)[31179]: password changed
> for freddy
> (3) Nov 8 19:38:22 Presario-1 su(pam_unix)[31141]: session closed for
> user root
> (4) Nov 8 19:38:28 Presario-1 login(pam_unix)[31181]: authentication
> failure; logname=jmccarty uid=500 euid=500 tty=pts/4 ruser$Nov 8
> 19:38:31 Presario-1 login[31181]: FAILED LOGIN 1 FROM (null) FOR freddy,
> Authentication failure
> (5) Nov 8 19:38:31 Presario-1 login(pam_unix)[31181]: bad username []
> (6) Nov 8 19:38:34 Presario-1 login[31181]: FAILED LOGIN 2 FROM (null)
> FOR , Authentication failure
> (7) Nov 8 19:38:34 Presario-1 login(pam_unix)[31181]: bad username []
> (8) Nov 8 19:38:36 Presario-1 login[31181]: FAILED LOGIN 3 FROM (null)
> FOR , Authentication failure
> (9) Nov 8 19:38:37 Presario-1 login(pam_unix)[31181]: bad username []
> (10)Nov 8 19:38:39 Presario-1 login[31181]: FAILED LOGIN SESSION FROM
> (null) FOR , Authentication failure
> (11)Nov 8 19:38:51 Presario-1 su(pam_unix)[31184]: session opened for
> user root by jmccarty(uid=500)
>
> (1) is me going su - to create the freddy user
> (2) is me changing his password using passwd
> (3) is me exiting back to myself
> (4)-(10) is my trying to use login to log on as freddy, failing, then
> just hitting return until login quit trying
> (11) is me su - to root so I can get the content of /var/log/messages
> for this e-mail
>
> [root at Presario-1 root]# finger freddy
> Login: freddy Name: (null)
> Directory: /home/freddy Shell: /bin/bash
> Never logged in.
> No mail.
> No Plan.
> [root at Presario-1 root]#
>
> Does this have something to do with freddy not being propagated
> to the shadow file?
>
> Nope, I just checked...
>
> [root at Presario-1 root]# grep freddy /etc/shadow
> freddy:$1$mMzZcWPf$TubCOWrHFsylDJnnO04qH1:13096:0:99999:7:::
> [root at Presario-1 root]#
>
> I did a usermod -c "Freddy" freddy and it took and finger
> now shows this Name: rather than (null), but logins still
> do not work.
----
reassert the password...
passwd freddy #assuming you change it back
# re-enter password - watch out for caps lock key
# perhaps try a different password to make sure
# the hash changes in /etc/shadow
Craig
--
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.
More information about the fedora-list
mailing list