Re: [luau] daemons running as root

2003-02-11 Thread Gary Dunn
On Tue, 11 Feb 2003 18:13:48 -0500 (EST) [EMAIL PROTECTED] wrote: > How does one get daemons to run as a user other than root? Check to see if the binary is setuid. If you want it to run as nobody, chown nobody, then chmod to make setuid. Or, turn off setuid and try the su -c method you mentioned

Re: [luau] daemons running as root

2003-02-11 Thread MonMotha
[EMAIL PROTECTED] wrote: Why would you want to start [sshd] as nobody? You are supposed to start sshd as root. The application itself handles dropping privileges and chrooting. If only! sshd ends up running as root, both if I start it manually or if I reboot/restart the service. And as I sa

Re: [luau] daemons running as root

2003-02-11 Thread Warren Togami
[EMAIL PROTECTED] wrote: Why would you want to start [sshd] as nobody? You are supposed to start sshd as root. The application itself handles dropping privileges and chrooting. If only! sshd ends up running as root, both if I start it manually or if I reboot/restart the service. And as I say

Re: [luau] daemons running as root

2003-02-11 Thread tburns
>Why would you want to start [sshd] as nobody? You are supposed to >start sshd as root. The application itself handles dropping >privileges and chrooting. If only! sshd ends up running as root, both if I start it manually or if I reboot/restart the service. And as I say, many (all?) of my other

Re: [luau] daemons running as root

2003-02-11 Thread cpaul
AIL PROTECTED]> > To: <[EMAIL PROTECTED]> > Sent: Tuesday, February 11, 2003 1:13 PM > Subject: [luau] daemons running as root > > > > How does one get daemons to run as a user other than root? > > > > I tried using: > > > > su -c > >

Re: [luau] daemons running as root

2003-02-11 Thread Vince Hoang
On Tue, Feb 11, 2003 at 07:14:12PM -0500, [EMAIL PROTECTED] wrote: > In this particular case, sshd. Why would you want to start it as nobody? You are supposed to start sshd as root. The application itself handles dropping privileges and chrooting. > Maybe that's part of my problem in this instanc

Re: [luau] daemons running as root

2003-02-11 Thread tburns
>> How does one get daemons to >>run as a user other than root? >It depends on what service you are >trying to run. In this particular case, sshd. But what if I just wanted to run some arbitrary shell script as "nobody"? How would I do it? Maybe: su - nobody shell_script & exit or su nobo

Re: [luau] daemons running as root

2003-02-11 Thread Brian Chee
Advanced Network Computing Lab 1680 East West Road, POST rm 311 Honolulu, HI 96822 808-956-5797 voice, 808-956-5175 fax - Original Message - From: <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Tuesday, February 11, 2003 1:13 PM Subject: [luau] daemons running as root > H

Re: [luau] daemons running as root

2003-02-11 Thread MonMotha
[EMAIL PROTECTED] wrote: How does one get daemons to run as a user other than root? I tried using: su -c That should work on linux, though check to make sure IRIX implements -c. but it doesn't seem to work. Are the daemons supposed to change their own privilege level? Some do, mostly

Re: [luau] daemons running as root

2003-02-11 Thread Vince Hoang
On Tue, Feb 11, 2003 at 06:13:48PM -0500, [EMAIL PROTECTED] wrote: > How does one get daemons to run as a user other than root? It depends on what service you are trying to run. > I tried using: > > su -c This could work if the daemon is not binding to a privileged port. > but it doesn't seem

[luau] daemons running as root

2003-02-11 Thread tburns
How does one get daemons to run as a user other than root? I tried using: su -c but it doesn't seem to work. Are the daemons supposed to change their own privilege level? One problem is that the system I'm actually trying to fix is running IRIX, not linux. But there's usually enough common