|
List Info
Thread: Boot bora as root
|
|
| Boot bora as root |

|
2007-04-17 10:31:39 |
Hello all,
I was wondering if someone could give me a little guidance
on getting
bora on the N800 to boot as root.
I've tried the following:
<ugly> giving user a uid/gid of 0/0
editing the init scripts to run as root/root and the gui as
root/root
also tried systemui/root
loading the developer fs (thougth for sure that would boot
as root)
If someone could point me in the right direction, I would
appreicate it.
And just to starve off the 'you shouldn't run as root'
arguement ....
yes I realize that ... but I want to so let's not argue the
merits of
not running as root.
what I'd really like is a login ....
Thank you for your time and help.
Respectfully,
Christopher Taylor
_______________________________________________
maemo-developers mailing list
maemo-developers maemo.org
h
ttps://maemo.org/mailman/listinfo/maemo-developers
|
|
| Re: Boot bora as root |

|
2007-04-17 10:50:47 |
|
Whatever is launching X is going to be what tells it the user to run the graphical environment as. On a desktop it's GDM, XDM, or KDM. Poke around in /etc/init.d/ and figure out which one it is, and then on a desktop linux system or using google figure out what you need to do for automatic user login for the system in place. Since this is an embedded system, it could be something as simple as setting the SUID of some binary and changing that binary from owner user to owner root. I'd do more poking around on my own, but my device has been boot locked for a week or so and I haven't had time to repair it.
There's also a chance that because of how things are constructed what you're trying to do is simply not feasible, or at least non-trivial. Mind if I ask why it is you need to be running as the root user? There could be some simplier hacks--like making the file manager run as root--that would accomplish the same thing your trying to do. Oh, and also, "you shouldn9;t run as root." ;)
--Paul
On 4/17/07, Chris Taylor < chtaylo4 gmail.com">chtaylo4 gmail.com> wrote:
Hello all,
I was wondering if someone could give me a little guidance on getting bora on the N800 to boot as root.
I39;ve tried the following: <ugly> giving user a uid/gid of 0/0 editing the init scripts to run as root/root and the gui as root/root
also tried systemui/root loading the developer fs (thougth for sure that would boot as root)
If someone could point me in the right direction, I would appreicate it.
And just to starve off the 'you shouldn9;t run as root' arguement ....
yes I realize that ... but I want to so let's not argue the merits of not running as root.
what I'd really like is a login ....
Thank you for your time and help.
Respectfully, Christopher Taylor
_______________________________________________ maemo-developers mailing list maemo-developers maemo.org">maemo-developers maemo.org
https://maemo.org/mailman/listinfo/maemo-developers
|
| Re: Boot bora as root |
  United Kingdom |
2007-04-17 11:12:04 |
On Tue, 2007-04-17 at 11:31 -0400, Chris Taylor wrote:
> what I'd really like is a login ....
Install a SSH server and you can just ssh root localhost
Ross
--
Ross Burton mail: ross burtonini.com
jabber: ross burtonini.com
www: http://www.burtonini.com./
PGP Fingerprint: 1A21 F5B0 D8D0 CFE3 81D4 E25A 2D09 E447
D0B4 33DF
_______________________________________________
maemo-developers mailing list
maemo-developers maemo.org
h
ttps://maemo.org/mailman/listinfo/maemo-developers
|
|
| Re: Boot bora as root |

|
2007-04-17 13:10:03 |
> Whatever is launching X is going to be what tells it
the user to run the
> graphical environment as.
That was my assumption also. I changed the occurances of
use/users
(one occurance of systemui/users) to root/root in the init
scripts
(and in a few places in /etc/osso-af-init) ...so I thought
that would
have worked ... turns out I forgot to set the home path as
well ....
so I changed out all the references to /home/user to
/home/root and
made a symlink from /home/root to point to /root .... I then
copied
over (without overwrite) all the /home/user/.<stuff>
over to root's
home dir ....
I'm booting as root now
I hope my little set of pathetic instructions above helps
people out
in the future who want to boot as root.
If there's demand, and the os dev team doesn't object ... I
can post
something onto the mameo wiki ... what say everyone?
-Chris
_______________________________________________
maemo-developers mailing list
maemo-developers maemo.org
h
ttps://maemo.org/mailman/listinfo/maemo-developers
|
|
| Re: Boot bora as root |

|
2007-04-17 13:39:26 |
|
By nature of it being a wiki, IMHO you should go ahead and do whatever you want. I'm still now sure what benefit this gives you on an embedded device that doesn't ask for authentication anyway.
--Paul
On 4/17/07, Chris Taylor < chtaylo4 gmail.com">chtaylo4 gmail.com> wrote:
> Whatever is launching X is going to be what tells it the user to run the > graphical environment as.
That was my assumption also. I changed the occurances of use/users (one occurance of systemui/users) to root/root in the init scripts
(and in a few places in /etc/osso-af-init) ...so I thought that would have worked ... turns out I forgot to set the home path as well .... so I changed out all the references to /home/user to /home/root and made a symlink from /home/root to point to /root .... I then copied
over (without overwrite) all the /home/user/.<stuff> over to root's home dir ....
I9;m booting as root now
I hope my little set of pathetic instructions above helps people out in the future who want to boot as root.
If there's demand, and the os dev team doesn't object ... I can post something onto the mameo wiki ... what say everyone?
-Chris _______________________________________________ maemo-developers mailing list
maemo-developers maemo.org">maemo-developers maemo.org https://maemo.org/mailman/listinfo/maemo-developers
|
| Re: Boot bora as root |

|
2007-04-17 14:06:21 |
>
> Yes, some rationale in such wiki page would be nice. I
admit I'm baffled
> by this and would like to achieve enlightenment. How is
this useful?
>
> Perhaps next step is running everything in kernel
mode?
>
simple, I don't do sudo ;)
-Chris
_______________________________________________
maemo-developers mailing list
maemo-developers maemo.org
h
ttps://maemo.org/mailman/listinfo/maemo-developers
|
|
| Re: Boot bora as root |

|
2007-04-17 15:42:59 |
|
On 4/17/07, Chris Taylor < chtaylo4 gmail.com">chtaylo4 gmail.com> wrote:
simple, I don't do sudo ;)
But there is no visible sudo in the GUI. Installing an app, for example, doesn't require the user switch to root or initiate gksudo. If it's just the term you're after, setting the xterm to root ownership and marking the SUID bit seems the most logical solution.
The only benefit I see other than xterm is for something like a third party file manager to allow browsing--and manipulating--the full file system, but then again the filemanager could probably be "fixed" to run as root by using SUID...
--Paul
|
[1-7]
|
|
|
about | contact Other archives ( Real Estate discussion Medical topics )
|