Platform : Centos 7
Scenario : I have a drive "/mnt/ELEMENTERY-1TB" mounted with fstab
UUID=a6339f33-1c61-4c2c-a490-04c83ccfb4d6 /mnt/ELEMENTERY-1TB/ ext4 defaults,errors=remount-ro,context="system_u:object_r:samba_share_t:s0" 0 1 -
,
Which i want to share on local network via simple apache directory listing.
- Created symlink
ln -sd /mnt/ELEMENTERY-1TB/ /var/www/html/
.
I Can access other folder through directory listing which are not symlinked,
[root@271 html]# ls -al
total 8
drwxr-xr-x. 4 apache apache 68 Sep 12 12:14 .
drwxr-xr-x. 4 root root 33 Sep 10 15:14 ..
drwxr-xr-x. 7 root root 4096 Sep 2 01:47 ds ###can access this
lrwxrwxrwx. 1 root root 20 Sep 12 12:01 ELEMENTERY-1TB -> /mnt/ELEMENTERY-1TB/
drwxr-xr-x. 4 root root 72 Sep 10 16:23 _h5ai ### can access
-rw-r--r--. 1 root root 166 Sep 12 12:14 .htaccess
Tried to give permission to symlink "ELEMENTERY-1TB" chown apache:apache -R ELEMENTERY-1TB/
What can be possible error ?