Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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
up vote 0 down vote accepted

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.


share|improve this answer

Your Answer


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.