[K12OSN] Network Drives

Rob Owens rowens at bio-chemvalve.com
Thu Aug 30 17:37:37 UTC 2007


create mask = 0777 would create read/write/execute permissions on files
for all users.
directory mask = 0777 does the same thing for directories.

I don't have a lot of knowledge of these options, but I know that they
helped me when I needed to ensure that everybody had access to
everything in a certain samba share.  I'm pretty sure these options only
affect the unix permissions, and do nothing for windows permissions. 
Still, you need the unix permissions to be correct because no matter
what the windows/samba permissions say, the unix permissions can still
prevent users from accessing or writing a file.

My version of samba says that the default is create mask = 744, which
would prevent write access by anybody except the owner.

-Rob

Kemp, Levi wrote:
> Thanks, I'll try the force user and force group ones. But what how are the create mode and directory mode used?
>
> Levi Kemp
> Technology Specialist
> Bolivar R-1 Schools
> 417-328-8943
> lnkemp at bolivar.k12.mo.us
>
>
>
> -----Original Message-----
> From: k12osn-bounces at redhat.com on behalf of Rob Owens
> Sent: Wed 8/29/2007 12:01 PM
> To: Support list for open source software in schools.
> Subject: Re: [K12OSN] Network Drives
>  
> I'm not sure if anybody mentioned it already, but here are a few more
> potentially useful samba options:
>
> create mask
> directory mask
> force create mode
> force directory mode
> force user
> force group
>
> -Rob
>
> Kemp, Levi wrote:
>   
>> Alright. After changing the smb.conf and adding the profiles section as well as chmod g+s /mnt/M new files created in /mnt/M are owned by Root, group is Root, and read only. I'm sure I'm missing something small here, but sadly I'm still learning permissions in linux.
>>
>> Levi Kemp
>> Technology Specialist
>> Bolivar R-1 Schools
>> 417-328-8943
>> lnkemp at bolivar.k12.mo.us
>>
>>
>>
>> -----Original Message-----
>> From: k12osn-bounces at redhat.com on behalf of Barry Cisna
>> Sent: Mon 8/27/2007 6:57 PM
>> To: k12osn at redhat.com
>> Subject: [K12OSN] Network Drives
>>  
>> Levi,
>>
>> You didn't mention if this was a Samba file server?If it is, do this in
>> the profiles directive:( at /etc/samba/smb.conf)
>>
>> [profiles]
>> create mask    = 0600
>> directory mask = 0700
>>
>>
>> You surely aren't using the evil MS $$ file server?...
>> Let us know your progress.
>>
>> Take Care,
>>
>> Barry Cisna
>>
>> _______________________________________________
>> K12OSN mailing list
>> K12OSN at redhat.com
>> https://www.redhat.com/mailman/listinfo/k12osn
>> For more info see <http://www.k12os.org>
>>
>>
>>   
>>     
>
> _______________________________________________
> K12OSN mailing list
> K12OSN at redhat.com
> https://www.redhat.com/mailman/listinfo/k12osn
> For more info see <http://www.k12os.org>
>
>
>   




More information about the K12OSN mailing list