LinuxQuestions.org
Latest LQ Deal: Linux Power User Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 04-22-2012, 04:06 PM   #1
sudub
LQ Newbie
 
Registered: Apr 2012
Distribution: debian
Posts: 2

Rep: Reputation: Disabled
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

Last edited by sudub; 04-22-2012 at 04:07 PM.
 
Old 04-23-2012, 09:32 AM   #2
danliston
LQ Newbie
 
Registered: Feb 2012
Location: South Dakota
Distribution: Fedora, CentOS, Oracle, OpenSolaris
Posts: 18

Rep: Reputation: Disabled
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
 
1 members found this post helpful.
Old 05-01-2012, 03:00 PM   #3
sudub
LQ Newbie
 
Registered: Apr 2012
Distribution: debian
Posts: 2

Original Poster
Rep: Reputation: Disabled
Thanks a lot
it helps me
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
umask and permissions: has umask 007 bad side effects? browny_amiga Linux - General 2 09-09-2011 09:01 AM
umask and /usr/bin/umask linux_user2011 Linux - Newbie 6 04-27-2011 03:05 AM
permission settings umask / samba create mask eRJe Linux - Server 2 02-22-2010 07:08 AM
Permissions problem...samba...umask? yanik Linux - General 2 01-27-2006 08:10 AM


All times are GMT -5. The time now is 08:25 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration