LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Userid's and Deamons (https://www.linuxquestions.org/questions/linux-newbie-8/userids-and-deamons-318395/)

RonV 04-29-2005 06:44 AM

Userid's and Deamons
 
This is just a general question on how a daemon that is started from a script in /etc/init.d detemins what userid it runs under.

For example if I start the spamassassin daemon and it runs under spamassassin. If I wanted spamassasin to run under root how would I make that change? I paged though the scripts and I don't see any userid association to the actual creation of the process.

Thanks

Ron

bulliver 04-29-2005 06:53 PM

Most likely in the spamassassin configuration file. For example, apache's user is specified in httpd.conf, so maybe it is the same here. Some daemons state which user on the command line however, eg MySQL:
/usr/sbin/mysqld --basedir=/usr --datadir=/var/lib/mysql --user=mysql

This form would be in your init scripts...

I know you said just a question, but you do realize there is a good reason for daemons running unprivileged, right?

RonV 04-29-2005 07:55 PM

Thanks for the reply...yup well aware of having daemons running non-privledged...just used root as an example.......I'll take a look at the config file and see what I can find.

RonV

Quote:

Originally posted by bulliver
Most likely in the spamassassin configuration file. For example, apache's user is specified in httpd.conf, so maybe it is the same here. Some daemons state which user on the command line however, eg MySQL:
/usr/sbin/mysqld --basedir=/usr --datadir=/var/lib/mysql --user=mysql

This form would be in your init scripts...

I know you said just a question, but you do realize there is a good reason for daemons running unprivileged, right?



All times are GMT -5. The time now is 05:38 AM.