Group Permissions on root folders problem (Windows 10 TP build 10061)

Corinna Vinschen corinna-cygwin@cygwin.com
Thu Apr 30 08:24:00 GMT 2015


On Apr 29 10:45, Brian Buchanan wrote:
> I did a fresh cygwin-64 (setup-x86_64 version 2.870) install under
> build 10061 of Windows 10 Technical Preview.
> 
> The group permissions in the root look wrong.
> 
> $ ls -lA /
> total 321
> drwx---r-x+ 1 Brian Brian               0 Apr 29 10:31 bin
> dr-xr-xr-x  1 Brian Brian               0 Apr 29 10:31 cygdrive
> -rwxr-xr-x  1 Brian Administrators     59 Apr 29 10:31 Cygwin.bat
> -rw-r--r--  1 Brian Administrators 157097 Apr 29 10:31 Cygwin.ico
> -rw-r--r--  1 Brian Administrators  53342 Apr 29 10:31 Cygwin-Terminal.ico
> drwx---r-x+ 1 Brian Brian               0 Apr 29 10:31 dev
> drwx---r-x+ 1 Brian Brian               0 Apr 29 10:31 etc
> drwx---rwt+ 1 Brian Brian               0 Apr 29 10:31 home
> drwx---r-x+ 1 Brian Brian               0 Apr 29 10:31 lib
> dr-xr-xr-x  9 Brian Brian               0 Apr 29 10:31 proc
> drwx---r-x+ 1 Brian Brian               0 Apr 29 10:31 sbin
> drwx---rwt+ 1 Brian Brian               0 Apr 29 10:31 tmp
> drwx---r-x+ 1 Brian Brian               0 Apr 29 10:30 usr
> drwx---r-x+ 1 Brian Brian               0 Apr 29 10:30 var
> 
> I'm logged on with a Microsoft account and ran the installer as an
> Administrator.
> 
> This is a particular problem running ssh-host-config -y
> $ ssh-host-config -y
> 
> *** Info: Generating missing SSH host keys
> ssh-keygen: generating new host keys: RSA1 RSA DSA ECDSA ED25519
> *** Info: Creating default /etc/ssh_config file
> *** Info: Creating default /etc/sshd_config file
> 
> *** Info: StrictModes is set to 'yes' by default.
> *** Info: This is the recommended setting, but it requires that the POSIX
> *** Info: permissions of the user's home directory, the user's .ssh
> *** Info: directory, and the user's ssh key files are tight so that
> *** Info: only the user has write permissions.
> *** Info: On the other hand, StrictModes don't work well with default
> *** Info: Windows permissions of a home directory mounted with the
> *** Info: 'noacl' option, and they don't work at all if the home
> *** Info: directory is on a FAT or FAT32 partition.
> *** Query: Should StrictModes be used? (yes/no) yes
> 
> *** Info: Privilege separation is set to 'sandbox' by default since
> *** Info: OpenSSH 6.1.  This is unsupported by Cygwin and has to be set
> *** Info: to 'yes' or 'no'.
> *** Info: However, using privilege separation requires a non-privileged account
> *** Info: called 'sshd'.
> *** Info: For more info on privilege separation read
> /usr/share/doc/openssh/README.privsep.
> *** Query: Should privilege separation be used? (yes/no) yes
> *** Warning: The permissions on the directory /var are not correct.
> *** Warning: They must match the regexp d..x..x..[xt]
> *** ERROR: Problem with /var directory. Exiting.

Hmm, the permission test in the csih helper script is apparently not up
to the task in your situation.  As a workaround, you may want to change
the group ownership of /var/empty to "Users" and chmod it to 755, then
run the ssh-host-config script again.


Corinna

-- 
Corinna Vinschen                  Please, send mails regarding Cygwin to
Cygwin Maintainer                 cygwin AT cygwin DOT com
Red Hat
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 819 bytes
Desc: not available
URL: <http://cygwin.com/pipermail/cygwin/attachments/20150430/e3878dc6/attachment.sig>


More information about the Cygwin mailing list