Welcome to WebmasterWorld Guest from 18.206.168.65

Forum Moderators: bakedjake

Message Too Old, No Replies

odd permissions being set on file edit over samba share

     
11:16 am on Jan 2, 2015 (gmt 0)

Senior Member from ES 

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month

joined:July 24, 2002
posts: 1129
votes: 2


hi,

a couple of years ago i setup an ubuntu vm in our office to be edited by two people simultaneously. i setup some sort of acl (but not necessarily acl, i don't actually remember!) to allow group editing of files.

i am now the sole user of the vm (everyone has their own) and find that everytime i edit a file over the local network, the + sign is set and the group is given rwx permission on the file.

so a normal file with 644 is suddenly given 674:

-rw-rwxr--+

the + sign seems to indicate an acl has been set and i can see this when i view getfacl file:

# owner: james
# group: james
user::rw-
user:james:rwx
group::rw-
group:james:rw-
mask::rwx
other::r--

what i have tried already:

1. i have tried removing all acl's for the entire partition with setfacl -Rb /
2. setting 0644 and 0755 as the create mask and directory mask in the smb.conf (previously they were both set to 0775).
3. checking login defs and profile to make sure default umask is 0022

but still everytime i edit a file on the vm over the local network (i use sublime text), it is set to chmod 674 with +.

can anyone suggest somewhere i haven't looked yet?

many thanks

edit: when creating a new file, it is created correctly with 644 with no acl. but when i open and save it from sublime text over the local network it is saves as 674 with the + sign again.
10:49 am on Jan 4, 2015 (gmt 0)

Senior Member from KZ 

WebmasterWorld Senior Member lammert is a WebmasterWorld Top Contributor of All Time 10+ Year Member Top Contributors Of The Month

joined:Jan 10, 2005
posts: 2947
votes: 30


Newer versions of Samba are able to inherit Windows ACLs, so these might be settings from your client computer which are then used by Samba. The use of ACLs is controlled in your smb.conf file. Look for settings like

vfs objects = acl_xattr
map acl inherit = Yes
store dos attributes = Yes

After changing these settings you should restart your samba server process.
11:08 am on Jan 5, 2015 (gmt 0)

Senior Member from ES 

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month

joined:July 24, 2002
posts: 1129
votes: 2


hi lammert, thanks for suggestions, they didn't actually work, but put me on the right track. the setting

nt acl support = no

worked.

many thanks for help :)
11:46 am on Jan 5, 2015 (gmt 0)

Senior Member from KZ 

WebmasterWorld Senior Member lammert is a WebmasterWorld Top Contributor of All Time 10+ Year Member Top Contributors Of The Month

joined:Jan 10, 2005
posts: 2947
votes: 30


Thanks for reporting back :)