delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2015/10/27/20:34:39

X-Recipient: archive-cygwin AT delorie DOT com
DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id
:list-unsubscribe:list-subscribe:list-archive:list-post
:list-help:sender:mime-version:from:date:message-id:subject:to
:content-type:content-transfer-encoding; q=dns; s=default; b=PIa
nIL1Ahw8kOey3/lttUGWSgR9X9Vg86FRBdTFyf1dqFil5VaRsMfMp166m6vmx9sT
FL00/UX96DZq4uKKngPkC1XQotnXLTiYJ98ft5/MBcYLgp5e8lF6ib0SHoAMkxgu
C9Oq34hM7SioKctH/WpcXNZBrsAYkRKYv1zBAK+M=
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id
:list-unsubscribe:list-subscribe:list-archive:list-post
:list-help:sender:mime-version:from:date:message-id:subject:to
:content-type:content-transfer-encoding; s=default; bh=fFtMXqacW
Zik/vSLRoCmG1wOpHU=; b=GXhQ37DfVN4vwLR0Yux+uqXe64rwXDDA8lbcysZbb
yYaGyIZNeRLFk3pqrA77PKw4bxDeGPt626M/m4CZalJ9IWafImhmTBkE6wIlt7+0
1fJiJRaQHvbY2J2azSJi/ysPIh5n7evdXoF39ucIzq6KyNho0hRPq/9rb9rACrHm
dk=
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
Authentication-Results: sourceware.org; auth=none
X-Virus-Found: No
X-Spam-SWARE-Status: No, score=0.5 required=5.0 tests=AWL,BAYES_50,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,SPF_PASS autolearn=ham version=3.3.2
X-HELO: mail-yk0-f182.google.com
X-Received: by 10.129.83.195 with SMTP id h186mr32098698ywb.191.1445992461014; Tue, 27 Oct 2015 17:34:21 -0700 (PDT)
MIME-Version: 1.0
From: Jan Bruun Andersen <jan_bruun_andersen AT jabba DOT dk>
Date: Wed, 28 Oct 2015 01:33:41 +0100
Message-ID: <CAA3tTg_RH0FrX1BYnOmTQPKTF4ZAmXHmCPfOXB0=qQAU9COK+g@mail.gmail.com>
Subject: Permissions on /var
To: cygwin AT cygwin DOT com
X-MIME-Autoconverted: from quoted-printable to 8bit by delorie.com id t9S0YZ2s006131

Today, as I installed inetutils (I needed telnet for Cygwin; telnet
for Windows 10 does nothing; no error, no nothing) I got an error from
setup-084_64. The error message directed me to look at
/var/log/setup.log.full. Here is the relevant part, very near the end:

2015/10/28 00:55:10 running: C:\cygwin64\bin\dash.exe
"/etc/postinstall/0p_000_autorebase.dash"
cat: /var/lib/rebase/dynpath.d/*: No such file or directory
Updating package information in /var/cache/rebase/rebase_pkg.
        from /etc/setup/inetutils-server.lst.gz...
        from /etc/setup/inetutils.lst.gz...
Updating rebase information for installed dynamic objects in
/var/cache/rebase/rebase_lst.
Updating rebase information for installed executables in
/var/cache/rebase/rebase_exe.
removing /var/cache/rebase/rebase_dyn
creating empty /var/cache/rebase/rebase_dyn
Updating rebase information for user-defined dynamic objects
/var/cache/rebase/rebase_user.
Updating rebase information for user-defined executables
/var/cache/rebase/rebase_user_exe.
Rebasing with list /var/cache/rebase/rebase_all, built from
/var/cache/rebase/rebase_lst /var/cache/rebase/rebase_dyn
/var/cache/rebase/rebase_user.
2015/10/28 00:55:17 running: C:\cygwin64\bin\bash.exe --norc
--noprofile "/etc/postinstall/inetutils-server.sh"
*** 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.
*** 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.
2015/10/28 00:55:20 abnormal exit: exit code=1
2015/10/28 00:55:20 Changing gid to Administrators
Program directory for program link:
C:\ProgramData\Microsoft\Windows\Start Menu\Programs
Desktop directory for desktop link: C:\Users\Public\Desktop
Desktop directory for desktop link: C:\Users\Public\Desktop
make_link C:\Users\Public\Desktop/Cygwin64 Terminal.lnk, Cygwin64
Terminal, C:\cygwin64\bin\mintty
make_link_2 (C:\cygwin64\bin\mintty, -i /Cygwin-Terminal.ico -,
C:\cygwin64\Cygwin-Terminal.ico, C:\Users\Public\Desktop/Cygwin64
Terminal.lnk)
2015/10/28 00:55:27 note: Installation Complete
2015/10/28 00:55:27 Ending cygwin install

I tracked the check down to a function in
/usr/share/csih/cygwin-service-installation-helper.sh. It checks the
permissions with a call to function csih_check_dir_perms which ends up
doing this:

2162   if /usr/bin/stat -c "%A" "$1" | /usr/bin/grep -Eq ^"$2"
2163   then
2164     true
2165   else
2166     csih_warning "The permissions on the directory $1 are not correct."
2167     csih_warning "They must match the regexp $2"
2168     return 1
2169   fi

Doing a manual check, /usr/bin/stat -c "%A" /var, confirms that the
permissions are indeed wrong:

$ /usr/bin/stat -c "%A" /var
drwx---r-x

Group-permissions are empty.

Now, as a coincidence, I have a month-old copy of a previous Cygwin
installation on an external disk. This is the permissions on the old
Cygwin:

$ ls -lg /g/cygwin64/
total 513
drwxr-xr-x+ 1 Unknown+Group        0 Sep 25 15:22 bin
-rwxr-xr-x  1 Administratörer     59 Sep 12 00:03 Cygwin.bat
-rw-r--r--  1 Administratörer 157097 Sep 12 00:03 Cygwin.ico
-rw-r--r--  1 Administratörer  53342 Sep 12 00:03 Cygwin-Terminal.ico
drwxr-xr-x+ 1 Unknown+Group        0 Sep 12 00:03 dev
drwxr-xr-x+ 1 Unknown+Group        0 Sep 30 13:42 etc
drwxrwxrwt+ 1 Unknown+Group        0 Sep 12 02:30 home
drwxr-xr-x+ 1 Unknown+Group        0 Sep 25 15:22 lib
drwxr-xr-x+ 1 Unknown+Group        0 Sep 12 00:02 sbin
drwxrwxrwt+ 1 Unknown+Group        0 Sep 30 13:30 tmp
drwxr-xr-x+ 1 Unknown+Group        0 Sep 18 20:19 usr
drwxr-xr-x+ 1 Unknown+Group        0 Sep 12 00:02 var

And here is my current install:

$ ls -lg /c/cygwin64/
total 621
drwx---r-x+ 1 jabba                0 Oct 28 00:55 bin
-rwxr-xr-x+ 1 jabba               71 Oct 26 00:48 Cygwin.bat
-rw-r--r--  1 Administratörer 157097 Oct 26 00:16 Cygwin.ico
-rw-r--r--  1 Administratörer  53342 Oct 26 00:16 Cygwin-Terminal.ico
drwx---r-x+ 1 jabba                0 Oct 26 00:15 dev
drwx---r-x+ 1 jabba                0 Oct 28 00:55 etc
drwx---rwt+ 1 jabba                0 Oct 26 00:17 home
drwx---r-x+ 1 jabba                0 Oct 27 18:37 lib
drwx---r-x+ 1 jabba                0 Oct 26 00:26 sbin
drwx---rwt+ 1 jabba                0 Oct 28 00:55 tmp
drwx---r-x+ 1 jabba                0 Oct 27 17:33 usr
drwx---r-x+ 1 jabba                0 Oct 27 18:37 var

As you can see, group-permissions is empty on a lot of the directories.

I don't know if it is relevant, but the old install is from a Windows
7 that was part of an AD-domain. The new install is my from my private
PC with Windows 10 Pro that (only) is part of a workgroup.

I guess I can just go ahead and give the group r-x permissions on /var
but I would be interested in knowing if this is a local problem, or a
common (real) problem.

Regards,
Jan

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


- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019