Click to See Complete Forum and Search --> : file permissions over Samba


crazyboutbe
06-05-2001, 01:17 PM
I have a Linux fileserver serving a network of Windows machines (mostly NT Workstation).
1. Home folders are visible and browsable. I've added a couple of other shared folders for everyone to see. They are also visible and browsable. If I manually set the folder permissions to +rwx then everyone can open read and write all the files in the shared folders. When a user saves a new file to the shared folder, it is saved with read only rights for everyone else. How can I make it default to saving +rwx for everyone in those folders?

2. We use ACT which uses has a single database file that is saved on the server. It opens fine for the first user, but no other users can simultaneously open ACT and the database. There appears to be a sharing/mulitple open error. How can I allow multiple opens on a file? (and make it stick).

jscott
06-05-2001, 03:25 PM
1. Sounds like sticky bit is set. do a ls -al and see if the folder's permissions are drwxrwxrwt if yes chmod 0777 -R /folder_name Watch out though, now users can delete files/dirs they don't own.

2. are you using strict lock?

crazyboutbe
06-05-2001, 04:34 PM
- the folder bits are: drwxr-srwx
- a file in the folder is: -rwxr--rwx

- how can i tell if I'm using a strict lock?

crazyboutbe
06-06-2001, 07:23 AM
Thanks for the help. I'm still trying. Set permissions to folders using chmod 0777.

Problem is still with newly created files by users. New files are set to read only for everyone except the creator.

How can I set it to default to rwx for everyone on newly created files?

StanLin
06-07-2001, 11:35 AM
You need to set a directory mask in that particular share in the smb.conf file. I hope I can remember to get back to your post with more specific info.

jscott
06-07-2001, 01:12 PM
Mask settings (http://us4.samba.org/samba/docs/man/smb.conf.5.html#CREATEMASK)

crazyboutbe
06-07-2001, 01:19 PM
All Set! Thanks.