You are not logged in.

#1 2010-07-03 16:56:43

nuxorg
Member
Registered: 2009-08-11
Posts: 37

Permission problem, umask and samba

I have file-server (server) that shares with samba.
I use file-server with two computer (cpu1, cpu2).

With cpu1 I connect to file-server with this (etc/fstab):

//192.168.0.1/baita /media/baita cifs username=example,password=password123,iocharset=utf8,rw 0 0                                                                           
//192.168.0.1/pute /media/pute cifs username=example,password=password123,iocharset=utf8,rw 0 0

With cpu2 I connect to file-server with this (autofs):

* -fstype=cifs,rw,iocharset=utf8,user=example,pass=password123 ://${host}/&

I can access to file-server from both computers (cpu1,cpu2) without any problems.

I modified umask for every computer (/etc/profile):

#Set our umask
umask 0007

But still I have problems with default permission. For example when directory is created permissions are:

drwxr-x---  2 example users 4096  3.7. 19:53 test

But I want this:

drwxrwx---  2 example users 4096  3.7. 19:53 test

I want default permission for every created directory or file to be ug+rw, but now it is u+rw and g+r. How can I fix this?

Thank you!

Offline

#2 2010-07-03 17:35:56

Sin.citadel
Member
Registered: 2008-01-22
Posts: 267

Re: Permission problem, umask and samba

you need to add the create mask parameter with your users shared directories in smb.conf,

create mask = 750

Offline

Board footer

Powered by FluxBB