![]() |
Re: [Fun/Learning] Root access on freshly flashed N900 using on-device tools only
Quote:
I know, this is Maemo, which is like the wild west :).. .. but you know, this is Maemo, the user must have absolute control over the system. |
Re: [Fun/Learning] Root access on freshly flashed N900 using on-device tools only
If anything I would say things that could be easily fixed are repairing packages that depend on rootsh or sudser, as a priority.
Long term I would like to see a more secure root in Maemo, thanks for your work MT. FWIW I have modified my system to prompt for a root password in a terminal. |
Re: [Fun/Learning] Root access on freshly flashed N900 using on-device tools only
Quote:
Code:
#!/bin/sh As for why I didn't originally include this: In general, I completely agree with you. For this particular example, however, my goal was to get myself root - I don't intend on ever taking this root-ness away from myself, and the .deb package is, in this case, just a means to an end - in my mind it's a one-off-manual-tweak-in-the-form-of-a-package, not a true package. And tbh in my mind this is like applying a bugfix to a system package. |
Re: [Fun/Learning] Root access on freshly flashed N900 using on-device tools only
Quote:
Quote:
Incidentally, the latest GCC 4.6 and dependencies in the maemo repos + CSSU-Testing (which recently updated libc6 a little) lets us build a perfectly working sudo from the latest stable branch with askpass support, and we have at least one working askpass implementation ssh-askpass in the repos (though a properly hildon-ized askpass UI would be much nicer). (I also have a shell-script based askpass that pops open a terminal to get the password, but that one uses a named pipe to move the password between the launching script and the one running in the launched terminal, and I'm not confident it's secure enough (or ever could be, given the limitations of that approach).) |
Re: [Fun/Learning] Root access on freshly flashed N900 using on-device tools only
Quote:
Code:
# find / -xdev -exec fgrep -H sudo {} + |
Re: [Fun/Learning] Root access on freshly flashed N900 using on-device tools only
Oh, by the way, I noticed an issue with my script in post #2, which I have now edited with a better script (the issue is explained in the edit in that page, I just wanted to mention it here because I know new posts get noticed much easier than old edited ones).
|
Re: [Fun/Learning] Root access on freshly flashed N900 using on-device tools only
Quote:
I was more generally speaking, like searching the whole extras repo. And I surely wouldn't do this on a six years old single core arm connected to a slow emmc or even slower µSD card guarded by a misbehaving watchdog. ;) |
Re: [Fun/Learning] Root access on freshly flashed N900 using on-device tools only
Quote:
Quote:
|
Re: [Fun/Learning] Root access on freshly flashed N900 using on-device tools only
Hi, I have corrupted my /etc/sudoers file, and of course disable sshd before :rolleyes: . Repository system seems out of order too. Now I can not anymore become root (it asks for a password never set). Is there a way for privilege escalation, without reflashing the N900 ?
|
Re: [Fun/Learning] Root access on freshly flashed N900 using on-device tools only
Not really sure what you messed up or how the config on your device looks like.
But default password may be 'rootme'. Else here is a link to the rootsh package which can be installed and will give you root access via 'sudo gainroot' |
All times are GMT. The time now is 06:30. |
vBulletin® Version 3.8.8