opensuse 10/find / samba-3.0.20b-3.3 I'm trying to change directory permissions on a share so all users can modify files in the share and when I do as suggested in Ch15 of Samba Howto the following happens $ find `directory_name' -type d -exec chown nobody:users {}\; find: missing argument to `-exec' Chris Boyd Systems Engineer USIT 19-21 Aston Quay Dublin 2 Ireland Tel: +353 1 6021670 Fax: +353 1 6771602 www.usit.ie ----------------------------------------------------------------- This email message is intended only for the addressee(s) and contains information that may be confidential and/or copyrighted. If you are not the intended recipient please notify the sender by reply email and immediately delete this email. Use, disclosure or reproduction of this email by anyone other than the intended recipient(s) is strictly prohibited. USIT has scanned this email for viruses and dangerous content and believes it to be clean. However, virus scanning is ultimately the responsibility of the recipient. -----------------------------------------------------------------
Users are now able to edit files except for MS Office files on the share. When ever they edit an excel or word file it wants to create a new file and gives respective user as the owner. I did the chmod g+s and force create mode 0660/force directory mode 0770 but it didn't seem to make any difference (yes I've restarted nmb/smb). Chris Boyd Systems Engineer USIT 19-21 Aston Quay Dublin 2 Ireland Tel: +353 1 6021670 Fax: +353 1 6771602 www.usit.ie>>> "Eric Warnke" <ericew@gmail.com> 04/25/06 5:34 PM >>>try adding a space between {} and \; Cheers, Eric On 4/25/06, Chris Boyd <Chris.Boyd@usit.ie> wrote:> > opensuse 10/find / samba-3.0.20b-3.3 > I'm trying to change directory permissions on a share so all users can > modify files in the share and when I do as suggested in Ch15 of Samba Howto > the following happens > $ find `directory_name' -type d -exec chown nobody:users {}\; > > find: missing argument to `-exec' > > > > Chris Boyd > Systems Engineer > USIT > 19-21 Aston Quay > Dublin 2 > Ireland > > Tel: +353 1 6021670 > Fax: +353 1 6771602 > www.usit.ie > > ----------------------------------------------------------------- > This email message is intended only for the addressee(s) > and contains information that may be confidential and/or > copyrighted. If you are not the intended recipient please > notify the sender by reply email and immediately delete > this email. Use, disclosure or reproduction of this email > by anyone other than the intended recipient(s) is strictly > prohibited. USIT has scanned this email for viruses and > dangerous content and believes it to be clean. However, > virus scanning is ultimately the responsibility of the recipient. > ----------------------------------------------------------------- > > -- > To unsubscribe from this list go to the following URL and read the > instructions: https://lists.samba.org/mailman/listinfo/samba >----------------------------------------------------------------- This email message is intended only for the addressee(s) and contains information that may be confidential and/or copyrighted. If you are not the intended recipient please notify the sender by reply email and immediately delete this email. Use, disclosure or reproduction of this email by anyone other than the intended recipient(s) is strictly prohibited. USIT has scanned this email for viruses and dangerous content and believes it to be clean. However, virus scanning is ultimately the responsibility of the recipient. -----------------------------------------------------------------
Sorry here's the permissions. Notice the user robin after trying to edit an excel file. ls -la share/ total 5489 drwxrwsr-t 7 nobody users 960 Apr 26 14:14 . drwxr-xr-x 7 root root 152 Apr 25 16:29 .. -rwxrwxr-x 1 nobody users 67 Jun 13 2005 .bat -rwxrwxr-x+ 1 nobody users 206336 Apr 26 12:42 09DC1000 -rwxrwxr-x+ 1 nobody users 178176 Apr 26 12:22 35CA0000 -rwxrwxr-x+ 1 nobody users 206336 Apr 26 13:18 35D58600 -rwxrwxr-x+ 1 nobody users 206336 Apr 26 12:46 A0602000 -rwxrwxr-x+ 1 nobody users 206336 Apr 26 13:31 ABE19600 drwxrwsr-t 92 nobody users 6512 Apr 26 10:45 ACCOMMOD (OLD) -rwxrwxr-x+ 1 nobody users 206336 Apr 26 13:33 B2A5B400 -rwxrwxr-x+ 1 nobody users 206336 Apr 26 13:20 BA5AA400 -rwxrwxr-x 1 nobody users 131584 Dec 20 12:03 Christmas 05 slip.pub -rwxrwxr-x+ 1 nobody users 206336 Apr 26 13:17 DC358600 drwxrwsr-t 2 nobody users 424 Apr 25 14:12 Daniela's Copied Files (OLD) -rwxrwxr-x+ 1 robin users 206336 Apr 26 14:14 E5317000 -rwxrwxr-x+ 1 nobody users 206336 Apr 26 12:43 F0BD1000 -rwxrwxr-x+ 1 nobody users 206336 Apr 26 13:32 F9C29600 drwxrwsr-t 13 nobody users 352 Apr 25 14:21 MRKTING (OLD) -rwxrwxr-x 1 nobody users 27648 Apr 18 2005 Normal.dot -rwxrwxr-x 1 nobody users 1489 Jun 21 2005 PROTEL.INI -rwxrwxr-x 1 nobody users 24064 Apr 25 14:23 Robin test.doc drwxrwsr-t 4 nobody users 208 Apr 26 13:24 Shared 2006 -rwxrwxr-x 1 nobody users 206336 Apr 26 13:55 UCD 2006 Daily Figures.xls -rwxrwxr-x 1 nobody users 178176 Apr 26 10:39 UCD Village Daily Figures 2006.xls -rwxrwxr-x 1 nobody users 19456 Jun 13 2005 XCOPY K.doc -rwxrwxr-x 1 nobody users 12 Apr 25 15:52 aillinn.txt -rwxrwxr-x 1 nobody users 19 Apr 21 15:09 bob.txt -rwxrwxr-x 1 nobody users 544776 Apr 3 11:24 genplano.pdf drwxrwsr-t 2 nobody users 80 Apr 25 14:12 ini file 200605 -rwxrwxr-x 1 nobody users 2171904 Apr 21 11:58 lj988en.exe -rwxrwxr-x 1 nobody users 4 Apr 21 14:10 test2.txt -rwxrwxr-x 1 nobody users 0 Apr 25 16:23 testfile Here's the smb.conf [share] comment = Shared Folder path = /data/share # drive = S: read only = no force create mode = 0660 force directory mode = 0770 On 4/25/06, Chris Boyd <Chris.Boyd@usit.ie> wrote:> > opensuse 10/find / samba-3.0.20b-3.3 > I'm trying to change directory permissions on a share so all users can > modify files in the share and when I do as suggested in Ch15 of Samba Howto > the following happens > $ find `directory_name' -type d -exec chown nobody:users {}\; > > find: missing argument to `-exec' > > > > Chris Boyd > Systems Engineer > USIT > 19-21 Aston Quay > Dublin 2 > Ireland > > Tel: +353 1 6021670 > Fax: +353 1 6771602 > www.usit.ie > > ----------------------------------------------------------------- > This email message is intended only for the addressee(s) > and contains information that may be confidential and/or > copyrighted. If you are not the intended recipient please > notify the sender by reply email and immediately delete > this email. Use, disclosure or reproduction of this email > by anyone other than the intended recipient(s) is strictly > prohibited. USIT has scanned this email for viruses and > dangerous content and believes it to be clean. However, > virus scanning is ultimately the responsibility of the recipient. > ----------------------------------------------------------------- > > -- > To unsubscribe from this list go to the following URL and read the > instructions: https://lists.samba.org/mailman/listinfo/samba >Chris Boyd Systems Engineer USIT 19-21 Aston Quay Dublin 2 Ireland Tel: +353 1 6021670 Fax: +353 1 6771602 www.usit.ie ----------------------------------------------------------------- This email message is intended only for the addressee(s) and contains information that may be confidential and/or copyrighted. If you are not the intended recipient please notify the sender by reply email and immediately delete this email. Use, disclosure or reproduction of this email by anyone other than the intended recipient(s) is strictly prohibited. USIT has scanned this email for viruses and dangerous content and believes it to be clean. However, virus scanning is ultimately the responsibility of the recipient. -----------------------------------------------------------------
Chris Boyd Systems Engineer USIT 19-21 Aston Quay Dublin 2 Ireland Tel: +353 1 6021670 Fax: +353 1 6771602 www.usit.ie>>> "Eric Warnke" <ericew@gmail.com> 04/26/06 2:36 PM >>>You are getting bitten by standard unix permissions. 1) Your directory is "sticky" this means that the users would have to be the owner ( eg nobody here ) to remove the file ( just like /tmp ) Ahhhh right...got it 2) You don't have a force user = nobody in your [share] Doh!!! :) So the temp files are probably created as the userid, but when office goes to remove the old file it can't ( not nobody ). What you need to do is take a step back and decide what you want and then we can help you make it happen. 1) Do you want files to be "owned", but still managable ( r/w ) by everyone? I assumed they needed to be owned by nobody so everyone can modify word/excel files. It's a share drive mapped on their xp machines 2) Do you just want a anonymous share where everyone dumps files as a common user? Basically yes. 3) Do you want users to only be able to update there own files? No. I thought that's what the home shares would be for. Both of these are possible with some small changes to your config. Cheers, Eric On 4/26/06, Chris Boyd <Chris.Boyd@usit.ie> wrote:> > Sorry here's the permissions. Notice the user robin after trying to edit > an excel file. > > > ls -la share/ > total 5489 > drwxrwsr-t 7 nobody users 960 Apr 26 14:14 . > drwxr-xr-x 7 root root 152 Apr 25 16:29 .. > -rwxrwxr-x 1 nobody users 67 Jun 13 2005 .bat > -rwxrwxr-x+ 1 nobody users 206336 Apr 26 12:42 09DC1000 > -rwxrwxr-x+ 1 nobody users 178176 Apr 26 12:22 35CA0000 > -rwxrwxr-x+ 1 nobody users 206336 Apr 26 13:18 35D58600 > -rwxrwxr-x+ 1 nobody users 206336 Apr 26 12:46 A0602000 > -rwxrwxr-x+ 1 nobody users 206336 Apr 26 13:31 ABE19600 > drwxrwsr-t 92 nobody users 6512 Apr 26 10:45 ACCOMMOD (OLD) > -rwxrwxr-x+ 1 nobody users 206336 Apr 26 13:33 B2A5B400 > -rwxrwxr-x+ 1 nobody users 206336 Apr 26 13:20 BA5AA400 > -rwxrwxr-x 1 nobody users 131584 Dec 20 12:03 Christmas 05 slip.pub > -rwxrwxr-x+ 1 nobody users 206336 Apr 26 13:17 DC358600 > drwxrwsr-t 2 nobody users 424 Apr 25 14:12 Daniela's Copied Files > (OLD) > -rwxrwxr-x+ 1 robin users 206336 Apr 26 14:14 E5317000 > -rwxrwxr-x+ 1 nobody users 206336 Apr 26 12:43 F0BD1000 > -rwxrwxr-x+ 1 nobody users 206336 Apr 26 13:32 F9C29600 > drwxrwsr-t 13 nobody users 352 Apr 25 14:21 MRKTING (OLD) > -rwxrwxr-x 1 nobody users 27648 Apr 18 2005 Normal.dot > -rwxrwxr-x 1 nobody users 1489 Jun 21 2005 PROTEL.INI > -rwxrwxr-x 1 nobody users 24064 Apr 25 14:23 Robin test.doc > drwxrwsr-t 4 nobody users 208 Apr 26 13:24 Shared 2006 > -rwxrwxr-x 1 nobody users 206336 Apr 26 13:55 UCD 2006 Daily > Figures.xls > -rwxrwxr-x 1 nobody users 178176 Apr 26 10:39 UCD Village Daily Figures > 2006.xls > -rwxrwxr-x 1 nobody users 19456 Jun 13 2005 XCOPY K.doc > -rwxrwxr-x 1 nobody users 12 Apr 25 15:52 aillinn.txt > -rwxrwxr-x 1 nobody users 19 Apr 21 15:09 bob.txt > -rwxrwxr-x 1 nobody users 544776 Apr 3 11:24 genplano.pdf > drwxrwsr-t 2 nobody users 80 Apr 25 14:12 ini file 200605 > -rwxrwxr-x 1 nobody users 2171904 Apr 21 11:58 lj988en.exe > -rwxrwxr-x 1 nobody users 4 Apr 21 14:10 test2.txt > -rwxrwxr-x 1 nobody users 0 Apr 25 16:23 testfile > > Here's the smb.conf > > [share] > comment = Shared Folder > path = /data/share > # drive = S: > read only = no > force create mode = 0660 > force directory mode = 0770 > > > On 4/25/06, Chris Boyd <Chris.Boyd@usit.ie> wrote: > > > > opensuse 10/find / samba-3.0.20b-3.3 > > I'm trying to change directory permissions on a share so all users can > > modify files in the share and when I do as suggested in Ch15 of Samba > Howto > > the following happens > > $ find `directory_name' -type d -exec chown nobody:users {}\; > > > > find: missing argument to `-exec' > > > > > > > > Chris Boyd > > Systems Engineer > > USIT > > 19-21 Aston Quay > > Dublin 2 > > Ireland > > > > Tel: +353 1 6021670 > > Fax: +353 1 6771602 > > www.usit.ie > > > > ----------------------------------------------------------------- > > This email message is intended only for the addressee(s) > > and contains information that may be confidential and/or > > copyrighted. If you are not the intended recipient please > > notify the sender by reply email and immediately delete > > this email. Use, disclosure or reproduction of this email > > by anyone other than the intended recipient(s) is strictly > > prohibited. USIT has scanned this email for viruses and > > dangerous content and believes it to be clean. However, > > virus scanning is ultimately the responsibility of the recipient. > > ----------------------------------------------------------------- > > > > -- > > To unsubscribe from this list go to the following URL and read the > > instructions: https://lists.samba.org/mailman/listinfo/samba > > > > > Chris Boyd > Systems Engineer > USIT > 19-21 Aston Quay > Dublin 2 > Ireland > > Tel: +353 1 6021670 > Fax: +353 1 6771602 > www.usit.ie > > ----------------------------------------------------------------- > This email message is intended only for the addressee(s) > and contains information that may be confidential and/or > copyrighted. If you are not the intended recipient please > notify the sender by reply email and immediately delete > this email. Use, disclosure or reproduction of this email > by anyone other than the intended recipient(s) is strictly > prohibited. USIT has scanned this email for viruses and > dangerous content and believes it to be clean. However, > virus scanning is ultimately the responsibility of the recipient. > ----------------------------------------------------------------- > > -- > To unsubscribe from this list go to the following URL and read the > instructions: https://lists.samba.org/mailman/listinfo/samba >----------------------------------------------------------------- This email message is intended only for the addressee(s) and contains information that may be confidential and/or copyrighted. If you are not the intended recipient please notify the sender by reply email and immediately delete this email. Use, disclosure or reproduction of this email by anyone other than the intended recipient(s) is strictly prohibited. USIT has scanned this email for viruses and dangerous content and believes it to be clean. However, virus scanning is ultimately the responsibility of the recipient. -----------------------------------------------------------------
You have another option. If you put all the user in a group, make appropriate changes to the directory and smb.conf all the files will be "owned" but still editable by anyone. This will give a level of accountability since you can see who made which file. We use this scenario locally with much success. http://www.udel.edu/topics/os/unix/general/groupsharing.html *permission changes for unix sharing of the directory, for samba sharing the directory just needs to be owned by root:group and at least rwxrwx---. Example [share] - from my own configs [ritstaff] path = /network/rit/lab/ritstaff force group = ritstaff read only = No block size = 8192 # large share (eg >500g) OS X compatibility create mask = 0770 directory mask = 0770 valid users = @ritstaff # very important Cheers, Eric On 4/26/06, Chris Boyd <Chris.Boyd@usit.ie> wrote:> > Chris Boyd > Systems Engineer > USIT > 19-21 Aston Quay > Dublin 2 > Ireland > > Tel: +353 1 6021670 > Fax: +353 1 6771602 > www.usit.ie >
Could you show me an ls on that share just to make things a little clear. Thanks Chris Boyd Systems Engineer USIT 19-21 Aston Quay Dublin 2 Ireland Tel: +353 1 6021670 Fax: +353 1 6771602 www.usit.ie>>> "Eric Warnke" <ericew@gmail.com> 04/26/06 3:22 PM >>>You have another option. If you put all the user in a group, make appropriate changes to the directory and smb.conf all the files will be "owned" but still editable by anyone. This will give a level of accountability since you can see who made which file. We use this scenario locally with much success. http://www.udel.edu/topics/os/unix/general/groupsharing.html *permission changes for unix sharing of the directory, for samba sharing the directory just needs to be owned by root:group and at least rwxrwx---. Example [share] - from my own configs [ritstaff] path = /network/rit/lab/ritstaff force group = ritstaff read only = No block size = 8192 # large share (eg >500g) OS X compatibility create mask = 0770 directory mask = 0770 valid users = @ritstaff # very important Cheers, Eric On 4/26/06, Chris Boyd <Chris.Boyd@usit.ie> wrote:> > Chris Boyd > Systems Engineer > USIT > 19-21 Aston Quay > Dublin 2 > Ireland > > Tel: +353 1 6021670 > Fax: +353 1 6771602 > www.usit.ie >----------------------------------------------------------------- This email message is intended only for the addressee(s) and contains information that may be confidential and/or copyrighted. If you are not the intended recipient please notify the sender by reply email and immediately delete this email. Use, disclosure or reproduction of this email by anyone other than the intended recipient(s) is strictly prohibited. USIT has scanned this email for viruses and dangerous content and believes it to be clean. However, virus scanning is ultimately the responsibility of the recipient. -----------------------------------------------------------------
[root@calliope ritstaff]# ls -al total 96 drwxrws---+ 6 ew2193 ritstaff 4096 Apr 26 11:14 . drwxr-xr-x 10 root root 4096 Apr 26 09:21 .. drwxrwx---+ 2 as845383 ritstaff 4096 Apr 11 16:08 anne_test -rwxrw----+ 1 ew2193 ritstaff 162 Apr 26 11:14 ~$doc1.doc -rwxrw----+ 1 ew2193 ritstaff 24064 Apr 26 2006 doc1.doc -rwxrw----+ 1 ew2193 ritstaff 6148 Apr 25 11:21 .DS_Store drwxrws---+ 2 as845383 ritstaff 4096 Apr 25 10:52 lab1 drwxr-----+ 2 as845383 ritstaff 4096 Apr 25 11:19 lab2 drwxrwx---+ 3 ew2193 ritstaff 4096 Apr 25 11:45 testing [root@calliope ritstaff]# getfacl . # file: . # owner: ew2193 # group: ritstaff user::rwx group::rwx other::--- default:user::rwx default:group::rwx default:mask::rwx default:other::r-x On 4/26/06, Chris Boyd <Chris.Boyd@usit.ie> wrote:> > Could you show me an ls on that share just to make things a little clear. > Thanks > Chris Boyd > Systems Engineer > USIT > 19-21 Aston Quay > Dublin 2 > Ireland > > Tel: +353 1 6021670 > Fax: +353 1 6771602 > www.usit.ie > >>> "Eric Warnke" <ericew@gmail.com> 04/26/06 3:22 PM >>> > You have another option. > > If you put all the user in a group, make appropriate changes to the > directory and smb.conf all the files will be "owned" but still editable by > anyone. This will give a level of accountability since you can see who > made > which file. We use this scenario locally with much success. > > http://www.udel.edu/topics/os/unix/general/groupsharing.html *permission > changes for unix sharing of the directory, for samba sharing the directory > just needs to be owned by root:group and at least rwxrwx---. > > Example [share] - from my own configs > > [ritstaff] > path = /network/rit/lab/ritstaff > force group = ritstaff > read only = No > block size = 8192 # large share (eg >500g) OS X compatibility > create mask = 0770 > directory mask = 0770 > valid users = @ritstaff # very important > > > Cheers, > Eric > > On 4/26/06, Chris Boyd <Chris.Boyd@usit.ie> wrote: > > > > Chris Boyd > > Systems Engineer > > USIT > > 19-21 Aston Quay > > Dublin 2 > > Ireland > > > > Tel: +353 1 6021670 > > Fax: +353 1 6771602 > > www.usit.ie > > > > > ----------------------------------------------------------------- > This email message is intended only for the addressee(s) > and contains information that may be confidential and/or > copyrighted. If you are not the intended recipient please > notify the sender by reply email and immediately delete > this email. Use, disclosure or reproduction of this email > by anyone other than the intended recipient(s) is strictly > prohibited. USIT has scanned this email for viruses and > dangerous content and believes it to be clean. However, > virus scanning is ultimately the responsibility of the recipient. > ----------------------------------------------------------------- > >
Ok so what permissions do I need to run on the existing files/directories? ie chmod ? Chris Boyd Systems Engineer USIT 19-21 Aston Quay Dublin 2 Ireland Tel: +353 1 6021670 Fax: +353 1 6771602 www.usit.ie>>> "Eric Warnke" <ericew@gmail.com> 04/26/06 4:15 PM >>>[root@calliope ritstaff]# ls -al total 96 drwxrws---+ 6 ew2193 ritstaff 4096 Apr 26 11:14 . drwxr-xr-x 10 root root 4096 Apr 26 09:21 .. drwxrwx---+ 2 as845383 ritstaff 4096 Apr 11 16:08 anne_test -rwxrw----+ 1 ew2193 ritstaff 162 Apr 26 11:14 ~$doc1.doc -rwxrw----+ 1 ew2193 ritstaff 24064 Apr 26 2006 doc1.doc -rwxrw----+ 1 ew2193 ritstaff 6148 Apr 25 11:21 .DS_Store drwxrws---+ 2 as845383 ritstaff 4096 Apr 25 10:52 lab1 drwxr-----+ 2 as845383 ritstaff 4096 Apr 25 11:19 lab2 drwxrwx---+ 3 ew2193 ritstaff 4096 Apr 25 11:45 testing [root@calliope ritstaff]# getfacl . # file: . # owner: ew2193 # group: ritstaff user::rwx group::rwx other::--- default:user::rwx default:group::rwx default:mask::rwx default:other::r-x On 4/26/06, Chris Boyd <Chris.Boyd@usit.ie> wrote:> > Could you show me an ls on that share just to make things a little clear. > Thanks > Chris Boyd > Systems Engineer > USIT > 19-21 Aston Quay > Dublin 2 > Ireland > > Tel: +353 1 6021670 > Fax: +353 1 6771602 > www.usit.ie > >>> "Eric Warnke" <ericew@gmail.com> 04/26/06 3:22 PM >>> > You have another option. > > If you put all the user in a group, make appropriate changes to the > directory and smb.conf all the files will be "owned" but still editable by > anyone. This will give a level of accountability since you can see who > made > which file. We use this scenario locally with much success. > > http://www.udel.edu/topics/os/unix/general/groupsharing.html *permission > changes for unix sharing of the directory, for samba sharing the directory > just needs to be owned by root:group and at least rwxrwx---. > > Example [share] - from my own configs > > [ritstaff] > path = /network/rit/lab/ritstaff > force group = ritstaff > read only = No > block size = 8192 # large share (eg >500g) OS X compatibility > create mask = 0770 > directory mask = 0770 > valid users = @ritstaff # very important > > > Cheers, > Eric > > On 4/26/06, Chris Boyd <Chris.Boyd@usit.ie> wrote: > > > > Chris Boyd > > Systems Engineer > > USIT > > 19-21 Aston Quay > > Dublin 2 > > Ireland > > > > Tel: +353 1 6021670 > > Fax: +353 1 6771602 > > www.usit.ie > > > > > ----------------------------------------------------------------- > This email message is intended only for the addressee(s) > and contains information that may be confidential and/or > copyrighted. If you are not the intended recipient please > notify the sender by reply email and immediately delete > this email. Use, disclosure or reproduction of this email > by anyone other than the intended recipient(s) is strictly > prohibited. USIT has scanned this email for viruses and > dangerous content and believes it to be clean. However, > virus scanning is ultimately the responsibility of the recipient. > ----------------------------------------------------------------- > >----------------------------------------------------------------- This email message is intended only for the addressee(s) and contains information that may be confidential and/or copyrighted. If you are not the intended recipient please notify the sender by reply email and immediately delete this email. Use, disclosure or reproduction of this email by anyone other than the intended recipient(s) is strictly prohibited. USIT has scanned this email for viruses and dangerous content and believes it to be clean. However, virus scanning is ultimately the responsibility of the recipient. -----------------------------------------------------------------
Hi Chris chmod -R 770 /network/rit/lab/ritstaff this will give the owner and group full access to files and dirs recursively you check this site for further info http://www.computerhope.com/unix/uchmod.htm Chris Boyd skrev:> Ok so what permissions do I need to run on the existing files/directories? ie chmod ? >-- Venlig Hilsen (Best Regards) Rune T?nnesen