You are not logged in.

#1 2009-09-21 19:41:26

caste381
Member
Registered: 2009-09-21
Posts: 2

Preserve files permissions in samba

Hi everybody,

I'm facing an issue I can't seem to solve. I hope somebody can help me.
-I modified fstab to mount a secondary hd on /data
-with chown -R I changed then owner of the folder from root to my nonroot user
-I changed file permissions from 720 to 755, recursively
-Installed samba, created the smb user and made it as the only user with write permissions.

Now I can connect from windows vista no problem, with the right user, and copy files in the share.
The only thing is that the newly copied files have now different permissions: 720 instead of 755
Why? And how can I solve it?

Thanks everybody!

Offline

#2 2009-09-21 20:21:26

brenix
Member
From: California
Registered: 2008-03-05
Posts: 185

Re: Preserve files permissions in samba

Maybe try adding the following to your share definition in the smb.conf..

create mask = 0755

Source: Here

Offline

#3 2009-09-21 20:43:48

caste381
Member
Registered: 2009-09-21
Posts: 2

Re: Preserve files permissions in samba

Thanks brenix. I'll try!

Offline

Board footer

Powered by FluxBB