only root without password

Bob Proulx bob at proulx.com
Sat Dec 20 04:18:34 EST 2008


Fede Rico wrote:
> this is the .ssh permission:
> 
> .ssh
> 4,0K drwx------ 2 oracle oinstall 4,0K 2008-12-04 22:44 .ssh
> 
> .ssh/
> 4,0K -rw-r--r-- 1 oracle oinstall  859 2008-12-04 22:44 authorized_keys
> 4,0K -rw------- 1 oracle oinstall 1,7K 2008-12-04 22:39 id_rsa
> 4,0K -rw-r--r-- 1 oracle oinstall  403 2008-12-04 22:39 id_rsa.pub
> 4,0K -rw-r--r-- 1 oracle oinstall 1,5K 2008-12-17 19:07 known_hosts

You did not show the permissions on the home directory.  Those are
also considered and are often the source of problems.

  chmod go-w $HOME

> The ssh works without the password for the "root" user, any other user
> cannot use the key and ssh ask me for the password !!

It is possible that root has an ssh-agent and the ssh-agent has an
authorized key loaded but the non-root user does not?  That could give
the appearance of what you describe.

  ssh-add -l
  ssh-add -L

Bob


More information about the openssh-unix-dev mailing list