Dragan Krnic
2002-Nov-27 22:04 UTC
[Samba] "attrib +R myowndir" fails to write-protect my owndir
I hope Time won't take me to a CDMA court martial in Guantanamo for unfair use of your quotes, Daniel! The point is that each norm is only really valid in its original context. It is the spirit of the norm which should guide us. The idea is: you slap an unorthodox attribute onto an object to evoke any kind of practical magic and then laugh your sides off. Who cares? The same with Readonly. How long are we going to proselytize that the ability to remove a something must reside in its parent container even if the common-sense interpretation and apparent design is closer to delete-protection. Therefore this something gets the label "Don't touch" and you won't touch it even if it is in your power to remove it since having as it were the formal right to delete the sticker. Flame bait? You bet! Let's compromise. Let's define a new smb.conf directive for 3.0: [homes & especially profiles] overrule readonly dirs = Yes/No Default is "No" and it's very deprecated, but in exceptional cases, like on almost every samba server, it may be enabled to write into one's own write-protected directories. How 'but it, fellas? -- On Wed, 27 Nov 2002 16:06:53 daniel.jarboe wrote:>True, but was his desire to prevent deletion of the directory, like in >DOS? > >C:\>mkdir test >C:\>attrib +r test >C:\>rmdir test >Access is denied. >C:\>attrib -r test >C:\>rmdir test > >This works on windows mapped shares, but not on samba. > >~ Daniel > >-----Original Message----- >From: jra@dp.samba.org [mailto:jra@dp.samba.org] >Sent: Wednesday, November 27, 2002 3:54 PM >To: Dragan Krnic >Cc: samba@lists.samba.org; dkrnic@t-online.de >Subject: Re: [Samba] "attrib +R myowndir" fails to write-protect my own >dir > > >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. >-- >To unsubscribe from this list go to the following URL and read the >instructions: http://lists.samba.org/mailman/listinfo/samba_____________________________________________________________ Get 25MB, POP3, Spam Filtering with LYCOS MAIL PLUS for $19.95/year. http://login.mail.lycos.com/brandPage.shtml?pageId=plus&ref=lmtplus
Maybe Matching Threads
- "attrib +R myowndir" fails to write-protect my own dir
- AW: "attrib +R myowndir" fails to write-protect my own dir
- Antwort: Re: 3.0.4: smbd's + nscd's = 100% CPU; load > 4
- Re: Windows 2000 don't fetch user.DOMAIN profile
- RE: Samba vs. Windows : significant difference in timestamphandli ng?