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.

I have been developing a python package in dropbox. DB seems to be causing a very strange permissions issue. I own and have RW permissions to the directory and all of it's contents. Yet, when I try to view the files, I get denied. This conflicts with my understanding of how permissions work in Unix. Can anyone explain what's going on here or how to fix it?

blake@mycomputer $ ls -lha .
drwxr-xr-x  6 blake blake 4.0K Apr 16 14:22 .
drwx------ 36 blake blake 4.0K Apr 16 13:11 ..
drw-rw-rw-  8 blake blake 4.0K Apr 13 02:52 myproject


blake@mycomputer $ ls myproject
ls: cannot access myproject/cache: Permission denied
ls: cannot access myproject/input: Permission denied
ls: cannot access myproject/src: Permission denied
ls: cannot access myproject/archive: Permission denied
ls: cannot access myproject/output: Permission denied
ls: cannot access myproject/log: Permission denied
archive  cache  input  log  output  src
share|improve this question
add comment

1 Answer

up vote 2 down vote accepted

The directory does not have the search (x) permission, which is where the permission denied error do:

chmod ugo+x myproject

To add it for user, group and other.

share|improve this answer
add comment

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.