This is the mail archive of the cygwin@cygwin.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: 1.3.5 openssh strictmodes


On Thu, Nov 22, 2001 at 01:12:43PM +1100, Sundstrom, Peter wrote:
> I start sshd as Administrator.  In sshd_config, I have
> 
> StrictModes yes
> 
> All of the relevant files and directories are owned by Administrator and
> have minimal permissions, ie:
> 
> Administrator@SCANNER$ ls -ld home etc
> dr-x------    2 Administ None         4096 Nov 22 12:10 etc
> [...]
> Starting sshd in debug mode and then trying to connect to the server, tells
> me:
> 
> debug1: trying public key file /home/Administrator/.ssh/authorized_keys2
> Authentication refused: bad ownership or modes for file
> /cygdrive/c/cygwin/home/Administrator/.ssh/authorized_keys2
> 
> How can this be the case?

Calling `ls -ln' would show you the following:

  dr-x------    2 544      513          4096 Nov 22 12:10 etc

544 is the id of the group Administrators, not the user Administrator
which has id 500.  chown helps.

Corinna

-- 
Corinna Vinschen                  Please, send mails regarding Cygwin to
Cygwin Developer                                mailto:cygwin@cygwin.com
Red Hat, Inc.

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]