[clug] Permissions

Kim Holburn kim at holburn.net
Mon Oct 9 10:04:42 GMT 2006


I know this is generally a helpful list but it is not the samba list  
it is the Canberra Linux Users Group.  You would be better served by  
asking on the samba list:

https://lists.samba.org/mailman/listinfo/samba

samba at lists.samba.org

On 2006 Oct 09, at 7:14 PM, surv1v0r wrote:

>
>
> James Ring wrote:
>>
>> Hey,
>>
>> man smb.conf(5), see create mask.
>>
>> Regards,
>>
>> James Ring
>>
>
> Thanks for your help on this, I have now got it working  
> satisfactorily, the
> relevant section now reads :
> [sharedata]
> 	comment = Shared Data
> 	inherit acls = No
> 	directory mask = 0770
> 	create mask = 0770
> 	path = /sharedata
> 	read only = No
>
> I had tried adding the "create mask = 0777" command in smb.conf and it
> didn't seem to work. I then wandered off trying to work out how  
> "inherit
> acls" worked - and got nowhere.
>
> Whilst on my journey of discovery, in the Samba documentation and an
> O'Reilly book (I do love Tim O'Reilly), I also happened across  
> "force create
> mode = 0770" and "force directory mode = 0770".  Having had your  
> response
> and got it to work, I didn't follow up on this.
>
> One thing puzzles me.  In various references, it suggests using :
> 	directory mask = 0777
> 	create mask = 0777
> I don't care about permissions for the "World" so used 0770.   
> However, under
> Linux, the permissions flags on created or saved files are always  
> shown as
> -rwxrw---- (which is fine for my purposes), the created Directory  
> flags are
> shown as drwxrwx---
>> From this, I guess I should / could be using "create mask =  
>> 0760".  What
> Puzzles me is why the "group" execute flag has been cleared?  Any
> explanation? This really isn't important as I am happy now anyhow,  
> but I am
> curious.
>
> One other puzzle - I get the impression that if userA opens a file for
> editing, it can also be opened (at the same time) for editing by  
> userB -
> i.e. no file locks are applied - is there a way around this?
> -- 
> View this message in context: http://www.nabble.com/Permissions- 
> tf2406946.html#a6714137
> Sent from the Samba - linux mailing list archive at Nabble.com.
>
> -- 
> linux mailing list
> linux at lists.samba.org
> https://lists.samba.org/mailman/listinfo/linux

--
Kim Holburn
IT Network & Security Consultant
Ph: +61 2 61258620 M: +61 417820641  F: +61 2 6230 6121
mailto:kim at holburn.net  aim://kimholburn
skype://kholburn - PGP Public Key on request
Cacert Root Cert: http://www.cacert.org/cacert.crt
Aust. Spam Act: To stop receiving mail from me: reply and let me know.
Use ISO 8601 dates [YYYY-MM-DD] http://www.saqqara.demon.co.uk/ 
datefmt.htm

Democracy imposed from without is the severest form of tyranny.
                           -- Lloyd Biggle, Jr. Analog, Apr 1961





More information about the linux mailing list