View previous topic :: View next topic |
Author |
Message |
olli.bo Apprentice
Joined: 16 Jul 2003 Posts: 208 Location: Germany
|
Posted: Mon Jul 26, 2004 8:54 am Post subject: Samba: "force create user"- like option |
|
|
Hi
Is there any Samba-Option to change the user of a file created on a Samba-Server?
For example: The user "bla" has copie the file "test" in his share. In Linux the file is owned by the user "bla". I want that the file is atutomatically owned by the user bla2 for example.
I have fond the options (force) create mask and (force) create directory, for the modes of a coped file but I have nowhere found an option for changing the user of that file. Is there such an option anywhere in the Samba-Universe?
thx
olli |
|
Back to top |
|
|
nobspangle Veteran
Joined: 23 Mar 2004 Posts: 1318 Location: Manchester, UK
|
Posted: Mon Jul 26, 2004 10:36 am Post subject: |
|
|
You description isn't too clear try the force user option see if that does what you want. |
|
Back to top |
|
|
olli.bo Apprentice
Joined: 16 Jul 2003 Posts: 208 Location: Germany
|
Posted: Mon Jul 26, 2004 10:42 am Post subject: |
|
|
The force user doesn't what I want.
I want: If a User creates a file in a share this user schould not be the owner of this file. |
|
Back to top |
|
|
Nossie Apprentice
Joined: 19 Apr 2002 Posts: 181
|
Posted: Mon Jul 26, 2004 1:55 pm Post subject: |
|
|
You can (must) use 'force user = bla2' on the specific share.
Nossie |
|
Back to top |
|
|
nobspangle Veteran
Joined: 23 Mar 2004 Posts: 1318 Location: Manchester, UK
|
Posted: Mon Jul 26, 2004 1:59 pm Post subject: |
|
|
force user works fine for me.
e.g
I have a share
Quote: | [share]
path = /path
force user = bar
create mask = 644 |
I have a user called foo who logs on to the share using his own username and password. He creates a file called test.txt the result is
Code: | -rw-r--r-- 1 bar users 0 Jul 26 14:55 test.txt |
Notice the file is owned by bar not foo.
olli.bo wrote: | I want: If a User creates a file in a share this user schould not be the owner of this file. | sounds right to me |
|
Back to top |
|
|
olli.bo Apprentice
Joined: 16 Jul 2003 Posts: 208 Location: Germany
|
Posted: Mon Jul 26, 2004 7:57 pm Post subject: |
|
|
yes, but foo can delete the file inside the share... I don't want that foo can do anythink with the file...
foo is acting a bar with force user. I want that foo is acting as foo and only writing files as bar... |
|
Back to top |
|
|
|