LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
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, 06: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, 06: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, 07: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



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 09:39 AM
creating userid's in perl BBQ_Matt Programming 1 01-28-2004 01:23 PM
samba deamons PlatinumRik Linux - Networking 4 05-21-2003 01:25 PM
Starting/Stoping Deamons ejtbrown Linux - General 2 03-21-2001 04:22 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 01:49 AM.

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
Open Source Consulting | Domain Registration