AW: [Samba] "attrib +R myowndir" fails to write-protect my own dir

Dragan Krnic dkrnic at t-online.de
Thu Nov 28 10:09:00 GMT 2002


Is it a bug?

No it's apparently a feature, Saulius!

-----Ursprüngliche Nachricht-----
Von: Saulius Gurklys [mailto:sagu at isl.vtu.lt] 
Gesendet: Donnerstag, 28. November 2002 08:31
An: jra at dp.samba.org
Cc: Dragan Krnic; samba at lists.samba.org; dkrnic at t-online.de
Betreff: Re: [Samba] "attrib +R myowndir" fails to write-protect my own
dir


jra at dp.samba.org wrote:
> On Wed, Nov 27, 2002 at 10:33:11PM +0100, Dragan Krnic wrote:
>> I'm so glad there are kind souls at this time of night. Wait, it 
>> might be day at your place. Good day!
> 
> Yep, it's 1:30 in the afternoon here in California :-).
> 
>> I don't see a contradiction in setting Readonly flag on one's own 
>> directories and then creating files in them anyways. It's very much 
>> like any overruling root privilege. It's just a flag, Jeremy, it's 
>> not our saviour's gospel. Bill knows we don't march over dead bodies 
>> and he's taking unfair advantage of it.
>> 
>> I propose a new smb.conf feature for 3.0:
>> 
>>    [homes & especially profiles]
>>       overrule readonly dirs = Yes/No
>> 
>> Default is "No", but in exceptional cases, like on almost every samba

>> server, it may be enabled to write into one's own write-protected 
>> directories, salvation be damned.
> 
> The flag "dos filemode" is usually used for this purpose, I'll 
> investigate using it.
> 
> Thanks,
> 
> 	Jeremy.

Does this flag work for directories too ?
Acctualy it does NOT work for me. With files is everything OK. If file
is owned by other user, but my user belongs to group which has write
access, I can change file atributes.

attrib -R file_on_samba.txt

But it does not work with directories... !

attrib -R dir_on_samba
Access denied - dir_on_samba

Is it a bug?

--
Saulius








More information about the samba mailing list