Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
starting init.d scripts from non-root account
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
jacek_migacz
Tux's lil' helper
Tux's lil' helper


Joined: 04 Jun 2005
Posts: 141

PostPosted: Sun Oct 09, 2005 11:27 pm    Post subject: starting init.d scripts from non-root account Reply with quote

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
View user's profile Send private message
adsmith
Veteran
Veteran


Joined: 26 Sep 2004
Posts: 1386
Location: NC, USA

PostPosted: Sun Oct 09, 2005 11:50 pm    Post subject: Reply with quote

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
View user's profile Send private message
jacek_migacz
Tux's lil' helper
Tux's lil' helper


Joined: 04 Jun 2005
Posts: 141

PostPosted: Mon Oct 10, 2005 12:05 am    Post subject: Reply with quote

i will take a closer look on sudo then

thx
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum