I use Samba to power my home fileserver. I have several shares, and I use local users to log in ("security = user").

Let's say the share "SpShare" is located at /SpShare. All files within the /SpShare directory are owned by Alice, and only Alice can read/write them. I want two things:

  • All users that have access to "SpShare" should be able to read all files in /SpShare.
  • All writes by users in "SpShare" should create files owned by Alice.

That is, even if I'm logged in as Betty, as long as Betty is a "valid user" of the SpShare share, I want all of Betty's file operations within that share to be carried out as if the user was logged in as Alice.

How can I accomplish this, without just setting "force create mode = 777" (I'd rather not do this)?

link|improve this question
feedback

1 Answer

up vote 2 down vote accepted

Use the force user directive instead in the definition of the share.

link|improve this answer
feedback

Your Answer

 
or
required, but never shown

Not the answer you're looking for? Browse other questions tagged or ask your own question.