maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Development (https://talk.maemo.org/forumdisplay.php?f=13)
-   -   Get root access in SDK (https://talk.maemo.org/showthread.php?t=57228)

mase 2010-06-27 00:42

Get root access in SDK
 
Hi!
How can I get root access in the SDK?
I want to addgroup, but I am told, that only root can do this.
After installing rootsh and setting up sudoers, I get the message:
sudo: must be setuid root
after trying to gain root access.

CepiPerez 2010-06-27 00:47

Re: Get root access in SDK
 
fakeroot
that's all

mase 2010-06-27 08:57

Re: Get root access in SDK
 
Thanks!
That was it!

lma 2010-06-27 09:27

Re: Get root access in SDK
 
As the name implies, fakeroot only fakes root access. It works OK for some things that only need filesystem-level root permissions (eg installing packages) but fails for anything that uses system calls requiring real root privileges (eg ping, mount/umount etc).

int_ua 2013-10-01 15:48

Re: Get root access in SDK
 
Any way to make sudo actually work under SDK chroot?

Ok, I've replaced the sudo binary with sh script that contains only

Code:

#!/bin/sh
fakeroot $@



All times are GMT. The time now is 20:35.

vBulletin® Version 3.8.8