LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 04-29-2005, 07:44 AM   #1
RonV
LQ Newbie
 
Registered: Apr 2005
Location: Hoffman Estates, IL
Distribution: Debian Sarge
Posts: 9

Rep: Reputation: 0
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
 
Old 04-29-2005, 07:53 PM   #2
bulliver
Senior Member
 
Registered: Nov 2002
Location: Edmonton AB, Canada
Distribution: Gentoo x86_64; Gentoo PPC; FreeBSD; OS X 10.9.4
Posts: 3,760
Blog Entries: 4

Rep: Reputation: 78
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?
 
Old 04-29-2005, 08:55 PM   #3
RonV
LQ Newbie
 
Registered: Apr 2005
Location: Hoffman Estates, IL
Distribution: Debian Sarge
Posts: 9

Original Poster
Rep: Reputation: 0
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?
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
How to start, stop, turn on, and turn off deamons BuckRogers01 Debian 3 08-16-2005 10:39 AM
creating userid's in perl BBQ_Matt Programming 1 01-28-2004 02:23 PM
samba deamons PlatinumRik Linux - Networking 4 05-21-2003 02:25 PM
Starting/Stoping Deamons ejtbrown Linux - General 2 03-21-2001 05:22 PM


All times are GMT -5. The time now is 02:57 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration