The suggested program modification only has the effect described
when a couple of other conditions in the profile directory are
met: no ACLs should be used, the directories and subdirs must have
permissions "0775" and the relevant parts of "smb.conf" should read
something like this:
logon home = \\%L\%U
logon path = \\%L\%U\profile
[homes]
path = /home
valid users = %S
read only = No
inherit permissions = No
security mask = 775
directory security mask = 775
browseable = No
Without security masks it wouldn't work. Woodoo, anyone?
Dragan
-----Urspr�ngliche Nachricht-----
Von: Dragan Krnic [mailto:[EMAIL PROTECTED]]
Gesendet: Sonntag, 1. Dezember 2002 20:23
An: [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]; [EMAIL PROTECTED]
Betreff: Re: "attrib +R myowndir" fails to write-protect my own dir
Hi Jeremy,
after commenting out part of the line following the infamous quote "We
never make directories read only for the owner..." in
"samba/source/smbd/dosmode.c" as follows:
- result |= (S_IFDIR | S_IWUSR);
+ result |= (S_IFDIR /* | S_IWUSR /* 2002/12/01*/ );
I can make my own directories read-only. The advantage is that with this
modification "special" folder links get stored on
samba server with correct attributes and can be recovered
with them at every new login, thus preserving the "magic" of
so many tricky treats in the profile.
The disadvantage is that if I wants to create another file or delete an
existing one from such read-only directory, I need to first restore
writeability (remove read-only).
The advantage far offsets the disadvantage.
Thanks a lot for the tip.
Dragan
_____________________________________________________________
Get 25MB, POP3, Spam Filtering with LYCOS MAIL PLUS for $19.95/year.
http://login.mail.lycos.com/brandPage.shtml?pageId=plus&ref=lmtplus
--
To unsubscribe from this list go to the following URL and read the
instructions: http://lists.samba.org/mailman/listinfo/samba