On Oct 18 17:05, Christian Franke wrote: > Corinna Vinschen wrote: > > SE_CHANGE_NOTIFY_NAME > > > > Required to receive notifications of changes to files or > > directories. This privilege also causes the system to skip all > > traversal access checks. It is enabled by default for all users. > > > > User Right: Bypass traverse checking. > > An unexpected "feature", IMO. > > Hmm.... after removing this privilege, Cygwin returns garbage stat() info, > for any path below the 'forbidden directory': > > $ uname -srvm > CYGWIN_NT-6.1-WOW64 1.7.33s(0.278/5/3) 20141017 14:39:49 i686 > > $ cd /var/spool/postfix/ > > $ ls -ld private > drwx------+ 1 postfix none 0 Oct 18 16:39 private > > $ ls -l private > ls: cannot open directory private: Permission denied > > $ ls -l private/smtp > srw-rw-rw- 1 postfix none 0 Oct 18 16:39 private/smtp > > $ cygdrop -p ChangeNotify ls -l private/smtp > -rw-r----- 1 Unknown+User Unknown+Group 6991943424855812584 Jun 23 1909 > private/smtp > > $ ls -l private/no/such/path > ls: cannot access private/no/such/path: No such file or directory > > $ cygdrop -p ChangeNotify ls -l private/no/such/path > -rw-r----- 1 Unknown+User Unknown+Group 6991943424855812584 Jun 23 1909 > private/no/such/path That should work better now. I just applied a patch to CVS. Thanks, Corinna -- Corinna Vinschen Please, send mails regarding Cygwin to Cygwin Maintainer cygwin AT cygwin DOT com Red Hat