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]

Permission problems with recent Cygwin


On some recent installs of Cygwin (from a snapshot of a mirror site
about a week ago), we've started getting some odd problems.  Re-running
setup pointing it at a fresh setup and mirror does not fix the problems
(naturally enough).

A few key files in /etc (including /etc/profile!) have owner set to the
person who did the install (a system admin person), but mode 700.  So one
obvious effect is that /etc/profile can't be read by anyone except the
installer, so PATH isn't set for ordinary users, so nothing works properly.

We also noticed that all of /bin (except for symlinks) also had mode
700 (yet strangely enough, seem to execute).

For now, we are working around this by adding in a "chmod -R a+rx /etc"
to our post-install script.  That's a gross hack.

Here's a snippet from /etc, showing some file permissions that look
wrong to me.  I've attached a cygcheck output and the full /etc ls at
the end.

-rwx------+   1 desmolej Domain U     6912 Jul 16  2002 mime.conf
-rwx------+   1 desmolej Domain U     6912 Jul 16  2002 mime.conf.default
-rwx------+   1 desmolej Domain U     1898 Jul 10  2002 mime.types
-rwx------+   1 desmolej Domain U    12800 May  4 07:28 mlock.exe
-rwx------+   1 desmolej Domain U    88039 May 23 06:44 moduli
-rw-rw-rw-    1 desmolej Domain U       60 Jul 10 08:29 motd
-rw-rw-rw-    1 desmolej Domain U        0 Jul 10 08:30 mtab
lrwxrwxrwx    1 desmolej Domain U      160 Jul 10 08:29 networks -> C:\WINDOWS\system32\drivers\etc\networks
-rw-rw-rw-    1 desmolej Domain U    43683 Jul 10 08:37 passwd
-rw-rw-rw-    1 desmolej Domain U      945 Jul 10 08:29 passwd.orig
-rw-r--r--    1 desmolej Domain U     2853 Jul 10 08:29 pinforc
drwx------+   2 desmolej Domain U        0 Jul 10 08:30 postinstall
drwx------+   2 desmolej Domain U        0 Jul 10 08:29 preremove
-rwx------    1 desmolej Domain U     2034 Jul 10 08:29 profile
drwx------+   2 desmolej Domain U        0 Jul 10 08:37 profile.d
-rwxr-xr-x    1 desmolej Domain U     1519 Jul 10 08:29 profile.ksh

Is this happening to anyone else?

luke

Attachment: perm-probs
Description: etc-permissions

Attachment: cygcheck.out
Description: cygcheck.out

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.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]