I just set up a new linux box of Ubuntu 9.04.
This computer will connect to netware servers, so I installed ipx. However, with this particular version of Ubuntu, the ipx won't start at boot time eventhough it has starting script in the /etc/init.d which is correctly linked to startup directories (/etc/rc2.d, /etc/rc3.d, etc). I guessed the reason is Gnome Network Manager, somehow it prevented ipx to be started.
I then wrote a script in /etc/NetworkManager/dispatcher.d, I gave it a name: 02ipx.sh, so it will executed after the built in /etc/NetworkManager/01ifupdown, the content is very simple
I assign root as the owner of script and set the permission to 775. Unfortunately, this script was never called!!
After spent 5 hours pulling my hairs, uncle Google came to help with
this page
It turns that Network Manager is very picky with the script permission and ownership. Here is the relevant quote :
So the Network Manager doesn't like the 775 permission of my script. Changing the permission to 755 solves my problem.
This computer will connect to netware servers, so I installed ipx. However, with this particular version of Ubuntu, the ipx won't start at boot time eventhough it has starting script in the /etc/init.d which is correctly linked to startup directories (/etc/rc2.d, /etc/rc3.d, etc). I guessed the reason is Gnome Network Manager, somehow it prevented ipx to be started.
I then wrote a script in /etc/NetworkManager/dispatcher.d, I gave it a name: 02ipx.sh, so it will executed after the built in /etc/NetworkManager/01ifupdown, the content is very simple
#!/bin/bash
if [ "$1" == "eth0" ] && [ $2 == "up" ]
then
/etc/init.d/ipx restart
fi
I assign root as the owner of script and set the permission to 775. Unfortunately, this script was never called!!
After spent 5 hours pulling my hairs, uncle Google came to help with
this page
It turns that Network Manager is very picky with the script permission and ownership. Here is the relevant quote :
Yep that is correct from the source:
Yep that is correct from the source:
http://svn.gnome.org/viewvc/NetworkManager/tags/NETWORKMANAGER_0_6_5_RELEASE/dispatcher-daemon/NetworkManagerDispatcher.c?view=markup
/* * nmd_permission_check *
* Verify that the given script has the permissions we want. Specifically,
* ensure that the file is
* - A regular file.
* - Owned by root.
* - Not writable by the group or by other.
* - Not setuid.
* - Executable by the owner.
* */
So the Network Manager doesn't like the 775 permission of my script. Changing the permission to 755 solves my problem.
Comments
Post a Comment