Mail Archives: cygwin/2003/07/16/09:18:36
Hmmm.
I recently had need of reinstalling my cygwin installation. I did find the
permissions were overly restrictive. Even though I had marked the
installation for everyone, only the account I used to create
it could login until I did:
chmod -R ug+rwX,o+rX /
chmod 1777 `find / -name tmp`
I also found I had to do a
chown -R Administrator.SYSTEM /
chown SYSTEM.SYSTEM /etc/empty
chmod go-w /etc/empty
However, most of these second set of permissions changes where because I
wanted anyone with Administrator privileges to be able to use "setup" to add
packages, not just the account I used for
the base installation.
I'd be happy to provide more details, but I've already clobbered all the
permissions...
Bill
----- Original Message -----
From: <luke DOT kendall AT cisra DOT canon DOT com DOT au>
To: <cygwin AT cygwin DOT com>
Sent: Tuesday, July 15, 2003 9:37 PM
Subject: 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
>
>
----------------------------------------------------------------------------
----
> --
> 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/
--
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/
- Raw text -