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.

at my school we have a student unix server with our accounts.

i have installed git on my account, created a repository, and created the acl permissions on the folder repository so other users can access the repository

# file: tp1
# owner: my_account
# group: groupxxx
user::rwx
user:friend_account:rwx
group::---
mask::rwx
other::---
default:user::rwx
default:user:friend_account:rwx
default:group::---
default:mask::rwx
default:other::---

but friend_account cant even cd to my tp1 directory (permission denied), so i think the problem should be in unix acl permissions..

share|improve this question

1 Answer 1

up vote 2 down vote accepted

The user needs to be able to cd to every directory above tp1 as well, i.e. friend_account must have the x permission to every directory above tp1. So for example if tp1 is /home/daniel/course1/tp1 then you need

setfacl -m user:friend_account:x /home/daniel /home/daniel/course1

If you give x permission but not r on a directory, your friend will be able to traverse the directory and reach its subdirectories and access any file that (s)he has permission to, but not view the list of files in the directory.

share|improve this answer
    
thanks :D it worked –  Daniel Feb 23 '11 at 4:14

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.