chmod of a file seems to always return success

Anders Karlsson trudheim at gmail.com
Sat Feb 3 20:52:39 GMT 2007


Hi there,

A follow on question to the 'security mask' / 'create mask' question.
When issuing a 'chmod' of a file, and any bits to be changed are blocked
(or prevented by the settings) from being changed; 'chmod' still returns
success?
Looking at behaviour, it looks like the server is stripping out the
permission bits the 'chmod' call is not allowed to change, and then
perform the operation (that at this point may be trying to change
nothing depending on 'create mask' / 'security mask' settings for the
share) and return success.
Should it not instead disallow the operation and return a fail if the
'chmod' call attempts to change bits it is not permitted to?

Thanks!

-- 
Anders Karlsson <trudheim at gmail.com>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/x-pkcs7-signature
Size: 3549 bytes
Desc: not available
Url : http://lists.samba.org/archive/samba-technical/attachments/20070203/77b16ca8/smime.bin


More information about the samba-technical mailing list