![]() |
[ANNOUNCE] Rootsh - Another way of getting root.
Here is another package enabling root access on the tablet.
Features:
This package provides the exact same functionality of easyroot (and a slight bit more) and becomeroot (a lot more). The main reason for this package was to have a package in extras that would give you root without having to leave the application manager. To install, you can find this in the chinook & diablo extras, which if they are enabled, you should see a package called rootsh showing up in your application manager. Alternatively, you can just click the the install file from here: http://maemo.org/downloads/product/OS2008/rootsh/ |
Re: [ANNOUNCE] Rootsh - Another way of getting root.
qwerty12's the man!
Already updated the wiki to recommend rootsh, I suggest everybody forget about the other two and only recommend this one. |
Re: [ANNOUNCE] Rootsh - Another way of getting root.
A good example of the community stepping up to replace (and side-line) applications which aren't in Extras.
|
Re: [ANNOUNCE] Rootsh - Another way of getting root.
qwerty12, you saved the a55 of my colleague who put /bin/root into the shell field of /etc/passwd for user root, and couldn't get root anymore :-)
One small note: maybe it would make sense by default to run /bin/bash instead of /bin/sh if it exists. I think if somebody installed bash, then it prefers bash over the default shell. Also it would be better to run /bin/sh and /bin/bash with the -l option (login). This will load ~/.profile for the user account and possibly other stuff to set up the shell for root. By the way, wouldn't it be easier to just install a file under /etc/sudoers.d/ with something like: user ALL = NOPASSWD: ALL ? Then you can sudo any command. Or even with user's password (if removing NOPASSWD:), just like in Ubuntu. |
Re: [ANNOUNCE] Rootsh - Another way of getting root.
Quote:
running "root" however uses su and that will spawn a root shell that does load /root/.profile etc. su naturally uses the shell specified in /etc/passwd. Quote:
Quote:
Thanks for the suggestions though, much appreciated. |
Re: [ANNOUNCE] Rootsh - Another way of getting root.
Okay, I hate to be the next guy to release the 1001th-gainroot-package, but I waited long enough for somebody to implement such a thing properly :)
So, I did a small package which allows to gain root access by configuring 'sudo' properly. After that sudo works much like in Ubuntu - by asking the user password once in every session. You can also choose to not use a password, in which case you'll get just another 'gainroot'-alike package. The package contains just a small config file for sudo, and a small shortcut script called "rush" which drops you to a root shell (it just executes sudo -H -i). Packages should appear here: http://repository.maemo.org/extras-d...free/s/sudser/ http://repository.maemo.org/extras-d...free/s/sudser/ The chinook package is untested, if anybody tries it please tell me the result. |
Re: [ANNOUNCE] Rootsh - Another way of getting root.
Thanks for the sudser port it certainly has its place besides rootsh.
Its normally my preferred way of gaining root except, in public, I don't want to type [such] passwords. |
Re: [ANNOUNCE] Rootsh - Another way of getting root.
Quote:
Though one user reported a reboot loop after installing sudser. |
Re: [ANNOUNCE] Rootsh - Another way of getting root.
Maybe that was me, I was debugging sudser :-) I'm zap on irc.
I agree there are too many gainroot packages around. But I think using sudo which is already present on any system is the proper way to do it; besides saving a bit of space it also allows to protect root access with user password. And about merging... I don't see what can be merged here, sudo can do everything rootsh can, and more. |
Re: [ANNOUNCE] Rootsh - Another way of getting root.
Well... sudser fuxs up my device. When I install it I cannot boot my NIT anymore. Beware!
|
All times are GMT. The time now is 04:42. |
vBulletin® Version 3.8.8