Files/folders getting wrong permissions even though they're foced through samba
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.
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.
Files/folders getting wrong permissions even though they're foced through samba
I have a server we use to host samba shares, and quite regularly we're seeing files/folders with incorrect permissions, they're getting drwxr-xr-x instead of drwxrwxrw-.
In our smb.conf, we have force user and force group set, and those are correct even on the problem folders. But we also set these two settings in smb.conf:
create mask = 0764
directory mask = 0776
I have a hunch that the machines added the folders with the incorrect permissions are OSX machines, so not sure if since that is based on Unix it's doing something funky with samba?
Any ideas what to check or what other settings to configure in smb.conf to prevent this from happening?
I have a server we use to host samba shares, and quite regularly we're seeing files/folders with incorrect permissions, they're getting drwxr-xr-x instead of drwxrwxrw-.
In our smb.conf, we have force user and force group set, and those are correct even on the problem folders. But we also set these two settings in smb.conf:
create mask = 0764
directory mask = 0776
I have a hunch that the machines added the folders with the incorrect permissions are OSX machines, so not sure if since that is based on Unix it's doing something funky with samba?
Any ideas what to check or what other settings to configure in smb.conf to prevent this from happening?
I believe that is happening due to the default umask set value which is 0755
The share which you have configured in smb.conf, is that accessible by public or a list of valid users?
Thanks. I never even heard of that before. Any thought as to why OSX machines would use this rather than what's in smb.conf while when PCs connect to the share they get those forced masks from the samba config?
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.