I need to mount a samba share as mode 777, so all users can read/write/delete/create. I have this as fstab entry //host/public /mnt/home smbfs auto,uid=user,umask=000,defaults,username=Perkins,password see, i've had to put uid=user just to get it owned by user user, so i could edit files i put mode=777, but it does nothing. i want to let all users read/write/create/delete what to do? _________________________________________________________________ Send and receive Hotmail on your mobile device: http://mobile.msn.com
On Sat, 27 Jul 2002, David Cougle wrote:> I have this as fstab entry > //host/public /mnt/home smbfs > auto,uid=user,umask=000,defaults,username=Perkins,password> > > see, i've had to put uid=user just to get it owned by user user, so i could > edit files > i put mode=777, but it does nothing. > i want to let all users read/write/create/deleteNot sure what is happening, but smbmnt also looks at the umask of the user when mounting. I also wonder if it isn't backwards and that the "mask" is really the mode. Try fmask=0777,dmask=0777 ... (Neither umask nor mode are options that smbmount recognizes, see the manpage) /Urban
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. help?>From: Urban Widmark <urban@teststation.com> >To: David Cougle <dcougle@hotmail.com> >CC: samba@lists.samba.org >Subject: Re: [Samba] mode=777 does not work as fstab option >Date: Tue, 6 Aug 2002 18:43:25 +0200 (CEST) > >On Sat, 27 Jul 2002, David Cougle wrote: > > > I have this as fstab entry > > //host/public /mnt/home smbfs > > auto,uid=user,umask=000,defaults,username=Perkins,password> > > > > > see, i've had to put uid=user just to get it owned by user user, so i >could > > edit files > > i put mode=777, but it does nothing. > > i want to let all users read/write/create/delete > >Not sure what is happening, but smbmnt also looks at the umask of the user >when mounting. I also wonder if it isn't backwards and that the "mask" is >really the mode. Try fmask=0777,dmask=0777 ... > >(Neither umask nor mode are options that smbmount recognizes, see the > manpage) > >/Urban > > >-- >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
[user@localhost filedepot]$ touch foo.txt touch: creating `foo.txt': No such file or directory (this works when done locally) [user@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@localhost filedepot]$>From: Urban Widmark <urban@teststation.com> >To: David Cougle <dcougle@hotmail.com> >CC: samba@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
[user@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@hotmail.com> >To: urban@teststation.com >CC: samba@lists.samba.org >Subject: Re: [Samba] mode=777 does not work as fstab option >Date: Sun, 11 Aug 2002 08:45:07 -0500 > > >[user@localhost filedepot]$ touch foo.txt >touch: creating `foo.txt': No such file or directory >(this works when done locally) > >[user@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@localhost filedepot]$ > > > >>From: Urban Widmark <urban@teststation.com> >>To: David Cougle <dcougle@hotmail.com> >>CC: samba@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
locally, any user can write to that stuff.>From: Urban Widmark <urban@teststation.com> >To: David Cougle <dcougle@hotmail.com> >CC: samba@lists.samba.org >Subject: Re: [Samba] mode=777 does not work as fstab option >Date: Mon, 12 Aug 2002 18:28:43 +0200 (CEST) > >On Sun, 11 Aug 2002, David Cougle wrote: > > > > > [user@localhost filedepot]$ touch foo.txt > > touch: creating `foo.txt': No such file or directory > > (this works when done locally) > >This error does not indicate a permission problem. I suggest you run >ethereal on the linux box, listening to port 139, while you run 'touch'. > >smbfs translates error codes from the server into unix errno values. >Something may be lost in the translation. There should be a create or open >response with this error code in it (don't worry ethereal decodes most of >it for you). > >If you want to you could save the snoop'ed data to file and send them to >me off-list. > > >Perhaps the server is full? (disk space, out of inodes on a unix box, ...) > >Whatever it is, this is not a problem with the smbfs permission code. You >may want to tripple check that the windows user "Perkins", or whomever you >connect as, has permission to write in that dir (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_________________________________________________________________ Join the world’s largest e-mail service with MSN Hotmail. http://www.hotmail.com
//ip/public /mnt/home smbfs auto,fmask=666,dmask=777,defaults,guest,rw user perkins is not mentioned?>From: Urban Widmark <urban@teststation.com> >To: David Cougle <dcougle@hotmail.com> >CC: samba@lists.samba.org >Subject: Re: [Samba] mode=777 does not work as fstab option >Date: Mon, 12 Aug 2002 18:28:43 +0200 (CEST) > >On Sun, 11 Aug 2002, David Cougle wrote: > > > > > [user@localhost filedepot]$ touch foo.txt > > touch: creating `foo.txt': No such file or directory > > (this works when done locally) > >This error does not indicate a permission problem. I suggest you run >ethereal on the linux box, listening to port 139, while you run 'touch'. > >smbfs translates error codes from the server into unix errno values. >Something may be lost in the translation. There should be a create or open >response with this error code in it (don't worry ethereal decodes most of >it for you). > >If you want to you could save the snoop'ed data to file and send them to >me off-list. > > >Perhaps the server is full? (disk space, out of inodes on a unix box, ...) > >Whatever it is, this is not a problem with the smbfs permission code. You >may want to tripple check that the windows user "Perkins", or whomever you >connect as, has permission to write in that dir (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