Notices


Reply
Thread Tools
Posts: 19 | Thanked: 31 times | Joined on Jun 2012 @ Switzerland
#11
Hi,

I'm trying to change mac address on N9, I was able to execute ifconfig located in /sbin after getting root acces... but only once. Since then, no way to execute ifconfig any more ! ls -ifconfig in /sbin shows me ifconfig, if I type ifconfig, I get

sh: ifconfig: not found

Any idea ?

Thanks for helping
 
ZogG's Avatar
Posts: 1,389 | Thanked: 1,857 times | Joined on Feb 2010 @ Israel
#12
did you try /sbin/ifconfig than?
 

The Following User Says Thank You to ZogG For This Useful Post:
Posts: 19 | Thanked: 31 times | Joined on Jun 2012 @ Switzerland
#13
Works ! Thanks

Sorry fot the stupid question, but why doesn't "ifconfig" alone work if my working directory is /sbin ?

Ok, now with the command ifconfig wlan0 hw ether macadress, I get:

ifconfig: SIOCSIFHWADDR: Operation not permitted

Does it have something to do with Aegis?

Last edited by tcheupa; 2012-06-07 at 11:57.
 
peterleinchen's Avatar
Posts: 4,118 | Thanked: 8,901 times | Joined on Aug 2010 @ Ruhrgebiet, Germany
#14
I do not have N9, but:
Originally Posted by tcheupa View Post
Sorry fot the stupid question, but why doesn't "ifconfig" alone work if my working directory is /sbin ?
because you are not root or at least do not have the shell with all env vars of root (need /sbin in PATH)command to excute something not in path is
{dir}/command
in your case
/sbin/command
or also possible (current dir)
./command

Originally Posted by tcheupa View Post
Ok, now with the command ifconfig wlan0 hw ether macadress, I get:
ifconfig: SIOCSIFHWADDR: Operation not permitted
Same applies here. No root access.

Originally Posted by tcheupa View Post
Does it have something to do with Aegis?
NFC
 

The Following User Says Thank You to peterleinchen For This Useful Post:
Posts: 19 | Thanked: 31 times | Joined on Jun 2012 @ Switzerland
#15
Ok, it seems the root access on N9 (devel-su) doesn't give the same level of privileges as the sudo gainroot on N900.

I have to find out how to get this acces on N9.

Inception installed, nothing changed...

Last edited by tcheupa; 2012-06-07 at 13:22.
 
wook_sf's Avatar
Posts: 640 | Thanked: 435 times | Joined on Oct 2011 @ rajvoSa BA
#16
then try open kernel... it worked for me fine...
 
ZogG's Avatar
Posts: 1,389 | Thanked: 1,857 times | Joined on Feb 2010 @ Israel
#17
inception =)) just do it
 
Posts: 19 | Thanked: 31 times | Joined on Jun 2012 @ Switzerland
#18
Solution found on HFR, the correct syntax is:

develsh -c "/sbin/ifconfig ..."
 

The Following User Says Thank You to tcheupa For This Useful Post:
peterleinchen's Avatar
Posts: 4,118 | Thanked: 8,901 times | Joined on Aug 2010 @ Ruhrgebiet, Germany
#19
You always have to do such things in develsh.
Probably you did not enter develsh at all, trying to use ifconfig?
I was able to execute ifconfig located in /sbin after getting root acces... but only once
This told me you know that already, but ...

You may activate the develsh (root access) also just via
Code:
develsh
and then enter your command(s).
Syntax of
Code:
develsh -c "command -parameter"
just executes this command once with root access from normal shell.
 
Posts: 19 | Thanked: 31 times | Joined on Jun 2012 @ Switzerland
#20
I thought entering devel-su & password give full root access, just like sudo gainroot on N900.
 
Reply

Tags
mac, n900, xterminal


 
Forum Jump


All times are GMT. The time now is 07:36.