View Single Post
Posts: 3,401 | Thanked: 1,255 times | Joined on Nov 2005 @ London, UK
#5
Originally Posted by rhackenb View Post
It's strange that ifconfig has be run as root. I think I know why. /sbin must be on the path of root but not of user. It can be invoked by user via /sbin/ifconfig.
Well that's not strictly true, you can run it as an ordinary user if you execute it using the full path, which is /sbin/ifconfig. As user "user" by default /sbin isn't on your path so you can't run ifconfig by typing just "ifconfig". When you sudo to root (using the gainroot script) your path will include /sbin.

Originally Posted by rhackenb View Post
I'm not sure what your data.tar.tz file does. It looks like it is establishing in /usr/busybox a bunch of symbolic links to various utilities found in /bin /usr/bin /sbin, etc. After I gunzip the data.tar.gz, what location do I do the untarring?

Also, what is busybox2? There is none on my n800.
The data.tar.gz contains a version of busybox in /bin and this busybox executable supports the ping, telnet, traceroute calls. Your N800 already includes a different version of busybox (with no network support) which you *MUST NOT* replace/remove/rename. So, untar data.tar.gz somewhere safe (eg. in /home/user/temp) then copy (as root) /home/user/temp/bin/busybox to /bin/busybox2. Ensure /bin/busybox2 is chmoded correctly (ie. 755) and owned by root:root, then create your symlinks as outlined in my previous post (cd to /usr/bin first then create the symlinks). Once you've finished, delete the untarred files (rm -fr /home/user/temp) as they're no longer needed.

NOTE: I'm not responsible for data.tar.gz, and can't be held responsible if you hose your N800 (a reflash should fix it)

Last edited by Milhouse; 2007-06-15 at 03:26.