Corinna Vinschen corinna-cygwin@cygwin.com
Sun Feb 15 18:22:00 GMT 2015

On Feb 14 15:50, Buchbinder, Barry (NIH/NIAID) [E] wrote:
> Denis Excoffier wrote on Friday, February 13, 2015 4:31 PM
> > You misunderstand.  I don't need this stupid
> > 'Document and Settings' thing.
> "C:\Documents and Settings" appears to be something Windows handles.
> On Windows 7 Professional (ver 6.1, SP 1):
> Open cmd.exe.
> "dir" does not show "C:\Documents and Settings".
> "dir /a:" shows the following.
> 07/14/2009  12:08 AM    <JUNCTION>     Documents and Settings [C:\Users]
> So it looks like "C:\Documents and Settings" = "C:\Users".
> On my current machine, in Windows Explorer, I cannot look inside
> "C:\Documents and Settings".  In cmd I can cd into it but neither "dir"
> nor "dir /a:" show any file.  However Explorer will let me see inside
> "C:\Documents and Settings\myusername".  In cmd I can cd from
> "C:\Documents and Settings" into "C:\Documents and Settings\myusername".
> I'll stop here since I don't know much about junctions.  But I hope that
> the above helps.

C:\Documents and Settings on Vista and later is not a junction, just a
symlink to C:\Users.  The weird behaviour is the result of the
permission settings:

$ cacls C:/Documents\ and\ Settings
C:\Documents and Settings Everyone:(DENY)(special access:)

                          NT AUTHORITY\SYSTEM:F

Note the deny entry.  Microsoft was trying to discourage the usage
of "Documents and Settings" for the users, while at the same time
keeping applications hardcoding the path (they exist, unfortunately)


Corinna Vinschen                  Please, send mails regarding Cygwin to
Cygwin Maintainer                 cygwin AT cygwin DOT com
Red Hat
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 819 bytes
Desc: not available
URL: <http://cygwin.com/pipermail/cygwin/attachments/20150215/ac52ac43/attachment.sig>

More information about the Cygwin mailing list