* [gentoo-user] init script from user @ 2007-01-23 9:56 Ilya Hegai 2007-01-23 10:23 ` Thomas Buntrock 2007-01-23 12:20 ` Bo Ørsted Andresen 0 siblings, 2 replies; 5+ messages in thread From: Ilya Hegai @ 2007-01-23 9:56 UTC (permalink / raw To: gentoo-user Hello, list. Is it possible to run init script during boot from normal user, but not root? Thank you. -- regards, Hegai Ilya -- gentoo-user@gentoo.org mailing list ^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [gentoo-user] init script from user 2007-01-23 9:56 [gentoo-user] init script from user Ilya Hegai @ 2007-01-23 10:23 ` Thomas Buntrock 2007-01-23 11:46 ` Ilya Hegai 2007-01-23 12:20 ` Bo Ørsted Andresen 1 sibling, 1 reply; 5+ messages in thread From: Thomas Buntrock @ 2007-01-23 10:23 UTC (permalink / raw To: gentoo-user Ilya Hegai wrote: > Hello, list. > Is it possible to run init script during boot from normal user, but not > root? With a little trick... im my conf.d/local.start <snip> sudo -u bunti -H fetchmail </snip> Thomas -- gentoo-user@gentoo.org mailing list ^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [gentoo-user] init script from user 2007-01-23 10:23 ` Thomas Buntrock @ 2007-01-23 11:46 ` Ilya Hegai 2007-01-23 12:11 ` Neil Bothwick 0 siblings, 1 reply; 5+ messages in thread From: Ilya Hegai @ 2007-01-23 11:46 UTC (permalink / raw To: gentoo-user 2007/1/23, Thomas Buntrock <bunti@sec.informatik.tu-darmstadt.de>: > With a little trick... > > im my conf.d/local.start > > <snip> > sudo -u bunti -H fetchmail > </snip> Thanks. One more question. Does conf.d/local.start start before net services? -- regards, Hegai Ilya -- gentoo-user@gentoo.org mailing list ^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [gentoo-user] init script from user 2007-01-23 11:46 ` Ilya Hegai @ 2007-01-23 12:11 ` Neil Bothwick 0 siblings, 0 replies; 5+ messages in thread From: Neil Bothwick @ 2007-01-23 12:11 UTC (permalink / raw To: gentoo-user [-- Attachment #1: Type: text/plain, Size: 280 bytes --] On Tue, 23 Jan 2007 14:46:50 +0300, Ilya Hegai wrote: > One more question. Does conf.d/local.start start before net services? It starts last. -- Neil Bothwick The trouble with doing something right the first time is that nobody appreciates how difficult it was. [-- Attachment #2: signature.asc --] [-- Type: application/pgp-signature, Size: 189 bytes --] ^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [gentoo-user] init script from user 2007-01-23 9:56 [gentoo-user] init script from user Ilya Hegai 2007-01-23 10:23 ` Thomas Buntrock @ 2007-01-23 12:20 ` Bo Ørsted Andresen 1 sibling, 0 replies; 5+ messages in thread From: Bo Ørsted Andresen @ 2007-01-23 12:20 UTC (permalink / raw To: gentoo-user [-- Attachment #1: Type: text/plain, Size: 516 bytes --] On Tuesday 23 January 2007 10:56, Ilya Hegai wrote: > Is it possible to run init script during boot from normal user, but not > root? There is a chapter about Gentoo initscripts in the handbook including a section about writing your own. start-stop-daemon has support for running a daemon as another user through the --user or --chuid switches. If it isn't a daemon you can also just use `su $user -c $command`. http://www.gentoo.org/doc/en/handbook/handbook-x86.xml?part=2&chap=4 -- Bo Andresen [-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --] ^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2007-01-23 12:27 UTC | newest] Thread overview: 5+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 2007-01-23 9:56 [gentoo-user] init script from user Ilya Hegai 2007-01-23 10:23 ` Thomas Buntrock 2007-01-23 11:46 ` Ilya Hegai 2007-01-23 12:11 ` Neil Bothwick 2007-01-23 12:20 ` Bo Ørsted Andresen
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox