Symlink - Permission Denied

Posted by John Smith on Server Fault See other posts from Server Fault or by John Smith
Published on 2012-12-02T09:56:49Z Indexed on 2012/12/02 11:07 UTC
Read the original article Hit count: 396

Filed under:
|
|
|

I'm facing an interesting problem with plenty of Permission Denied outputs when using SymLinks

Linux: Slackware 13.1

Directory with Symlink:

root@Tower:/var/lib# ls -lah
drwxr-xr-x  8 root       root    0 2012-12-02 20:09 ./
drwxr-xr-x 15 root       root    0 2012-12-01 21:06 ../
lrwxrwxrwx  1 ntop       ntop   21 2012-12-02 20:09 ntop -> /mnt/user/media/ntop6/

Symlinked Directory:

root@Tower:/mnt/user/media# ls -lah
drwxrwx--- 1 nobody users  1.4K 2012-12-02 19:28 ./
drwxrwx--- 1 nobody users   128 2012-11-18 16:06 ../
drwxrwxrwx 1 ntop   ntop    320 2012-12-02 20:22 ntop6/

What I have done:

  • I have used chown -h ntop:ntop on the ntop directory in /var/lib
  • Just to be sure, I have chmod 777 to both directories

Permission denied actions:

root@Tower:/var/lib# sudo -u ntop mkdir /var/lib/ntop/test
mkdir: cannot create directory `/var/lib/ntop/test': Permission denied

Any ideas?

© Server Fault or respective owner

Related posts about linux

Related posts about permissions