Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
fix for "/sbin/runscript.sh: start-stop-daemon" un
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Installing Gentoo
View previous topic :: View next topic  
Author Message
Belthezar
n00b
n00b


Joined: 03 Jun 2002
Posts: 28
Location: Ohio, USA

PostPosted: Mon Jun 03, 2002 5:30 pm    Post subject: fix for "/sbin/runscript.sh: start-stop-daemon" un Reply with quote

This is in relation to another thread where people were having some error messages stating:

Code:

# /etc/init.d/samba start
 * Starting samba...
/sbin/runscript.sh: start-stop-daemon: command not found
/sbin/runscript.sh: start-stop-daemon: command not found   [ !! ]


I have tracked this down to a problem of SU not having a very filled out path env variable. Mine currently only has /bin and /usr/bin

So the solution according to "man su" is to add ENV_SUPATH to the file /etc/login.defs I have done this, basically copying the ENV_ROOT variable. After this fix I am able to stop and start services while under SU. :)

I'm not sure what the security reasons were that caused Gentoo to set SU path by default to such a restrictive setting, so take that into account when putting this fix into place. Maybe someone out there can enlighten us as to what risks this might pose?
Back to top
View user's profile Send private message
lx
Veteran
Veteran


Joined: 28 May 2002
Posts: 1012
Location: Netherlands

PostPosted: Mon Jun 03, 2002 10:06 pm    Post subject: Reply with quote

You can also use the following and change nothing.
Quote:
su -
the - is to setup the environment normally for given user.
_________________
"Remember there's a big difference between kneeling down and bending over.", Frank Zappa
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Installing Gentoo 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