Linux - ServerThis forum is for the discussion of Linux Software used in a server related context.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Hey all, I am running Ubuntu Server 8.10, and trying to setup a samba box. I have samba configured so that the proper folders are shared, and all the windows workstations (xp & vista) can see the shares. My problem is a permissions issue. if I issue the command
sudo chmod -R 770 folderName
then whoever writes to a file first has full access. however the permissions are being set to something like owner rwx group r__ other ___ . this is not what I want at all... any Idea how I can stop the file permissions from changing during editing? Excel 2003...
thanks for your help,
Christopher King
ps: it has been suggested that it might be something called "Opportunistic locking" but I have no real understanding of what this is...
Is only one user or group allowed to access the share?
You don't want to set the 'x' bit on files in a share. You do need them for directories.
Check if you have a "create mask" entry in your smb.conf file. The default is 0744. Also check for "directory mask". The default is 0744.
A Linux user saving a file will have the umask environment variable mask of bits of created files.
If you have more than one user that is able to write to the share, you want to enable the 'o' bit on the share's directory. The default for a public share is the same as the /tmp directory, created with "chmod ugo=rwxt". The sticky bit prevents one user from deleting the file of another user.
Also look at "force create mode" and "force directory mode" if you want documents and directories to have certain unix permissions set (or'ed).
I think that opportunistic locking will only affect files that are being edited by another user, not after they are done.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.