Re: [gentoo-user] Newly created user can't ssh in but others can?

2006-11-17 Thread Michael Sullivan
On Fri, 2006-11-17 at 12:02 -0800, Daevid Vincent wrote:
> I have had my server for several years, I haven't added a new user in
> probably 6 months or more. I tried to add one last night and all seemed
> fine. However it can't login via ssh (not at a console, so I don't know
> about that way) but existing accounts can. 
> 
> I've tried changing the passwd to 'foo' (just something simple) and I keep
> getting the "Password:" prompt over and over. But if I ssh in to say, my
> account, it works fine.
> 
> Ideas?
> 
> /home looks like:
> 
> drwxr-xr-x  4 joeusers  4096 Nov 17 11:42 joe
> drwx--x--x 29 daevid users  4096 Nov 17 02:08 daevid 
> 
> daevid home # passwd joe
> New UNIX password: 'foo'
> BAD PASSWORD: it is WAY too short
> Retype new UNIX password: 'foo'
> passwd: password updated successfully
> 
> daevid home # ssh [EMAIL PROTECTED]
> Password: 'foo'
> Password: 'foo'
> ...
> 
> daevid home # ssh [EMAIL PROTECTED]
> Password: 'secret'
> Last login: Fri Nov 17 11:46:06 2006 from daevid.com
> [EMAIL PROTECTED] ~ $ 
> 
> 
> ÐÆ5ÏÐ 
> 

Just a guess, but is your new user listed in AllowUsers in sshd
configuration?

-- 
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] Newly created user can't ssh in but others can?

2006-11-17 Thread Richard Fish

On 11/17/06, Daevid Vincent <[EMAIL PROTECTED]> wrote:

Ideas?


1. Check /var/log/messages for output from sshd.
2. Compare "id daevid" to "id joe".
3. Make sure ~joe/.ssh has permissions 700

-Richard
--
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] Newly created user can't ssh in but others can?

2006-11-17 Thread Flophouse Joe

On Fri, 17 Nov 2006, Daevid Vincent wrote:


I have had my server for several years, I haven't added a new user in
probably 6 months or more. I tried to add one last night and all seemed
fine. However it can't login via ssh (not at a console, so I don't know
about that way) but existing accounts can.


It could be a bunch of things, so you're going to have to brainstorm.

Here are some quick ideas off the top of my head:

- Does the new user have a valid shell?

- If the new user's shell is valid and different from other users'
shells, then is the new user's shell listed in /etc/shells ?

- Is the PAM configuration known to be sane?  (i.e., have you confirmed
that there are no files in /etc/pam.d/ that need to be merged via
etc-update from a previous upgrade?)

- What sort of output does sshd send to the syslog when the new user
attempts to login?  Does the output change-- and reveal any hints-- if
sshd is run in the forground in debug mode?

Joe
--
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] Newly created user can't ssh in but others can?

2006-11-17 Thread Nangus Garba

Is  the user in the group that is allowed to ssh in? I think it is the sshd
group or something like that.

code affe


[gentoo-user] Newly created user can't ssh in but others can?

2006-11-17 Thread Daevid Vincent
I have had my server for several years, I haven't added a new user in
probably 6 months or more. I tried to add one last night and all seemed
fine. However it can't login via ssh (not at a console, so I don't know
about that way) but existing accounts can. 

I've tried changing the passwd to 'foo' (just something simple) and I keep
getting the "Password:" prompt over and over. But if I ssh in to say, my
account, it works fine.

Ideas?

/home looks like:

drwxr-xr-x  4 joeusers  4096 Nov 17 11:42 joe
drwx--x--x 29 daevid users  4096 Nov 17 02:08 daevid 

daevid home # passwd joe
New UNIX password: 'foo'
BAD PASSWORD: it is WAY too short
Retype new UNIX password: 'foo'
passwd: password updated successfully

daevid home # ssh [EMAIL PROTECTED]
Password: 'foo'
Password: 'foo'
...

daevid home # ssh [EMAIL PROTECTED]
Password: 'secret'
Last login: Fri Nov 17 11:46:06 2006 from daevid.com
[EMAIL PROTECTED] ~ $ 


ÐÆ5ÏÐ 


-- 
gentoo-user@gentoo.org mailing list