C
C
centrin02016-05-03 09:07:30
linux
centrin0, 2016-05-03 09:07:30

What is the correct permission to set a symbolic link?

Installed lets encrypt. Generated a certificate in /etc/letsencrypt/live/domain/
There are four files there.
The server also has a web user, which must have read access to these certificates.
Created a symbolic link for each file in /home/web. (ln -s)
But the web user does not have permission to access these files. Permission denied
How to arrange access rights correctly?
Moving is not the best option, as the certificate will be renewed every three months.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
J
jcmvbkbc, 2016-05-03
@centrin0

You don't need to change the permissions of the link, they don't matter in Linux anyway.
It is necessary to check that the user can get the original file using the original path, i.e. that on all directories it has an x, but on the file itself it has an r.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question