Hi, Once you have add the user account, did you check that /home/user was really existing? Maybe you have to create it... usually I specify all options for this useradd command to force shell, directory name, comment. Else, did you look in log files why login fails ? You can look in /var/log/secure or auth something name file. You may find some explanation for the failure. Under root account you can also try su - user. It should not ask for password but it will launch a login shell. Hope it will help, Regards Le Mardi 08 Novembre 2005 20:55, Mike McCarty a écrit : > 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. > > [jmccarty@Presario-1]$ su - > Password: > [root@Presario-1 root]# useradd freddy > [root@Presario-1 root]# passwd freddy > Changing password for user freddy. > New UNIX password: > Retype new UNIX password: > passwd: all authentication tokens updated successfully. > [root@Presario-1 root]# exit > [jmccarty@Presario-1 jmccarty]$ finger freddy > Login: freddy Name: (null) > Directory: /home/freddy Shell: /bin/bash > Never logged in. > No mail. > No Plan. > [jmccarty@Presario-1 jmccarty]$ login > login: freddy > Password: > Login incorrect > > > login: > > > login: > Login incorrect > > > login: > Login incorrect > > > login: > > > Login incorrect > [jmccarty@Presario-1 jmccarty]$ grep freddy /etc/passwd > freddy:x:502:502::/home/freddy:/bin/bash > [jmccarty@Presario-1 jmccarty]$ > > I'm sure I typed in the password correctly. > > So,... > > [jmccarty@Presario-1 jmccarty]$ su - > Password: > [root@Presario-1 root]# userdel -r freddy > [root@Presario-1 root]# finger freddy > finger: freddy: no such user. > [root@Presario-1 root]# exit > [jmccarty@Presario-1 jmccarty]$ > > Then I used the [RedHat]->System Settings->Users and Groups > to create the user, with the same results. The user and > /home/freddy get created, but I can't log in as freddy. > At least, not using login. > > What am I missing? > > Mike > -- > p="p=%c%s%c;main(){printf(p,34,p,34);}";main(){printf(p,34,p,34);} > This message made from 100% recycled bits. > You have found the bank of Larn. > I can explain it for you, but I can't understand it for you. > I speak only for myself, and I am unanimous in that! -- Guillou Erwan (GUILCOM) erwgu@xxxxxxxxxxxxxxxxxx http://www.guilcom.dyndns.org >> Linux... the choice of a GNU generation. <<