View previous topic :: View next topic |
Author |
Message |
Belthezar n00b
Joined: 03 Jun 2002 Posts: 28 Location: Ohio, USA
|
Posted: Mon Jun 03, 2002 5:30 pm Post subject: fix for "/sbin/runscript.sh: start-stop-daemon" un |
|
|
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 |
|
|
lx Veteran
Joined: 28 May 2002 Posts: 1012 Location: Netherlands
|
Posted: Mon Jun 03, 2002 10:06 pm Post subject: |
|
|
You can also use the following and change nothing.
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 |
|
|
|