Click to See Complete Forum and Search --> : User Problems


kaut
05-01-2003, 11:20 AM
After creating a user as root with kuser, I try to log in as the user but it won't log in. The password's correct, caps lock isn't on, I'm not sure what the problem is. I'd appreciate any help.

cowanrl
05-01-2003, 01:57 PM
Are you sure the user account actually got created? As root, execute:

cat /etc/passwd

That will show you all of the users on your system. The newest user should be at the end. If the user is there, look at the end of the line that user is on. It should say something like /bin/bash. That's the user's login shell. If it says something like /bin/false or /sbin/nologin, then that user is not permitted to log in.

If that's the case, you can manually edit the passwd file to set the proper shell or delete and recreate the user. This time be sure to select a proper shell for the user to log in with.

If none of the above seems to be the case, take a look at /var/log/messages after the user login fails and see what kind of error messages are being generated.

kaut
05-05-2003, 11:03 AM
The users name was in /etc/password under /bin/ash, what I put it down for, never understood the difference between the bash and ash or the other ones, but I had one under ash before and it worked, so I did it again.

I cat /var/log/messages and saw this error

:FAILED LOGIN 1 FROM /dev/tty6 FOR UNKNOWN, User not known to the underlying authentication module

kaut
05-05-2003, 11:06 AM
The user's home directory was also created, but the user still can't login

bwkaz
05-05-2003, 11:33 AM
Is the user also listed in /etc/shadow?

kaut
05-06-2003, 11:19 AM
Somehow I got it to work. I think I deleted the user and group +. I didn't remember making such a user or group, so I deleted it, and when I did, all was well. Thanks for the help.