maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   General (https://talk.maemo.org/forumdisplay.php?f=7)
-   -   can't su after installing "rootsh" (https://talk.maemo.org/showthread.php?t=26228)

lo-jay 2009-01-14 21:05

can't su after installing "rootsh"
 
okay, new to maemo, coming from gentoo, i did this

installed "rootsh"

$ sudo gainroot

# passwd

created & confirmed password XXX

# useradd -g user -G video,audio,dialout -m userX

# passwd userX

so good so far, exited...

if i now do $ su

i get :

"su: applet requires root privileges!"

while when i just $ root

i'm root!!!!

not so save & hows that?

cheers

allnameswereout 2009-01-14 21:33

Re: can't su after installing "rootsh"
 
Type rootsh to get also environment set to root defaults. Use root if you do not want this.

This is equiv to:
Code:

$ root
is functionality-wise same as
Code:

$ su
..whereas..
Code:

$ rootsh
is functionality-wise same as
Code:

$ su -

Benson 2009-01-14 21:37

Re: can't su after installing "rootsh"
 
I'm not sure what your plan is with the "userX", but Maemo is pretty much designed for single-user devices, and it's not straightforward to make any use of additional users.

As for root giving you a root shell, that's what rootsh does, in addition to permitting sudo gainroot. (su itself is not permitted at all, because all escalation to root is to go through sudo, and policy established that way.)

Taking "not so save" to be an inquiry about security, physical security is everything. Don't enable remote logins as user or root, or at least only with adequate password/crypto, and then the ability to escalate to root at will from the console is not much of an issue. (If they get hold of your device, they'll do what they like sooner or later, anyhow. Having root access available just saves them 2 minutes.)

qwerty12 2009-01-14 21:42

Re: can't su after installing "rootsh"
 
/bin/su is a busybox applet, hence /bin/su linking to /bin/busybox.

Busybox does not run as the root user. Hence, resulting in the message "su: applet requires root privileges!". You could setuid it but seeing as busybox makes up a lot of the coreutils, it would probably result in a major ****up...

lo-jay 2009-01-16 19:37

Re: can't su after installing "rootsh"
 
o.k - i see - sorry for my ignorance ;-)

btw - how do i get rid of the boring "nokia" & "hands" pics at boot -
i'd very much prefere a regular linux bootsplash!

cheers

Johnx 2009-01-23 22:28

Re: can't su after installing "rootsh"
 
Quote:

Originally Posted by lo-jay (Post 258125)
o.k - i see - sorry for my ignorance ;-)

btw - how do i get rid of the boring "nokia" & "hands" pics at boot -
i'd very much prefere a regular linux bootsplash!

cheers

search for 'remove bootsplash' onhis very forum. :)


All times are GMT. The time now is 15:19.

vBulletin® Version 3.8.8