Access Denied
Posted: 28 Apr 2010 04:21
I'm running XYplorer as administrator on Win7. I'm getting "Access Denied" trying to view the contents of c:\Documents and Settings. What do I need to know?
Thanks!
Thanks!
Forum for XYplorer Users and Developers
https://www.xyplorer.com/xyfc/
C:\Documents and Settings on Windows 7 is a shortcut (technical term: junction) pointing to C:\Users; it's there to provide legacy compatibility. The "funny" thing is that appending a path name (like C:\Documents and Settings\user\My Documents) works (the contents of the folder are shown) but trying to list the contents of C:\Documents and Settings *itself* does not.speedmetal wrote:I'm running XYplorer as administrator on Win7. I'm getting "Access Denied" trying to view the contents of c:\Documents and Settings. What do I need to know?
Thanks!
Since I still cannot test this at home, I pass on a question I received by email:nas8e9 wrote:C:\Documents and Settings on Windows 7 is a shortcut (technical term: junction) pointing to C:\Users; it's there to provide legacy compatibility. The "funny" thing is that appending a path name (like C:\Documents and Settings\user\My Documents) works (the contents of the folder are shown) but trying to list the contents of C:\Documents and Settings *itself* does not.speedmetal wrote:I'm running XYplorer as administrator on Win7. I'm getting "Access Denied" trying to view the contents of c:\Documents and Settings. What do I need to know?
Thanks!
In general, just ignore the folder and go straight to C:\Users.
Is this a similar thing?I am running MS Vista Ultimate 64 bit. XYPlorer does not show any files under "My Music", "My Pictures" or "My Videos" folders. It simply says "Access is denied". These are default MS folders, and are not protected or hidden.
Unfortunately I can reproduce this with 9.00.0207 on both Windows Vista x86 SP2 as well as Windows 7 x64 RTM. The inaccessible folders' shortcut menu has a Junction Target; selecting Go to Junction Target goes to the corresponding Vista folder (C:\Users\username\Music, etc.). It seems XYplorer does indeed use \Documents and Settings, either directly or through an (on Vista and later) obsolete API.admin wrote:Since I still cannot test this at home, I pass on a question I received by email:Is this a similar thing?I am running MS Vista Ultimate 64 bit. XYPlorer does not show any files under "My Music", "My Pictures" or "My Videos" folders. It simply says "Access is denied". These are default MS folders, and are not protected or hidden.
Is this "Access Denied" a system message or from XYplorer? Do you have a screenshot?nas8e9 wrote:Unfortunately I can reproduce this with 9.00.0207 on both Windows Vista x86 SP2 as well as Windows 7 x64 RTM. The inaccessible folders' shortcut menu has a Junction Target; selecting Go to Junction Target goes to the corresponding Vista folder (C:\Users\username\Music, etc.). It seems XYplorer does indeed use \Documents and Settings, either directly or through an (on Vista and later) obsolete API.admin wrote:Since I still cannot test this at home, I pass on a question I received by email:Is this a similar thing?I am running MS Vista Ultimate 64 bit. XYPlorer does not show any files under "My Music", "My Pictures" or "My Videos" folders. It simply says "Access is denied". These are default MS folders, and are not protected or hidden.
To be clear, this concerns the My Documents node in XYplorer's tree (second node from the top below Computer). More or less interesting that apparently not many forum members use that node on later Windows versions (at least not pointing to the default folders) or there'd been forum bug reports by now...
It's a message from XYplorer:admin wrote:Is this "Access Denied" a system message or from XYplorer? Do you have a screenshot?
Good, that's what I had hoped. This leaves me a chance to fix it.nas8e9 wrote:It's a message from XYplorer:admin wrote:Is this "Access Denied" a system message or from XYplorer? Do you have a screenshot?
But is it true that you can browse them in WE?The reason you get an Access Denied on these junctions has nothing to do
with the fact that they are junctions. These junctions have a specific
Access Denied access control entry (ACE)for the Everyone group on their
discretionary access control list (DACL).
I don't understand - Programs can access them, but XY can't?admin wrote:These folders in Vista/7 are in fact junctions with the purpose to silently redirect programs that access them to their Windows Vista/7 equivalent.
The difference in behaviour between XYplorer and Windows Explorer seems to be that WE *can* use C:\Documents and Settings\username\My Documents to browse C:\Users\username\Documents while XYplorer doesn't get past C:\Documents and Settings. WE can't, like XYplorer, browse C:\Documents and Settings itself. Please see the attached screenshots.admin wrote:I researched this and found that XY's behavior is technically correct. These folders in Vista/7 are in fact junctions with the purpose to silently redirect programs that access them to their Windows Vista/7 equivalent. So they provide backward compatibility to XP. However, these folders are hidden and not meant to be browsed by the user. Instead you are supposed to browse the real locations, which e.g. in case of "My Music" would be "C:\Users\$USER$\Music".
Quote from the web:But is it true that you can browse them in WE?The reason you get an Access Denied on these junctions has nothing to do
with the fact that they are junctions. These junctions have a specific
Access Denied access control entry (ACE)for the Everyone group on their
discretionary access control list (DACL).
Legacy compatibility *is* apparently very messy.PeterH wrote:I don't understand - Programs can access them, but XY can't?
And: what's the sense of "My Documents", if I can't access them?
Sounds very strange to me...
Hey - 2 different cases? My comment was to the picture of nas8e9 showing "Access is denied" to "My Documents\My Music".PeterH wrote:
I don't understand - Programs can access them, but XY can't?admin wrote:These folders in Vista/7 are in fact junctions with the purpose to silently redirect programs that access them to their Windows Vista/7 equivalent.
And: what's the sense of "My Documents", if I can't access them?
Sounds very strange to me...
The problem is that C:\Documents and Settings is purely there as a pointer to what folders and files used to lie beneath in the old Windows 2000/XP folder structure. Windows Explorer does manage to access shell folders through this legacy help (i.e. C:\Documents and Settings\username\My Documents, etc.) whereas XYplorer gets stuck in C:\Documents and Settings itself, which isn't a real folder but merely a junction with a restrictive ACL.PeterH wrote:Hey - 2 different cases? My comment was to the picture of nas8e9 showing "Access is denied" to "My Documents\My Music".PeterH wrote:
I don't understand - Programs can access them, but XY can't?admin wrote:These folders in Vista/7 are in fact junctions with the purpose to silently redirect programs that access them to their Windows Vista/7 equivalent.
And: what's the sense of "My Documents", if I can't access them?
Sounds very strange to me...
But at start of topic, and in nas8e9's later posts you refer to "c:\Documents and Settings\username\My Documents" - I think this is quite different?