Article 56PH9 Newbie file folder access rights

Newbie file folder access rights

by
aboka
from LinuxQuestions.org on (#56PH9)
hi, i hv install Ubuntu 20.04 LTS on a vps and login as root(root@SHADOW:~#) by default. I use the command below to install & generate a certificate:

Code:sudo apt install certbot python3-certbot-apache
sudo certbot --apachebut when i point my Shadowsocks to the path, it will give errors file cant be open. i hv confirm(by using ls), that the pem file is in there, and tried the full path below-
/etc/letsencrypt/archive/mydomain/fullchain1.pem
/etc/letsencrypt/live/mydomain/fullchain.pem

so jus to be sure its bcoz 'not authorize' issue, i copy the file into root, and it will give the same error. then i create a new folder and copy the file over to '/var/pp/fullchain1.pem' and it starts working. pls advice on how to fix this as this 'hack' is not proper way to run a program, especially when its updating the certificate

here is the rights of the folder/file:
Code:/etc/letsencrypt/archive/mydomain/fullchain1.pem:
drwxr-xr-x 96 root root 4096 Aug 7 20:32 etc
drwxr-xr-x 9 root root 4096 Aug 7 10:10 letsencrypt
drwx------ 3 root root 4096 Aug 6 16:13 archive
drwxr-xr-x 2 root root 4096 Aug 6 16:13 mydomain
-rw-r--r-- 1 root root 3542 Aug 6 16:13 fullchain1.pemCode:/etc/letsencrypt/live/mydomain/fullchain.pem:
drwxr-xr-x 96 root root 4096 Aug 7 20:32 etc
drwxr-xr-x 9 root root 4096 Aug 7 10:10 letsencrypt
drwx------ 3 root root 4096 Aug 6 16:13 live
drwxr-xr-x 2 root root 4096 Aug 6 16:13 mydomain
lrwxrwxrwx 1 root root 38 Aug 6 16:13 fullchain.pem -> ../../archive/mudomain/fullchain1.pemi hv chmod 755 on the fullchain.pem earlier. i suspect its bcoz the program is not running as root and has no rights to access them, but i hv no idea how to check....

here is the command i use to install SS - sudo apt install shadowsocks-libev

thank you,latest?d=yIl2AUoC8zA latest?i=Q5PBmRLoi6c:LIH6CePbJmM:F7zBnMy latest?i=Q5PBmRLoi6c:LIH6CePbJmM:V_sGLiP latest?d=qj6IDK7rITs latest?i=Q5PBmRLoi6c:LIH6CePbJmM:gIN9vFwQ5PBmRLoi6c
External Content
Source RSS or Atom Feed
Feed Location https://feeds.feedburner.com/linuxquestions/latest
Feed Title LinuxQuestions.org
Feed Link https://www.linuxquestions.org/questions/
Reply 0 comments