Active Topics

 


Reply
Thread Tools
Posts: 31 | Thanked: 1 time | Joined on Jan 2009
#1
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

Last edited by lo-jay; 2009-01-14 at 21:08.
 
allnameswereout's Avatar
Posts: 3,397 | Thanked: 1,212 times | Joined on Jul 2008 @ Netherlands
#2
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 -
__________________
Goosfraba! All text written by allnameswereout is public domain unless stated otherwise. Thank you for sharing your output!
 
Benson's Avatar
Posts: 4,930 | Thanked: 2,272 times | Joined on Oct 2007
#3
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.)
 

The Following User Says Thank You to Benson For This Useful Post:
qwerty12's Avatar
Posts: 4,274 | Thanked: 5,358 times | Joined on Sep 2007 @ Looking at y'all and sighing
#4
/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...
 

The Following 3 Users Say Thank You to qwerty12 For This Useful Post:
Posts: 31 | Thanked: 1 time | Joined on Jan 2009
#5
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's Avatar
Posts: 643 | Thanked: 628 times | Joined on Mar 2007 @ Seattle (or thereabouts)
#6
Originally Posted by lo-jay View Post
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.
 
Reply


 
Forum Jump


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