Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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...

share|improve this question
    
I have setfacl installed.... –  jcalfee314 May 21 '13 at 20:57

1 Answer 1

up vote 0 down vote accepted

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.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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