Force file ownership of a domain user in samba Share

Hi,
I am using RedHat 6 and ,I am trying to force a domain user (from Windows AD) to take ownership of a file when it is created, or copied on a Samba share. I have managed to get this working for the root user using the code below:


[IT]
        COMMENT = IT Data Share
        path = /media/Data/IT
        create mask = 0660
        directory mask = 770        
	writeable = yes
        browseable = yes
	force user = root
        valid users = "+MYDOMAIN+it" 
        guest ok = no
	blocking locks = no 

I have tried to type the command like i did with the valid users
force user ="+MYDOMAIN+admin"

but i get an error on the windows machine saying that the specific account does not exist and i cannot access the share. The command only allows samba users defined in smbusers to be used?

The server is part of my domain and i was able to assign domain groups to the file permissions

I don't think you can use user groups for the "force user". Try a single user only.

Hi ,

I did try a single user (admin). But if i use this syntax :

force user ="+MYDOMAIN+admin" 

then the share does not work. The only time that the command works as it should is when i type the following:

force user = root