From: | "Bo Ørsted Andresen" <bo.andresen@××××.dk> | ||
---|---|---|---|
To: | gentoo-user@l.g.o | ||
Subject: | Re: [gentoo-user] init script from user | ||
Date: | Tue, 23 Jan 2007 12:27:08 | ||
Message-Id: | 200701231320.34135.bo.andresen@zlin.dk | ||
In Reply to: | [gentoo-user] init script from user by Ilya Hegai |
1 | On Tuesday 23 January 2007 10:56, Ilya Hegai wrote: |
2 | > Is it possible to run init script during boot from normal user, but not |
3 | > root? |
4 | |
5 | There is a chapter about Gentoo initscripts in the handbook including a |
6 | section about writing your own. start-stop-daemon has support for running a |
7 | daemon as another user through the --user or --chuid switches. If it isn't a |
8 | daemon you can also just use `su $user -c $command`. |
9 | |
10 | http://www.gentoo.org/doc/en/handbook/handbook-x86.xml?part=2&chap=4 |
11 | |
12 | -- |
13 | Bo Andresen |