I have a directory that goes like this:    drwxrwxrwx  6 www-data www-data     4096 Jun  8 10:21 ./    drwxr-xr-x 31 user1    user1        4096 Jun  8 10:40 ../    lrwxrwxrwx  1 www-data www-data       66 Jun  8 10:21 archive -> /media/user1/7f62b5e4-4fe7-43c2-b0d0-8dad6e5a2381/archive/I try to create a file with touch in the symbolic link with the user www-data. I get this error:$ sudo -u www-data touch archive/myfiletouch: cannot touch archive/myfile: Permission deniedThe root directory and the archive directory are chmod 777.But this works correctly$ touch archive/myfileWhat am I missing?
Can't create a file through symbolic link
linux;command line;permissions
I fixed the probleme by mounting the hard disk pointed by the symbolic link. In fact, media/ is the path set by default so you need to mount the disk to set a valid path. Here is a link were you can find how to automatically mount a hard disk : InstallingANewHardDrive