0

We have a server running as a firebird user. We want to scp files to the server that are need by firebird but copied as another user: it-test.

What is the best way to set that up on the server-side so only the firebird user and the it-test user can access the file copied? The destination is always the same folder.

Something like this:

sudo setfacl -m u:firebird:r /opt/firebird/extern

That command did not work however (Operation not supported). I think that is for files only...

1
  • I have setfacl installed....
    – jcalfee314
    May 21, 2013 at 20:57

1 Answer 1

0

You would need then set the parent folder to 0770, owned by firebird:somegroup. it-test and firebird should be in somegroup.

Then set the parent folder to be owned by somegroup and set the setgid bit on it. This will result in all subfolders and files owned by the parent folder owner group, not their creator group.

Finally upload all files as 0660, folders as 0770. This will result in both users being able to read and modify the files.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .