Samba User / Group Access Permissions Different Between Linux and Win
Linux - SoftwareThis forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.
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.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Samba User / Group Access Permissions Different Between Linux and Win
I'm having trouble working with a networked (Samba) filesystem from local Linux machines. Strangely, the configuration works beautifully when accessed from local Windows boxes, giving the authenticated user read/write access to files such as...
-rw-rw---- 1 jane sambauser 130560 Jan 27 2005 text.doc
When the filesystem is mounted under Linux with...
...files and directories like the one above are inaccessilble.
All accessing users have accounts on the samba server and are included in a group "sambauser" (john / sambauser).
Shared directory (/usr/share) is owned by root, group "sambauser" and has the following permissions set: drwxrws---
The directory has a sticky gid to make sure all files are owned and accessible to those in the "sambauser" group.
My smb.conf has the following params...
[share]
comment = File Server
path = /usr/share
browseable = yes
writeable = yes
guest ok = no
public = no
create mask = 0660
directory mask = 0770
printable = no
Any ideas why the accessing Linux machines are restricted while the Windows machines are not?
just a note beside your problem but are you sure this is the place where you want too set up the shares? might be misstaking but it doesn't seem the correct place to me. why not the home directory like the default?
Slack:
The location of the share is actually /share ... my mistake.
I will try the "rw" option when mounting. I can write to the share if I open the directories up to 777 and the user group info is correct.
Marozsas:
I actually was using force group = sambauser at one point (along with myriad other smb.conf options) to no avail.
I am also able to mount the fs from a OS X box and have no trouble writing to the filesystem. Huh.
I'm still unable to mount the filesystem with r/w access after specifying "rw" as a part of my mount command. Any other ideas? My only option is to open everything up 777 ... which isn't much of an option.
My trouble has been mounting the fs and browsing it through Gnome. If I mount the fs and browse it from the command-line, I have no problem with access permissions. What am I missing here?
I created a "sambauser" group on the local Linux machines with the same gid as is on the fileserver and added each respective local account to it and all is fine now. Why was this necessary if the smbmount command includes the specified gid to use on the samba fs?
The problem is when a user try to access the filesystem he does not have the proper permissions because he does not belongs to the specified group=sambauser. Doesn' t matter if that group exists or not. The bottom line is the user does not belongs to the group sambuser. I bet you will have the same problem if the group exists and a local user is not part of group sambauser.
Soon you will face another problem. How to have a centralized, single sign on, user account system ? This is the (open-source) Holly Graal I am looking for right now. But this is a subject for another threat...
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.