[Patch] Allow to disable root privileges with CYGWIN=noroot
Sat Aug 29 14:05:00 GMT 2009
For members of administrator group, Cygwin runs with root access rights.
Cygwin enables the Windows backup and restore privileges which are not
enabled by default.
This is IMO not desirable under all circumstances.
This patch adds a new flag to the Cygwin environment variable.
If 'CYGWIN=noroot' is set, the extra privileges are removed after Cygwin
This allows to run a Cygwin shell with the same default access rights as
cmd or explorer.
$ cd /cygdrive/c
$ ls -l 'System Volume Information'
----rwx--- 1 root SYSTEM 0 Feb 22 2009 MountPointManagerRemoteDatabase
$ CYGWIN=noroot ls -l 'System Volume Information'
ls: cannot open directory System Volume Information: Permission denied
I'm sure there is something missing, so no changelog for now :-)
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 2753 bytes
Desc: not available
More information about the Cygwin-patches