Networking
cancel
Showing results for 
Search instead for 
Did you mean: 

ifconfig: Execute permission denied.

SOLVED
Go to solution
somana
Occasional Visitor

ifconfig: Execute permission denied.

Hi ,

 

              I am facing a problem after rebooting my machine.

  Unable to start network paramaters.

 

# lanscan
sh: lanscan: Execute permission denied.
# /sbin/init.d/net start
ERROR: lan0 interface: /sbin/init.d/net: ifconfig: Execute permission denied.
ERROR: /sbin/init.d/net: route: Execute permission denied.
# ifconfig lan0
sh: ifconfig: Execute permission denied.
#

 

I have checked the parmissions ,everything looks fine!

# ll /usr/sbin/ifconfig
-r-xr-xr-x 1 bin bin 151404 Dec 9 2010 /usr/sbin/ifconfig

# ll /usr/sbin/lanscan
-r-xr-sr-x 1 root sys 75160 Feb 16 2007 /usr/sbin/lanscan
#

Machine model : RP3440 OS:11.31

 

Please help me..

 

Thanks 

somana

3 REPLIES
Patrick Wallek
Honored Contributor

Re: ifconfig: Execute permission denied.

The sizes of those files are significantly different from an 11.31 I have access to:

 

 # ll /usr/sbin/ifconfig /usr/sbin/lanscan
-r-xr-xr-x   1 bin        bin          81920 Feb 28  2011 /usr/sbin/ifconfig
-r-xr-sr-x   1 root       sys          40960 Feb 15  2007 /usr/sbin/lanscan

 

# uname -r
B.11.31
# model
9000/800/rp7410


 

Can you execute other programs that are in /usr/sbin? 

Patrick Wallek
Honored Contributor
Solution

Re: ifconfig: Execute permission denied.

run the following commands and check their outputs.  It should be similar to mine:

 

# what /usr/sbin/ifconfig
/usr/sbin/ifconfig:
        $Revision: 92453-07 linker linker crt0.o B.11.16.01 030415 $
         ifconfig.c $Date: 2011/01/31 17:30:30 $Revision: r11.31/5 PATCH_11.31 (PHNE_41714) --->> Your patch level may be different.

 

# what /usr/sbin/lanscan
/usr/sbin/lanscan:
        $Revision: 92453-07 linker linker crt0.o B.11.16.01 030415 $
         $Revision: B.11.31_LR
        lanscan $Revision: B.11.23.01 $Date: 2004/06/14 09:15:35

# file /usr/sbin/ifconfig
/usr/sbin/ifconfig:     PA-RISC1.1 shared executable dynamically linked -not stripped dynamically linked

 

# file /usr/sbin/lanscan
/usr/sbin/lanscan:      PA-RISC1.1 shared executable dynamically linked -not stripped dynamically linked


somana
Occasional Visitor

Re: ifconfig: Execute permission denied.

 

 

Thanks patrick 

 

               you are right the patch level got changed by someone.

 

thankyou once again problem solved.

 

 

somana