Adduser -> Access denied

hi,

I have a problem with any user i created on a linux server RH.
With the user root i did:
adduser toto
passwd toto (to give it a password - message : "all authentication tokens updated successfully")

I can do a "su - toto", but when I try to connect it directly by ssh i have the message "Access denied"

I'm sure, very sure (try few times) that is the good password I gave it. I have no idea what's wrong...

Any answers..:wall:

Thanks

You should check /etc/passwd file with root user.
Your startup script must be /bin/bash for ssh login.

# cat /etc/passwd | grep toto
toto:x:507:508::/home/toto:/bin/bash
# 

You can use single line for adding user.
G = second group

#useradd -d /home/toto -s /bin/bash -g xxx -G yyy,zzz toto
#passwd toto 

It has to be a real shell and not something like /sbin/nologin or /sbin/scponly, and it has to be listed in /etc/shells, but it doesn't have to be BASH.

Thanks guys,

The /etc/passwd looks ok...
toto:x:502:502::/home/toto:/bin/bash