file permissions - Re: Re: 2 SSH questions

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



On Tue, 2006-01-10 at 18:19 -0800, Robert Moskowitz wrote:
> Insight from /var/log/secure
> 
> Jan 10 20:28:56 z9m9z sshd[2705]: Authentication refused: bad 
> ownership or modes for file /home/rgm/.ssh/authorized_keys
> 
> So here are all of the permissions, I think:
> 
> starting at root:
> 
> drwxr-xr-x   3 root root  4096 Jan  5 13:33 home
> 
> drwx------  4 rgm rgm 4096 Jan 10 21:13 rgm
> 
> drwxrwxr-x  2 rgm  rgm  4096 Jan 10 20:28 .ssh
> 
> -rw-rw-r--  1 rgm rgm 1101 Jan 10 20:25 authorized_keys
> 
> so what now????
> 

.ssh needs to be 700

authorized_keys needs to be 400

chmod 700 .ssh

and 

chmod 400 authorized_keys
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
Url : http://lists.centos.org/pipermail/centos/attachments/20060110/9a0935c6/attachment.bin

[Index of Archives]     [CentOS]     [CentOS Announce]     [CentOS Development]     [CentOS ARM Devel]     [CentOS Docs]     [CentOS Virtualization]     [Carrier Grade Linux]     [Linux Media]     [Asterisk]     [DCCP]     [Netdev]     [Xorg]     [Linux USB]
  Powered by Linux