[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Samba writes wrong file permissions



On Wed June 4 2008 20:30:14 Robert S wrote:
> I think we might be on the wrong track here.  I think that the Windows
> client changes the file to world read/write/execute for all users and
> groups, and this creates these permissions on the file on my debian
> machine.
>
> Is there any way that Samba can prevent these permissions from being
> created? - I'd like to avoid world-writeable files on my system.

In smb.conf:

	directory security mask 0775
	security mask 0775

You will also need to remove world-write permission from
files which already have it.  Check this command carefully
before using it on your system but I suspect you want:

	chmod -R o-w /home/apache/files

--Mike Bird


Reply to: