Running a service as root
Posted
by
kovica
on Super User
See other posts from Super User
or by kovica
Published on 2012-11-13T08:13:09Z
Indexed on
2012/11/14
11:06 UTC
Read the original article
Hit count: 183
I have a java program that I use to automate the process of creating VPN settings for clients. The program calls couple of bash scripts, create and copies files around. I have to run it under root user because the whole VPN config is under /etc/openvpn. For this directory I need root privileges. On the same machine I have Glassfish application server and it will call the mentioned Java program. Glassfish is run under non-root user.
What is the best, most secure way of running a program as a root user of course without entering a password if I run it via sudo?
© Super User or respective owner