Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. 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 was having some permission problems and used the following command on directory Media:

chmod -R ugo+r Media

It didn't help so then I did:

chmod -R 775 Media

Now I get this error when I try to cd:

 jeff@nacho:/DataVolume/shares$ cd Media
-bash: cd: Media: Permission denied

Even though when I do a directory listing everything looks fine:

drwxrwxr-x  8 root share 65536 Oct 15 22:38 Media
drwxrwxr-x 11 root share 65536 Oct 15 23:52 Public

Note: I can cd to Public with no problem. If I su then I can access the directory.

What am I missing?

Extra info:

jeff@nacho:/var/www/Admin/webapp/htdocs$ mount |grep -vE '^none'
/dev/md0 on / type ext3 (rw,noatime)
tmpfs on /lib/init/rw type tmpfs (rw,nosuid,mode=0755,size=50M)
proc on /proc type proc (rw,noexec,nosuid,nodev)
sysfs on /sys type sysfs (rw,noexec,nosuid,nodev)
procbususb on /proc/bus/usb type usbfs (rw)
udev on /dev type tmpfs (rw,mode=0755)
tmpfs on /dev/shm type tmpfs (rw,nosuid,nodev,size=50M)
devpts on /dev/pts type devpts (rw,noexec,nosuid,gid=5,mode=620)
tmpfs on /tmp type tmpfs (rw,size=50M)
/var/log on /var/log.hdd type none (rw,bind)
ramlog-tmpfs on /var/log type tmpfs (rw,size=20M)
/dev/sda4 on /DataVolume type ext4 (rw,noatime,nodelalloc)
/DataVolume/cache on /CacheVolume type none (rw,bind)
/DataVolume/shares on /shares type none (rw,bind)
/DataVolume/shares on /nfs type none (rw,bind)
rpc_pipefs on /var/lib/nfs/rpc_pipefs type rpc_pipefs (rw)
nfsd on /proc/fs/nfsd type nfsd (rw)
share|improve this question
Was the filesystem mounted with fuse? – Zoredache Oct 16 '11 at 7:36
You should add more info about the filesystem and how it is mounted. – forcefsck Oct 16 '11 at 11:10
ext4 I believe. It's a MyBook Live NAS, straight out of the box. Not mounted with fuse. – Jeff Oct 16 '11 at 13:01
@jeff, but how does your system sees and mounts that file-system? Is it CIFS or NFS? What did you do to mount it? What does mount |grep -vE '^none' return? – forcefsck Oct 16 '11 at 13:51
nfs. i've updated question with added info – Jeff Oct 16 '11 at 13:55
up vote 1 down vote accepted

I "fixed" my problem by adding myself to the group share:

usermod -aG share jeff
/etc/init.d/ssh restart

Though that doesn't help me understand why I couldn't get a directory listing to being with (even after chmod -r 777), but the point is moot now.

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.