I'm trying to get the symbolic link from other user.
My file is located in /home/serviceA/logs/a.txt
And I want to create a symbolic link to /home/centos/logs/a.txt
.
Here is my command I ran as root user:
ln -s /home/serviceA/logs/a.txt /home/centos/logs/a.txt
I see the red color of filename. And I still get the permission denied error
The error is lrwxrwxrwx 1 root root 47 Feb 12 01:49 hi.txt -> /home/rundeck/ServiceDelivery/promo_logs/hi.txt
Eventually, I want to forward the /home/centos/logs/a.txt
log file to the Splunk.
Why am I getting the permission error after creating the symbolic link? And how do I fix it? (chmod 777
didn't help)
ls -l
output for the correct files :/home/serviceA/logs/a.txt
and/home/centos/logs/a.txt
, – kaylum Feb 12 '20 at 02:42