I have setup Debian 8 and have it running well.

I have network access set up using samba.

When I create a folder over the network it has the permissions drwxr-sr-x. When I copy a file into a folder it is created with the permissions -rwxr-----.

Is there a way have these automatically set to -rwxrwxr-x when they are created?


In the smb.conf file under [homes] I had

create mode = 0750

I then updated it to this

directory mask = 0775
create mode = 0775

Now when I create directories they are created as drwxrwxr-x and files are created as -rwxrw-r-- which works as I required.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.