Active Topics

 


Reply
Thread Tools
mase's Avatar
Posts: 355 | Thanked: 205 times | Joined on Jun 2010 @ Germany
#1
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.
__________________
May the force be with us!
 
CepiPerez's Avatar
Posts: 1,023 | Thanked: 4,421 times | Joined on Feb 2010 @ Argentina
#2
fakeroot
that's all
 
mase's Avatar
Posts: 355 | Thanked: 205 times | Joined on Jun 2010 @ Germany
#3
Thanks!
That was it!
__________________
May the force be with us!
 
Posts: 2,802 | Thanked: 4,491 times | Joined on Nov 2007
#4
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's Avatar
Posts: 676 | Thanked: 1,067 times | Joined on Jul 2010 @ Kyiv, Ukraine
#5
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 $@

Last edited by int_ua; 2013-10-01 at 16:26.
 
Reply


 
Forum Jump


All times are GMT. The time now is 17:48.