Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Samba: "force create user"- like option
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
olli.bo
Apprentice
Apprentice


Joined: 16 Jul 2003
Posts: 208
Location: Germany

PostPosted: Mon Jul 26, 2004 8:54 am    Post subject: Samba: "force create user"- like option Reply with quote

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
View user's profile Send private message
nobspangle
Veteran
Veteran


Joined: 23 Mar 2004
Posts: 1318
Location: Manchester, UK

PostPosted: Mon Jul 26, 2004 10:36 am    Post subject: Reply with quote

You description isn't too clear try the force user option see if that does what you want.
Back to top
View user's profile Send private message
olli.bo
Apprentice
Apprentice


Joined: 16 Jul 2003
Posts: 208
Location: Germany

PostPosted: Mon Jul 26, 2004 10:42 am    Post subject: Reply with quote

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
View user's profile Send private message
Nossie
Apprentice
Apprentice


Joined: 19 Apr 2002
Posts: 181

PostPosted: Mon Jul 26, 2004 1:55 pm    Post subject: Reply with quote

You can (must) use 'force user = bla2' on the specific share.

Nossie
Back to top
View user's profile Send private message
nobspangle
Veteran
Veteran


Joined: 23 Mar 2004
Posts: 1318
Location: Manchester, UK

PostPosted: Mon Jul 26, 2004 1:59 pm    Post subject: Reply with quote

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
View user's profile Send private message
olli.bo
Apprentice
Apprentice


Joined: 16 Jul 2003
Posts: 208
Location: Germany

PostPosted: Mon Jul 26, 2004 7:57 pm    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum