Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

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 some folders with pictures and videos that I would like my other family members be able to view. I have added these folders to the family group, like this:

chgrp -R family shared_pictures/

The group permissions are set to +rx for the folders and +r for the files inside the folders. The family members have already been added to the family group. However when they try to access the folders/files, they get a "operation not permitted error". I think it has to do with the fact that the permssions of my my home folder are set like this:

drwxr-x--- 163 mario mario 12288 2012-03-21 07:50 /home/mario

So 'other' users have no permissions at all (no directory content viewing, etc).

My question: is it possible to allow access to some subdirectories only and leave my home directory permissions as is? Or is my only option to open my home directory up for others with +rx? (because when I do this it works, but now anyone can view the contents in my home dir, which is not what I want)

share|improve this question
1  
You might want to look at bindfs. – Dan D. Mar 21 '12 at 7:34
    
folders must have the r and x bit to access them. The x bit for folders does not mean execute but means you are able to access the folder. – l1zard Mar 21 '12 at 12:06
1  
You need to set "x" bit (o+x) for all parent directories. Do not add "r" bit which let them browse your directory contents – Cougar Mar 22 '12 at 8:42
    
@Cougar I think this might be what I was looking for! – MarioJC Mar 22 '12 at 10:57

Create the directory somewhere else (/opt/, for example) and link it symbolically into your home for convenience.

share|improve this answer
    
Creating user data directories under /opt would be against FHS. – l1zard Mar 21 '12 at 12:10
    
@l1zard: And what does the FHS suggest? – user unknown Mar 21 '12 at 12:59

You must log in to answer this question.

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