LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Samba perms vs umask ... (https://www.linuxquestions.org/questions/linux-newbie-8/samba-perms-vs-umask-941208/)

sudub 04-22-2012 03:06 PM

Samba perms vs umask ...
 
Hi all
I encouter a strange problem : i try to give R+X right permission to others.
I add in my mask a 5 for others, but when i add a file, it gives me only read rights :(
It doesn't correspond to my samba mask config
Do you have any idea ?
It seems my system is corrupt ?

A new file created on a subdirectory of the share , by a windows client, give :
-rwxrw-r-- 1 subledub subledub 0 2012-04-22 21:59 test10.txt

The share folder as this linux config:
drwxrwxr-x 15 subledub subledub 4096 2012-04-01 16:39 .
drwxr-xr-x 3 root root 4096 2010-12-02 17:34 ..
drwxrwxr-x 4 subledub subledub 4096 2012-04-21 14:44 MEDIA

Samba conf of the share folder :
[MEDIA]
comment = Media subfile
path = /mnt/DATA/MEDIA
browsable = no
create mask = 0775
directory mask = 0775
force create mask = 0775
force directory mask = 0775
write list = @subledub
valid users = subledub
admin users = subledub
force user = subledub
force group = subledub
writeable = Yes

For information :
i try other mask : sometimes i have the good result, and sometimes it gives me something different than what i expect: strange !

Thanks for help

danliston 04-23-2012 08:32 AM

There is a HUGE difference between netmask and umask, and what you are describing involves that latter (umask).

http://linuxzoo.net/page/sec_umask.html

sudub 05-01-2012 02:00 PM

Thanks a lot
it helps me :)


All times are GMT -5. The time now is 03:23 PM.