Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

I have created a group of users in my Ubuntu server system, so that each one of them can log in through an ssh connection with his username and password. Each user is "locked" in their home directory, and cannot "look up" to any other folder in the system.

What I want to do is to create a folder that will be accessible to all these users of this group, with full rights inside this folder for the users for the whole group, while retaining the rule that they should not be able to access any other folder in the system.

share|improve this question

1 Answer 1

what about using setfacl? In few words, it would be matter of creating somewhere the directory (e.g. "share"), set users group (let's call it shareusers) as primary group for each user in it, set users group as owner group for your share (owner user being root) and finally use setfacl to define acls (something like

setfacl -m d:g:shareusers:rwx /pathToShare )

Don't forget to chmod 2770 your directory.

Silvia

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.