Which user executes the hooks?

Certbot executes the scripts located at /etc/letsencrypt/renewal-hooks/pre and /etc/letsencrypt/renewal-hooks/post automatically. But are they executed as user root?

1 Like

Yes, they’re executed as root. You might find that it’s necessary anyway because a different user would not be able to e.g. read private keys, unless you do some funny stuff with file permissions or ACLs.

2 Likes

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.