[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: SSH permission problems



-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

A long time ago, in a galaxy far, far way, someone said...

> 
> I accidentally did a chmod -R on my home directory and messed up the
> permissions in my home directory (/home/ssahmed). Now, I am unable to
> SSH from work into my home system.
> 
> Initially, I noticed in the following message in my log files:
> 
> sshd[23261]: DSA authentication refused for ssahmed: bad ownership or
> modes for '/home/ssahmed/.ssh/authorized_keys2'.
> 
> Then I changed the permission of /home/ssahmed/.ssh/authorized_keys2 to:
> 
> -rw-------    1 ssahmed  ssahmed       938 Oct 26 18:18 .ssh/authorized_keys2
> 
> and now I get the following error message:
> 
> sshd[23600]: DSA authentication refused for ssahmed: bad ownership or
> modes for '/home/ssahmed/'.
> 
> The permissions on my home directory are:
> 
> drwxr-sr-x   20 ssahmed  ssahmed      4096 Oct 26 18:02 /home/ssahmed/
> 
> and the permissions on my ~/.ssh directory are:
> 
> drwx------    2 ssahmed  ssahmed      4096 Oct 26 18:19 .ssh/
> 
> 
> Can anyone tell me what the correct permissions should be to fix this
> problem ?

Well, I have:

on /home/phil:
drwxr-xr-x  112 phil     users       35840 Oct 26 17:30 phil/

and on ~/.ssh:
drwxr-xr-x    2 phil     users        1024 Oct  2 00:46 .ssh

on the files in ~/.ssh:
- -rw-r--r--    1 phil     users        2969 Jul  4 13:33 authorized_keys
- -rw-------    1 phil     users         524 Apr  5  2000 identity
- -rw-r--r--    1 phil     users         328 Apr  5  2000 identity.pub
- -rw-------    1 phil     users       13090 Oct 19 22:23 known_hosts
- -rw-------    1 phil     users         512 Mar 26  2000 random_seed

- -- 
- ----------------------------------------------------------------------
Phil Brutsche				    pbrutsch@tux.creighton.edu

GPG fingerprint: 9BF9 D84C 37D0 4FA7 1F2D  7E5E FD94 D264 50DE 1CFC
GPG key id: 50DE1CFC
GPG public key: http://tux.creighton.edu/~pbrutsch/gpg-public-key.asc
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.1 (GNU/Linux)
Comment: For info see http://www.gnupg.org

iD8DBQE5+LEf/ZTSZFDeHPwRAvZmAJ9NCI6N6l6FV7eZxOp53UNq8IjdVACfV4Uc
FfIyHP3oXjSWllhlC1HvFkY=
=ksEw
-----END PGP SIGNATURE-----



Reply to: