[Samba] "attrib +R myowndir" fails to write-protect my own dir
jra at dp.samba.org
jra at dp.samba.org
Wed Nov 27 20:55:00 GMT 2002
On Wed, Nov 27, 2002 at 07:23:30PM +0100, Dragan Krnic wrote:
> A trivial case:
>
> executing the following DOS command from the prompt line on a Win2K SP3:
>
> %windir%\system32\attrib.exe +R H:\dir
>
> can't set the R(eadonly) flag on my home dirs (2.2.7):
>
> drwxrwsr-x 4 me users 4096 Nov 27 17:59 .
> drwxr-sr-x 2 me users 4096 Nov 27 17:59 dir
> -r--r--r-- 1 me users 0 Nov 27 17:59 empty.txt
> drwxr-sr-x 2 me users 4096 Nov 27 17:27 profile
This is by design. From the source code :
if (IS_DOS_DIR(dosmode)) {
/* We never make directories read only for the owner as under DOS a user
can always create a file in a read-only directory. */
Jeremy.
More information about the samba
mailing list