samba: forward permission bits to unix/linux clients
for my samba configuration problem, I can't find a good solution:
When mounting a samba share with linux, I want to have the permission bits forwarded from the server side (especially the eXecute bits).
The old/usual workaround for this is the mount option e.g. file_mode=0755
But, I don't want to set it for ALL files. Only those files should be executable which are executable on the server ...
my smb.conf contains:
I need the "wide links" feature. Therefore, "unix extensions" is disabled anyway. Is this my problem or can I reach my goal alongside this settings ?
The documentation is somehow misleading, as it focuses on the Windows interpretation of permissions. But my question does not touch Windows: Linux <=> SAMBA <=> Linux
(Sometimes, I access this share with Windows too, but that shouldn't matter here.)
Has someone an idea ?
The solution should be to give your "client machine users" accounts with the same name on the server.
Or am I missing the question entirely?
Thanks for your time :)
With samba I export data from the server which has there some users/groups and permissions set, as you mention. When I mount a samba share on the client, that doesn't matter because I can set all this at mount time completely arbitrary:
What I'm interested in, is the file_mode=0644
if I omit it, the default is used which is 0755 or similar. But the problem is, it's applied to all files independent of the setting on the server.
I would like to know if samba exports the permission bits also somehow ? To get individual file permissions without having to overwrite them with a default (all on the client side).
And, if I have to use unix extensions = yes to get this feature or if there is another way ? (Although I'm not sure if it's supposed to work with this setting)
I suppose you could give them all execute privileges and write a filter of some sort to look at the permissions on the server and then deny execute privileges for files which didn't originally have execute permissions....
...but don't ask me how, it's over my head!
|All times are GMT -5. The time now is 11:50 PM.|