View previous topic :: View next topic |
Author |
Message |
jacek_migacz Tux's lil' helper
Joined: 04 Jun 2005 Posts: 141
|
Posted: Sun Oct 09, 2005 11:27 pm Post subject: starting init.d scripts from non-root account |
|
|
hi,
i wanted to execute init scripts from user, is it possible?
Code: | jacekmigacz@jacekmigacz ~ $ /etc/init.d/apache2 start
* /sbin/runscript.sh: must be root to run init scripts |
even if my script has:
Code: | -rwxr-xr-x 1 root root 2731 Oct 9 19:37 apache2 |
(point is to add such feature to phpeclipse toolbar)
.. the same with mysql for example
any solution? |
|
Back to top |
|
|
adsmith Veteran
Joined: 26 Sep 2004 Posts: 1386 Location: NC, USA
|
Posted: Sun Oct 09, 2005 11:50 pm Post subject: |
|
|
The *right* solution is to use sudo.
The crappy solution is to find all of the programs which that script calls and chmod/chown them (e.g, chown :wheel ... and add your user to wheel) |
|
Back to top |
|
|
jacek_migacz Tux's lil' helper
Joined: 04 Jun 2005 Posts: 141
|
Posted: Mon Oct 10, 2005 12:05 am Post subject: |
|
|
i will take a closer look on sudo then
thx |
|
Back to top |
|
|
|