maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Applications (https://talk.maemo.org/forumdisplay.php?f=41)
-   -   [ANNOUNCE] Rootsh - Another way of getting root. (https://talk.maemo.org/showthread.php?t=21971)

bwayson 2008-07-20 20:15

Re: [ANNOUNCE] Rootsh - Another way of getting root.
 
Hi anpaza,

I installed sudser on an n800 and n810, both running the latest Diablo OS, and I may have uncovered a problem. When not in use, I completely shut down my Tablets. Wnen I rebooted them after the installation, the process ended at a solid light-grey screen (right after the hands screen and boot jingle). The screen was reacting -- it beeped when tapped. But nothing else. All buttons and keys did nothing. I had to remove the battery to shut the tablets off.

I reflashed the n800, reinstalled apps, and this time installed rootsh. This time, rebooting worked as expected. My guess is that now that 'user' had a password (entered during the installation of sudser), the boot process now required user to enter their password before the GUI would run. But there is no built-in way to enter the password, and I don't know a backdoor way to do it. People who simply let their tablets go to sleep would, I think, never experience it since they never leave their GUI.

While I used it, though, I liked sudser. Maybe there is a straightforward way around the problem I experienced.

allnameswereout 2008-07-20 21:45

Re: [ANNOUNCE] Rootsh - Another way of getting root.
 
The very same happened to me, but not with rootsh. It happened with sudser.

douwen 2008-07-21 04:52

Re: [ANNOUNCE] Rootsh - Another way of getting root.
 
Quote:

Originally Posted by GeneralAntilles (Post 204880)
I'd much rather see sudser merged with rootsh than be in the same situation again with a lot of disparate root packages that mostly accomplish the same thing.

Though one user reported a reboot loop after installing sudser.

yes!!!, i also encounter the 'reboot loop problem', what can i do is re-flash my NIT.

Benson 2008-07-21 05:40

Re: [ANNOUNCE] Rootsh - Another way of getting root.
 
Quote:

Originally Posted by anpaza (Post 204649)
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.

I have a bit of trouble understanding why this is configuring sudo ''properly'', and other options aren't. The whole point of sudo is to allow sysadmins flexibility in controlling who can do what, and with what authentication; declaring one configuration ''proper'' invalidates that. (To be clear, I don't have a problem with you packaging your setup, just with your exclusive reference to it.)

anpaza 2008-07-21 07:41

Re: [ANNOUNCE] Rootsh - Another way of getting root.
 
Damnit, I was going to post a warning, but did not catched in time :-(

In two words: If using sudser, DO NOT USE A PASSWORD.

If you do, at boot-up the device will prompt you for a password when doing some sudo commands before starting the desktop, and will hang because there's no way to enter the password at that time ;-(

If you have set a password, remove the sudser package.

As root execute the following command:

sudo dpkg -P sudser

This will fix things back.

Sorry to everybody :-( I'll put a fixed package ASAP.

Benson, I was refering sudo as a "proper" way to gain root just because if there's already a pre-installed package installed which's meaning is exactly that - to give you root priviledges in certain situations, it is obvious that it's easier to configure it to give you root priviledges in situations when you need them (e.g. always) than creating another binary which does the same.

douwen 2008-07-21 08:09

Re: [ANNOUNCE] Rootsh - Another way of getting root.
 
Quote:

Originally Posted by anpaza (Post 205356)

If you do, at boot-up the device will prompt you for a password when doing some sudo commands before starting the desktop, and will hang because there's no way to enter the password at that time

maybe add a password for user 'user' is not a bad thing, especially when you lost your NIT and there are some important files or info in it.
it will make other people could not login into and protect your private data.

i suggest the next version of sudser will add a login prompt form( if you set a password), instead of removing the chance of setting password for user.

This will make sudser being completely different with other gainroot packages..

just a suggestion:)...

GeneralAntilles 2008-07-21 08:11

Re: [ANNOUNCE] Rootsh - Another way of getting root.
 
Quote:

Originally Posted by anpaza (Post 205356)
Benson, I was refering sudo as a "proper" way to gain root just because if there's already a pre-installed package installed which's meaning is exactly that - to give you root priviledges in certain situations, it is obvious that it's easier to configure it to give you root priviledges in situations when you need them (e.g. always) than creating another binary which does the same.

You modify sudoers. rootsh, easyroot and gainroot modify the gainroot script not to check for R&D flags. Nobody is adding any additional binaries. :\

qwerty12 2008-07-21 08:14

Re: [ANNOUNCE] Rootsh - Another way of getting root.
 
Quote:

Originally Posted by douwen (Post 205360)
maybe add a password for user 'user' is not a bad thing, especially when you lost your NIT and there are some important files or info in it.
it will make other people could not login into and protect your private data.

You have a lock code for that. Not extremely hard to break but it's there.

Quote:

Originally Posted by douwen (Post 205360)
i suggest the next version of sudser will add a login prompt form( if you set a password), instead of removing the chance of setting password for user.

Too much work for something that isn't likely to work.

GeneralAntilles 2008-07-21 09:45

Re: [ANNOUNCE] Rootsh - Another way of getting root.
 
Quote:

Originally Posted by sd_proto (Post 205375)
This won't even install for me, some problem with a bunch of dependencies.

What you meant to say was, "This won't even install for me, some problem with a bunch of dependencies. Here's the list: ..."

:rolleyes:

allnameswereout 2008-07-21 13:07

Re: [ANNOUNCE] Rootsh - Another way of getting root.
 
Quote:

Originally Posted by anpaza (Post 205356)
Damnit, I was going to post a warning, but did not catched in time :-(

In two words: If using sudser, DO NOT USE A PASSWORD.

If you do, at boot-up the device will prompt you for a password when doing some sudo commands before starting the desktop, and will hang because there's no way to enter the password at that time ;-(

If you have set a password, remove the sudser package.

As root execute the following command:

sudo dpkg -P sudser

This will fix things back.

Sorry to everybody :-( I'll put a fixed package ASAP.

Benson, I was refering sudo as a "proper" way to gain root just because if there's already a pre-installed package installed which's meaning is exactly that - to give you root priviledges in certain situations, it is obvious that it's easier to configure it to give you root priviledges in situations when you need them (e.g. always) than creating another binary which does the same.

Its okay, can happen, thanks for your statement! :)

For future reference: isn't this too quick moved to extras/ :confused:


All times are GMT. The time now is 08:54.

vBulletin® Version 3.8.8