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

2015-06-16 Thread Brian Buchanan
On Thu, 30 Apr 2015 at 10:24:50, Corinna Vinschen corinna-cygwin at
cygwin dot com wrote:

 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
 
...
  /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.


(I'm now on a fresh install of Build 10130)

I had to do that to /var (not just /var/empty) to get past that
message, but I've run into another snag with ssh-host-config

I'm getting an errors saying unknown user win-g71n7drq4r6+cyg_server
at the point of setting the password, the password expiry and
assigning permissions.

*** Info: This script plans to use 'cyg_server'.
*** Info: 'cyg_server' will only be used by registered services.
*** Query: Create new privileged user account
'WIN-G71N7DRQ4R6\cyg_server' (Cygwin name:
'win-g71n7drq4r6+cyg_server')? (yes/no) yes
*** Info: Please enter a password for new user
win-g71n7drq4r6+cyg_server.  Please be sure
*** Info: that this password matches the password rules given on your system.
*** Info: Entering no password will exit the configuration.
*** Query: Please enter the password:
*** Query: Reenter:

*** Info: User 'win-g71n7drq4r6+cyg_server' has been created with
password 'Su3per$ecr3t'.
*** Info: If you change the password, please remember also to change the
*** Info: password for the installed services which use (or will soon use)
*** Info: the 'win-g71n7drq4r6+cyg_server' account.

passwd: unknown user win-g71n7drq4r6+cyg_server
*** Warning: Setting password expiry for user
'win-g71n7drq4r6+cyg_server' failed!
*** Warning: Please check that password never expires or set it to your needs.
No user or group 'win-g71n7drq4r6+cyg_server' known.
*** Warning: Assigning the appropriate privileges to user
'win-g71n7drq4r6+cyg_server' failed!
*** ERROR: There was a serious problem creating a privileged user.
*** Query: Do you want to proceed anyway? (yes/no) yes
*** Warning: Expected privileged user 'win-g71n7drq4r6+cyg_server'
does not exist.
*** Warning: Defaulting to 'SYSTEM'

*** Info: The sshd service has been installed under the LocalSystem
*** Info: account (also known as SYSTEM). To start the service now, call
*** Info: `net start sshd' or `cygrunsrv -S sshd'.  Otherwise, it
*** Info: will start automatically after the next reboot.

*** Warning: Host configuration exited with 1 errors or warnings!
*** Warning: Make sure that all problems reported are fixed,
*** Warning: then re-run ssh-host-config.

At this point sshd and a cyg_server accounts exist and the service got
created, however it's using the Local System account.

The Service starts ok, but terminates ssh connections.

The event log shows:
sshd: PID 11620: fatal: seteuid 197609: Operation not permitted.

I'm guessing this is just because the Local System account doesn't
have the required privileges.

What do those processes (passwd, set password expiry and assigning
appropriate privileges) need to succeed?

Brian

--
Problem reports:   http://cygwin.com/problems.html
FAQ:   http://cygwin.com/faq/
Documentation: http://cygwin.com/docs.html
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple



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

2015-04-29 Thread Brian Buchanan
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.

$ id
uid=197608(Brian) gid=197608(Brian) groups=197608(Brian),405504(High
Mandatory Level),114(Local account and member of Administrators
group),197611(HomeUsers),544(Administrators),545(Users),4(INTERACTIVE),66049(CONSOLE
LOGON),11(Authenticated Users),15(This
Organization),68521(microsoftaccount+br...@buchananworldcorp.com),113(Local
account),66048(LOCAL),262180(Cloud Account Authentication)

Am I doing something wrong?

Is there a way to fix the permissions or a workaround for installation?

Thanks,

Brian

--
Problem reports:   http://cygwin.com/problems.html
FAQ:   http://cygwin.com/faq/
Documentation: http://cygwin.com/docs.html
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple



GraphicsMagick 1.3.17

2012-10-30 Thread Brian Buchanan

Hello,

I've run into a GraphicsMagick bug while working on 2-bit PNG files and I've 
been told that it has been fixed in GraphicsMagick 1.3.17.

The Changelog mentions the bug:
http://www.graphicsmagick.org/Changelog.html

2012-08-31 Glenn Randers-Pehrson glen...@simplesystems.org
coders/png.c: ReadOnePNGImage: sub-8-bit palette images were getting unpacked 
twice; once by libpng via png_set_packing() and again by coders/png.c in a 
switch() statement around line 2500, resulting in horizontally stretched pixels.

I've seeing 1.3.16 as current in setup, can it please be updated?

Thanks,

Brian



--
Problem reports:   http://cygwin.com/problems.html
FAQ:   http://cygwin.com/faq/
Documentation: http://cygwin.com/docs.html
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple