public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
* File permissions cygwin install
@ 2008-07-15 14:48 Henk van Lingen
  2008-07-15 16:32 ` Corinna Vinschen
  0 siblings, 1 reply; 6+ messages in thread
From: Henk van Lingen @ 2008-07-15 14:48 UTC (permalink / raw)
  To: cygwin


Hi,

I'm a cygwin rookie and can't get I clear clue (after googling) as to why
after installing cygwin on WinXP I have these permissions:

$ ls -al /cygdrive/c/cygwin/
total 9
drwxrwx---+ 11 administrator  Users     0 Jul  4 13:52 .
drwxrwxr-x+ 11 Administrators SYSTEM    0 Jul 15 11:10 ..
-rwxr-x---+  1 administrator  Users    57 Jul  3 11:46 Cygwin.bat
-rwxr-x---+  1 administrator  Users  7022 Jul  3 11:46 Cygwin.ico
drwxrwx---+  2 administrator  Users     0 Jul  3 11:45 bin
drwxrwx---+  2 administrator  Users     0 Jul  3 11:44 cygdrive
drwxrwx---+  2 administrator  Users     0 Jul  3 11:44 dev
drwxrwx---+ 15 administrator  Users     0 Jul  4 13:57 etc
drwxrwxrwx+  3 Administrator  Users     0 Jul  4 13:52 home
drwxr-x---+ 20 administrator  Users     0 Jul  3 11:44 lib
drwxrwxrwt+  2 administrator  Users     0 Jul 15 16:00 tmp
drwxrwx---+ 17 administrator  Users     0 Jul  3 11:44 usr
drwxrwx---+  9 administrator  Users     0 Jul  4 13:21 var


I don't beleieve it is supposed to be this way? I.e. it seems odd to give
users write access in all kind of system directories?

regards,
-- 
Henk van Lingen, Systems Administrator & DBA                  (o-      -+
Dept. of Computer Science, Utrecht University.                /\        |
phone: +31-30-2534107                                        v_/_
http://henk.vanlingen.net/             http://www.tuxtown.net/netiquette/

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

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: File permissions cygwin install
  2008-07-15 14:48 File permissions cygwin install Henk van Lingen
@ 2008-07-15 16:32 ` Corinna Vinschen
  0 siblings, 0 replies; 6+ messages in thread
From: Corinna Vinschen @ 2008-07-15 16:32 UTC (permalink / raw)
  To: cygwin

On Jul 15 16:47, Henk van Lingen wrote:
> 
> Hi,
> 
> I'm a cygwin rookie and can't get I clear clue (after googling) as to why
> after installing cygwin on WinXP I have these permissions:
> 
> $ ls -al /cygdrive/c/cygwin/
> total 9
> drwxrwx---+ 11 administrator  Users     0 Jul  4 13:52 .
> drwxrwxr-x+ 11 Administrators SYSTEM    0 Jul 15 11:10 ..
> -rwxr-x---+  1 administrator  Users    57 Jul  3 11:46 Cygwin.bat
> -rwxr-x---+  1 administrator  Users  7022 Jul  3 11:46 Cygwin.ico
> drwxrwx---+  2 administrator  Users     0 Jul  3 11:45 bin
> drwxrwx---+  2 administrator  Users     0 Jul  3 11:44 cygdrive
> drwxrwx---+  2 administrator  Users     0 Jul  3 11:44 dev
> drwxrwx---+ 15 administrator  Users     0 Jul  4 13:57 etc
> drwxrwxrwx+  3 Administrator  Users     0 Jul  4 13:52 home
> drwxr-x---+ 20 administrator  Users     0 Jul  3 11:44 lib
> drwxrwxrwt+  2 administrator  Users     0 Jul 15 16:00 tmp
> drwxrwx---+ 17 administrator  Users     0 Jul  3 11:44 usr
> drwxrwx---+  9 administrator  Users     0 Jul  4 13:21 var
> 
> 
> I don't beleieve it is supposed to be this way? I.e. it seems odd to give
> users write access in all kind of system directories?

setup.exe creates the files with Windows default permissions. 
Usually those are determined by the inheritable permissions of the
parent directory in which you install the Cygwin directory.  Setup
is a plain Win32 application which doesn't know about POSIX perms.


Corinna

-- 
Corinna Vinschen                  Please, send mails regarding Cygwin to
Cygwin Project Co-Leader          cygwin AT cygwin DOT com
Red Hat

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

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: File permissions cygwin install
  2008-07-20 23:03 Angelo Graziosi
@ 2008-07-21  1:44 ` Larry Hall (Cygwin)
  0 siblings, 0 replies; 6+ messages in thread
From: Larry Hall (Cygwin) @ 2008-07-21  1:44 UTC (permalink / raw)
  To: cygwin

Angelo Graziosi wrote:
> Larry Hall wrote:
> 
>> Doing so would likely remove the ability that we have now the allows
>> users pre-create the installation directory with the permissions
>> they want to have for the entire tree.  So adding the additional
>> functionality you speak of to 'setup.exe', while possible, comes
>> with additional costs beyond the obvious (of just implementing
>> your idea).
> 
> I haven't written to add something to 'setup.exe'. I have tried to 
> stress the logic Linux/Cygwin asking for a workaround, mainly to correct 
> a current installation.

If by this you're asking the question, "Can't someone just change the
permissions on the install tree afterwards?", the answer is yes.  Forgive
me if I've missed your point.  I had allot of trouble parsing your
response above into something meaningful to me.



-- 
Larry Hall                              http://www.rfk.com
RFK Partners, Inc.                      (508) 893-9779 - RFK Office
216 Dalton Rd.                          (508) 893-9889 - FAX
Holliston, MA 01746

_____________________________________________________________________

A: Yes.
 > Q: Are you sure?
 >> A: Because it reverses the logical flow of conversation.
 >>> Q: Why is top posting annoying in email?

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

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: File permissions cygwin install
@ 2008-07-20 23:03 Angelo Graziosi
  2008-07-21  1:44 ` Larry Hall (Cygwin)
  0 siblings, 1 reply; 6+ messages in thread
From: Angelo Graziosi @ 2008-07-20 23:03 UTC (permalink / raw)
  To: cygwin

Larry Hall wrote:

> Doing so would likely remove the ability that we have now the allows
> users pre-create the installation directory with the permissions
> they want to have for the entire tree.  So adding the additional
> functionality you speak of to 'setup.exe', while possible, comes
> with additional costs beyond the obvious (of just implementing
> your idea).

I haven't written to add something to 'setup.exe'. I have tried to 
stress the logic Linux/Cygwin asking for a workaround, mainly to correct 
a current installation.


Cheers,
    Angelo.

---
Tu proverai si' come sa di sale
lo pane altrui, e come e' duro calle
lo scendere e 'l salir per l'altrui scale.

                   DANTE, Paradiso, xvii 58-60

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

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: File permissions cygwin install
  2008-07-19  8:57 Angelo Graziosi
@ 2008-07-20 21:51 ` Larry Hall (Cygwin)
  0 siblings, 0 replies; 6+ messages in thread
From: Larry Hall (Cygwin) @ 2008-07-20 21:51 UTC (permalink / raw)
  To: cygwin

Angelo Graziosi wrote:
> Corinna Vinschen wrote:
> 
>  >
>>> I don't beleieve it is supposed to be this way?
>  >
>> setup.exe creates the files with Windows default permissions. Usually 
>> those are determined by the inheritable permissions of the
>> parent directory in which you install the Cygwin directory.  
> 
>> Setup is a plain Win32 application which doesn't know about POSIX perms.
> 
> OK, this is known. But...
> 
> Is it supposed to be that way on Cygwin [1]?
> 
> Or we can adopt some workaround?
> 
> For example on Linux:
>    drwxr-xr-x  3 root root    0 Jul  4 13:52 home
> 
> and similar for /lib, /usr...
> 
> While on Cygwin:
>    drwxrwxrwx+  3 Administrator  Users 0 Jul  4 13:52 home
> 
> 
> It should be at least:
>    drwxr-xr-x  3 Administrator Administrators  0 Jul  4 13:52 home
> 
> 
> or not?
>

Doing so would likely remove the ability that we have now the allows
users pre-create the installation directory with the permissions
they want to have for the entire tree.  So adding the additional
functionality you speak of to 'setup.exe', while possible, comes
with additional costs beyond the obvious (of just implementing
your idea).


-- 
Larry Hall                              http://www.rfk.com
RFK Partners, Inc.                      (508) 893-9779 - RFK Office
216 Dalton Rd.                          (508) 893-9889 - FAX
Holliston, MA 01746

_____________________________________________________________________

A: Yes.
 > Q: Are you sure?
 >> A: Because it reverses the logical flow of conversation.
 >>> Q: Why is top posting annoying in email?

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

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: File permissions cygwin install
@ 2008-07-19  8:57 Angelo Graziosi
  2008-07-20 21:51 ` Larry Hall (Cygwin)
  0 siblings, 1 reply; 6+ messages in thread
From: Angelo Graziosi @ 2008-07-19  8:57 UTC (permalink / raw)
  To: cygwin

Corinna Vinschen wrote:

 >
>> I don't beleieve it is supposed to be this way?
 >
> setup.exe creates the files with Windows default permissions. 
> Usually those are determined by the inheritable permissions of the
> parent directory in which you install the Cygwin directory.  

> Setup is a plain Win32 application which doesn't know about POSIX perms.

OK, this is known. But...

Is it supposed to be that way on Cygwin [1]?

Or we can adopt some workaround?

For example on Linux:
    drwxr-xr-x  3 root root    0 Jul  4 13:52 home

and similar for /lib, /usr...

While on Cygwin:
    drwxrwxrwx+  3 Administrator  Users 0 Jul  4 13:52 home


It should be at least:
    drwxr-xr-x  3 Administrator Administrators  0 Jul  4 13:52 home


or not?


Cheers,
    Angelo.


---
[1] "a Linux-like environment for Windows".

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

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2008-07-21  1:44 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-07-15 14:48 File permissions cygwin install Henk van Lingen
2008-07-15 16:32 ` Corinna Vinschen
2008-07-19  8:57 Angelo Graziosi
2008-07-20 21:51 ` Larry Hall (Cygwin)
2008-07-20 23:03 Angelo Graziosi
2008-07-21  1:44 ` Larry Hall (Cygwin)

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).