[Samba] Samba 3.0.0: "force user" not working

Jeremy Allison jra at samba.org
Tue Oct 14 23:44:40 GMT 2003

On Tue, Oct 14, 2003 at 10:59:11PM +0200, news.naag at gmx.net wrote:

> > | [200a3i]
> > |     path = /home/www_200a3i/public_html
> > |     valid users = peter, niklas
> > |     admin users = peter
> > |     force user = www_200a3i
> > |     force group = www

> neither files / directories are created using the user peter, nor niklas. 
> They are create using the user root.
> The behavior in 2.2 was like this: when setting "force user = www_200a3i", 
> then samba would actually create all files with the owner set to 
> www_200a3i.
> in 3.0.0, this only works with the "force group" setting. However, i would 
> also like to change the owner, not only the group.

Ok, you're not explaining very well what you're seeing.

Given the config file above, what user are you connecting as ?
What user are you seeing the files created as ?

If you are connecting as user peter then the desired behaviour
is that files should be owned by root, as that's what you
said when you set the admin users parameter. Anyone else
connecting should get fixes owned by www_200a3i.


More information about the samba mailing list