On Tue, Nov 07, 2000 at 04:46:21PM -0500, Mike Burger wrote:
> I believe "chmod u+s /usr/interbase/bin/ibmgr" might do it for 
> you...setting the sticky bit usually gets you there.

> On Tue, 7 Nov 2000, Ed Lazor wrote:

> > I'd like to run a daemon as non-root.  How can I do this?
> > 
> > In this specific example, I have /etc/rc.d/init.d/interbase with the 
> > following entry:
> > 
> >     daemon /usr/interbase/bin/ibmgr -start -password $PASSWORD
> > 
> > Right now, it ends up running as root and I'd like to change it to the user 
> > interbase.
> > 
> > Thanks in advance =)

        You could also do it this way:

        su [user] -c daemon /usr/interbase/bin/ibmgr -start -password $PASSWORD

        Since you are root, you can su to any user you want.  Then you
can run the command and daemonize it.  That way, you don't need to make
anything SUID to anyone.

        Mike
-- 
 Michael H. Warfield    |  (770) 985-6132   |  [EMAIL PROTECTED]
  (The Mad Wizard)      |  (678) 463-0932   |  http://www.wittsend.com/mhw/
  NIC whois:  MHW9      |  An optimist believes we live in the best of all
 PGP Key: 0xDF1DD471    |  possible worlds.  A pessimist is sure of it!



_______________________________________________
Redhat-list mailing list
[EMAIL PROTECTED]
https://listman.redhat.com/mailman/listinfo/redhat-list

Reply via email to