I'm using "store dos attributes = yes" in my smb.conf, and I've just noticed that the dos attibutes are missing for users without read access to the file itself. I suspected this was due to access controls on the extended attributes, and confirmed this by attempting to access the attributes as a restricted user. This is all fine and well, but ideally the attributes should still be present on these files/folders (the particular usage I'm aiming for is to hide certain folders with the hidden attribute). It would make sense to have samba read the extended attributes it is using internally in the context of the super user, though I am unsure as to the feasibilty of this. I only need this for a couple of folders, so I'll just add them to the hidden files list, but its something to consider for the future.
I'm pretty sure this still exists in 3.0.11. Jeremy, can you confirm ?
Please retest against a current version of Samba. Thanks.
Still present in 3.0.22-1
Thanks for checking. updating version. Jeremy, the only way I can think to fix this would be to fall back to a become_root() if the get_xattr() call failes with ERR noaccess.
Yes that's correct. Jeremy.
Why did you rest the version ?when Jamie confirmed it still exists in 3.0.22? was than an accident ?
Accident. I've set it back.
*** This bug has been marked as a duplicate of bug 14654 ***