Click to See Complete Forum and Search --> : Run a service NOT as root ?
Donovan
12-13-2000, 11:42 AM
Hi, I have a service I launch with ./start but when I go to TOP I see it running as root.
I don't want this. What should I do to have it running as another user ?
Thanks,
Donov
klamath
12-13-2000, 12:55 PM
Run it through a shell script and `su` before executing the app.
There are a couple other ways. If is insufficient, tell us more about the situation.
------------------
- Klamath
Get my GnuPG Key Here (http://klamath.dyndns.org/mykey.asc)
Looking for an open source project to contribute to? Check out the Better Bulletin Board (http://bbb.sourceforge.net)
Donovan
12-13-2000, 12:59 PM
Well I would like to avoid su myself to username since username cant accept logs.
Isn't there a way to tell from the command line that the script should run as username instead of user that is entering the command (currently me as root) ?
In short words I would like my service to start (./star) but not as root !
Thanks,
Donov