Suggestion on samba & anonymous FTP setup

William Muriithi william.muriithi-Re5JQEeQqe8AvxtiuMwx3w at public.gmane.org
Thu Nov 24 15:11:11 UTC 2011


Russ

On 16 November 2011 07:40, Russ <rreiter91-Re5JQEeQqe8AvxtiuMwx3w at public.gmane.org> wrote:
> Have a look at using force create mode and force directory mode for the share you defined in smb.conf.
>
> Default smbd sets r bit for owner of a file and rwx for owner of a directory when changing permissions or creating file system objects, regardless of the create mask or force create mode parameters.
>
> Tweaking these four lines may help make your permissions stick across symetric message blocks.
>
> create mask=0660
> force create mode=0660
> directory mask=0770
> force directory mode=0770
>
> This example from teach your self samba in 24 hrs prevents a user from being able to create a read only file for self or group.
>
This would not have worked as the directory was mounted read only.  I
am using ext3 and since you can not mount ext3 on two server read
write, I was forced to mount it read only on samba server

William
--
The Toronto Linux Users Group.      Meetings: http://gtalug.org/
TLUG requests: Linux topics, No HTML, wrap text below 80 columns
How to UNSUBSCRIBE: http://gtalug.org/wiki/Mailing_lists





More information about the Legacy mailing list