Hello everybody,
I made a /etc/dhcp/dhcp-up script and started “dhcp.client -d -i en0”. The dhcp.client itself works as it supposed to, with the one “but” only. The dhcp-up script is never started. In the syslog I find the following explanation:
Jan 9 14:00:44 nto dhclient: Could not start dhcp-up script: Permission denied
I start dhcp.client from /etc/rc.d/rc.local or from root shell with the same result.
ls -l /
…
drwxrwxr-x 3 root root 2048 Jul 02 14:26 etc
…
ls -l /etc
…
drwxrwxr-x 2 root root 2048 Jan 09 13:35 dhcp
…
ls -l /etc/dhcp
…
-rw-rw-r-- 1 root root 494 Jan 09 13:35 dhcp-up
Content of the script file:
#!/bin/sh
echo “DHCP started”
Any suggestions?
Sincerely,
Serge
Serge Yuschenko <nospam@forums.openqnx.com> wrote in message
news:359622.1042144861976.JavaMail.fliu@tiger…
Hello everybody,
I made a /etc/dhcp/dhcp-up script and started “dhcp.client -d -i en0”. The
dhcp.client itself works as it supposed to, with the one “but” only. The
dhcp-up script is never started. In the syslog I find the following
explanation:
Jan 9 14:00:44 nto dhclient: Could not start dhcp-up script: Permission
denied
I start dhcp.client from /etc/rc.d/rc.local or from root shell with the
same result.
ls -l /
…
drwxrwxr-x 3 root root 2048 Jul 02 14:26 etc
…
ls -l /etc
…
drwxrwxr-x 2 root root 2048 Jan 09 13:35 dhcp
…
ls -l /etc/dhcp
…
-rw-rw-r-- 1 root root 494 Jan 09 13:35 dhcp-up
where is the “x” bit of this script ?
-xtang
Content of the script file:
#!/bin/sh
echo “DHCP started”
Any suggestions?
Sincerely,
Serge
Serge Yuschenko <> nospam@forums.openqnx.com> > wrote in
message
news:359622.1042144861976.JavaMail.fliu@tiger…
Hello everybody,
I made a /etc/dhcp/dhcp-up script and started
“dhcp.client -d -i en0”. The dhcp.client itself works
as it supposed to, with the one “but” only. The
dhcp-up script is never started. In the syslog I find
the following explanation:
Jan 9 14:00:44 nto dhclient: Could not start
dhcp-up script: Permission denied
I start dhcp.client from /etc/rc.d/rc.local or from
root shell with the same result.
ls -l /
…
drwxrwxr-x 3 root root 2048 Jul 02 14:26
etc
…
ls -l /etc
…
drwxrwxr-x 2 root root 2048 Jan 09 13:35
dhcp
…
ls -l /etc/dhcp
…
-rw-rw-r-- 1 root root 494 Jan 09 13:35
dhcp-up
where is the “x” bit of this script ?
-xtang
Good point…
Thank you very much Xiaodan! With the x it is much better.
Content of the script file:
#!/bin/sh
echo “DHCP started”
Any suggestions?
Sincerely,
Serge