[Samba] mode=777 does not work as fstab option
David Cougle
dcougle at hotmail.com
Sun Aug 11 09:52:25 GMT 2002
[user at localhost home]$ ls -la
total 3992
drwxrwxrwx 1 root root 4096 Aug 9 11:34 .
drwxr-xr-x 8 root root 4096 Jul 30 15:11 ..
drwxrwxrwx 1 root root 4096 Aug 1 00:48 agcrowe
-rw-rw-rw- 1 root root 3874 Aug 1 15:28 agcrowe.jpg
drwxrwxrwx 1 root root 4096 Aug 11 07:43 filedepot
-rw-rw-rw- 1 root root 57038 Aug 9 12:37 MVC-023F.JPG
-rw-rw-rw- 1 root root 921654 Aug 9 12:38 MVC-024F.bmp
-rw-rw-rw- 1 root root 921654 Aug 9 12:39 MVC-025F.bmp
-rw-rw-rw- 1 root root 921654 Aug 9 12:40 MVC-026F.bmp
-rw-rw-rw- 1 root root 921654 Aug 9 12:41 MVC-028F.bmp
-rw-rw-rw- 1 root root 45073 Aug 9 11:30 MVC-038F.JPG
-rw-rw-rw- 1 root root 73386 Aug 9 11:29 MVC-039F.JPG
-rw-rw-rw- 1 root root 63745 Aug 9 11:30 MVC-040F.JPG
-rw-rw-rw- 1 root root 52472 Aug 9 11:30 MVC-041F.JPG
-rw-rw-rw- 1 root root 66394 Aug 9 11:30 MVC-042F.JPG
-rw-rw-rw- 1 root root 6736 Aug 1 19:39 signlocations.sxw
-rw-rw-rw- 1 root root 7290 Aug 5 00:54 speech.sxw
drwxrwxrwx 1 root root 4096 Aug 1 14:26 .xvpics
>From: "David Cougle" <dcougle at hotmail.com>
>To: urban at teststation.com
>CC: samba at lists.samba.org
>Subject: Re: [Samba] mode=777 does not work as fstab option
>Date: Sun, 11 Aug 2002 08:45:07 -0500
>
>
>[user at localhost filedepot]$ touch foo.txt
>touch: creating `foo.txt': No such file or directory
>(this works when done locally)
>
>[user at localhost filedepot]$ ls -la
>total 4097
>drwxrwxrwx 1 root root 4096 Aug 11 07:43 .
>drwxrwxrwx 1 root root 4096 Aug 9 11:34 ..
>-rw-rw-rw- 1 root root 5914 Aug 1 14:26 bio.htm
>-rw-rw-rw- 1 root root 5930 Jul 31 17:58 bio.htm~
>-rw-rw-rw- 1 root root 4680 Aug 1 00:51 contact.htm
>-rw-rw-rw- 1 root root 4679 Aug 1 00:51 contact.htm~
>-rw-rw-rw- 1 root root 4384 Aug 1 00:52 cs.htm
>-rw-rw-rw- 1 root root 4382 Aug 1 00:52 cs.htm~
>-rw-rw-rw- 1 root root 3495 Jul 18 23:32 depot.css
>-rw-rw-rw- 1 root root 3459 Jul 18 23:32 depot.css~
>-rw-rw-rw- 1 root root 4333 Jun 18 10:10 filebox.png
>-rw-rw-rw- 1 root root 325526 Jun 18 21:20 filebox.xcf
>-rw-rw-rw- 1 root root 189073 Jun 26 08:59 filedepot.png
>-rw-rw-rw- 1 root root 1640 Jul 31 17:04 form2mail.php
>-rw-rw-rw- 1 root root 136541 Jun 18 21:17 Guy.png
>drwxrwxrwx 1 root root 4096 Jul 21 07:49 images
>-rw-rw-rw- 1 root root 4192 Aug 3 03:00 index.html
>-rw-rw-rw- 1 root root 4238 Aug 3 03:00 index.html~
>-rw-rw-rw- 1 root root 3999 Aug 3 02:29 license.htm
>-rw-rw-rw- 1 root root 3996 Aug 1 00:52 license.htm~
>-rw-rw-rw- 1 root root 3740 Aug 1 00:52 locations.htm
>-rw-rw-rw- 1 root root 3738 Aug 1 00:52 locations.htm~
>-rw-rw-rw- 1 root root 818059 Jun 21 22:02 logonew2.xcf
>-rw-rw-rw- 1 root root 820287 Jun 26 08:58 logonew3.xcf
>-rw-rw-rw- 1 root root 789038 Jun 21 14:44 logonew.xcf
>-rw-rw-rw- 1 root root 764767 Jun 18 21:26 logotemp.xcf
>-rw-rw-rw- 1 root root 4502 Jul 28 16:41 minmax.js
>drwxrwxrwx 1 root root 4096 Aug 1 00:16 oak.theme
>-rw-rw-rw- 1 root root 9474 Aug 1 00:42 photos.shtml
>drwxrwxrwx 1 root root 4096 Aug 1 00:18 pictures
>-rw-rw-rw- 1 root root 28937 Jun 21 14:29 pill1.xcf
>-rw-rw-rw- 1 root root 204046 Jun 21 14:29 pill2.xcf
>-rw-rw-rw- 1 root root 1953 Jul 31 17:56 sent.htm
>-rw-rw-rw- 1 root root 1896 Jul 31 17:56 sent.htm~
>-rw-rw-rw- 1 root root 1953 Aug 1 00:48 sent.htm.save
>drwxrwxrwx 1 root root 4096 Jun 26 08:58 .xvpics
>[user at localhost filedepot]$
>
>
>
>>From: Urban Widmark <urban at teststation.com>
>>To: David Cougle <dcougle at hotmail.com>
>>CC: samba at lists.samba.org
>>Subject: Re: [Samba] mode=777 does not work as fstab option
>>Date: Fri, 9 Aug 2002 22:00:49 +0200 (CEST)
>>
>>On Fri, 9 Aug 2002, David Cougle wrote:
>>
>> > fmask and dmask setting make it work, but ONLY for shared dir, not it's
>> > subdirs.
>> > the subdirs do not allow creation/deletion/update of files.
>>
>>Could you please show exactly what you get, ie 'ls -al' in the mount dir
>>and in one subdir?
>>
>>
>>The dir and file modes are faked by smbfs, based on the values you give
>>it. The code looks like this
>>
>> fattr->f_mode = server->mnt->file_mode;
>> if (fattr->attr & aDIR)
>> {
>> fattr->f_mode = server->mnt->dir_mode;
>> fattr->f_size = SMB_ST_BLKSIZE;
>> }
>> /* Check the read-only flag */
>> if (fattr->attr & aRONLY)
>> fattr->f_mode &= ~(S_IWUSR | S_IWGRP | S_IWOTH);
>>
>>It uses the values it gets at mount time, but if a file or dir has the
>>"dos" attribute readonly the write permission is removed.
>>
>>file_mode and dir_mode should be the values you gave. If you run
>>'cat /proc/mounts' on a recent kernel (2.4.18 at least) it will show you
>>the values of these variables.
>>
>>You should also (re-)check that the dirs and files do not have readonly
>>status on the server.
>>
>>/Urban
>>
>>--
>>To unsubscribe from this list go to the following URL and read the
>>instructions: http://lists.samba.org/mailman/listinfo/samba
>
>
>
>
>_________________________________________________________________
>MSN Photos is the easiest way to share and print your photos:
>http://photos.msn.com/support/worldwide.aspx
>
>--
>To unsubscribe from this list go to the following URL and read the
>instructions: http://lists.samba.org/mailman/listinfo/samba
_________________________________________________________________
Send and receive Hotmail on your mobile device: http://mobile.msn.com
More information about the samba
mailing list