Take the 2-minute tour ×
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems.. It's 100% free, no registration required.

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
2  
Was the filesystem mounted with fuse? –  Zoredache Oct 16 '11 at 7:36
2  
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
show 3 more comments

1 Answer 1

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

su
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
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.