public inbox for gentoo-embedded@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-embedded] Applets priviledges
@ 2005-11-07 20:00 gringo
  2005-11-07 20:24 ` Mike Frysinger
  0 siblings, 1 reply; 4+ messages in thread
From: gringo @ 2005-11-07 20:00 UTC (permalink / raw
  To: gentoo-embedded

Hi all !

ive been playing for a while with getting a tiny system on a memory 
stick and im almost done thanks to the gentoo guides ive found.
But theres one thing i dont get : when trying to log in i get "applet 
requieres root priviledges" ... from what ive read this is because of:

- busybox is not suid
- busybox.conf is not present or missconfigures/bad permissions.

I think  both files have the right permissions  ( 4755 busybox - 0600 
busybox.conf, right ? ) and i can do whatever i want, this error does 
not go away till i disable login in busybox .config  ...

What am i doing wrong ?

TIA
Andrés
-- 
gentoo-embedded@gentoo.org mailing list



^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [gentoo-embedded] Applets priviledges
  2005-11-07 20:00 [gentoo-embedded] Applets priviledges gringo
@ 2005-11-07 20:24 ` Mike Frysinger
  2005-11-08 11:51   ` gringo
  0 siblings, 1 reply; 4+ messages in thread
From: Mike Frysinger @ 2005-11-07 20:24 UTC (permalink / raw
  To: gentoo-embedded

On Mon, Nov 07, 2005 at 09:00:17PM +0100, gringo wrote:
> ive been playing for a while with getting a tiny system on a memory 
> stick and im almost done thanks to the gentoo guides ive found.

try reading this:
http://www.softforge.de/bb/suid.html
-mike
-- 
gentoo-embedded@gentoo.org mailing list



^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [gentoo-embedded] Applets priviledges
  2005-11-07 20:24 ` Mike Frysinger
@ 2005-11-08 11:51   ` gringo
  2005-11-09 23:37     ` Ned Ludd
  0 siblings, 1 reply; 4+ messages in thread
From: gringo @ 2005-11-08 11:51 UTC (permalink / raw
  To: gentoo-embedded

thanks, have seen this before asking here and im doing things like 
explained in that link.
I tried several combinations and ended up with something like :

[SUID]
su = ssx root.root
sulogin = ssx root.root
passwd = ssx root.root

(/var/...p/epia/etc)-(17:49Kb)--> ls -la busybox.conf
-rw------- 1 root root 92 nov 7 19:28 busybox.conf

(/var/...p/epia/bin)-(150:1,3Mb)--> ls -la busybox
-rwsr-xr-x 1 root root 601860 nov 7 20:10 busybox

and no joy till now ...

What really confuses me is why im hitting this ... more or less i 
followed the guide at bulah.com and i believe i did something similiar a 
few months ago for a cf install and it went very smoth. I cant even 
remember having playied with the busybox.conf file before ...

Any tip ?

TIA

>try reading this:
>http://www.softforge.de/bb/suid.html
>-mike
>  
>

-- 
gentoo-embedded@gentoo.org mailing list



^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [gentoo-embedded] Applets priviledges
  2005-11-08 11:51   ` gringo
@ 2005-11-09 23:37     ` Ned Ludd
  0 siblings, 0 replies; 4+ messages in thread
From: Ned Ludd @ 2005-11-09 23:37 UTC (permalink / raw
  To: gentoo-embedded

On Tue, 2005-11-08 at 12:51 +0100, gringo wrote:
> thanks, have seen this before asking here and im doing things like 
> explained in that link.
> I tried several combinations and ended up with something like :
> 
> [SUID]
> su = ssx root.root
> sulogin = ssx root.root
> passwd = ssx root.root
> 
> (/var/...p/epia/etc)-(17:49Kb)--> ls -la busybox.conf
> -rw------- 1 root root 92 nov 7 19:28 busybox.conf
> 
> (/var/...p/epia/bin)-(150:1,3Mb)--> ls -la busybox
> -rwsr-xr-x 1 root root 601860 nov 7 20:10 busybox
> 
> and no joy till now ...
> 
> What really confuses me is why im hitting this ... more or less i 
> followed the guide at bulah.com and i believe i did something similiar a 
> few months ago for a cf install and it went very smoth. I cant even 
> remember having playied with the busybox.conf file before ...
> 
> Any tip ?

Our default behavior of busybox should not require any suid privs at
all. So you probably have misconfiguration problem.

Here is a quick way to test. (I just tested with BusyBox v1.01 and worked fine)

USE=sdl emerge qemu busybox genext2fs

cd /usr/src/linux/
mkdir root
cd root
wget http://dev.gentoo.org/~solar/busybox/bbemu
sh ./bbemu $PWD
qemu -kernel /usr/src/linux/arch/i386/boot/bzImage -append "root=/dev/hda init=/sbin/init rootfstype=ext2 ro" ../root_fs


-- 
Ned Ludd <solar@gentoo.org>
Gentoo Linux

-- 
gentoo-embedded@gentoo.org mailing list



^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2005-11-09 23:39 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-11-07 20:00 [gentoo-embedded] Applets priviledges gringo
2005-11-07 20:24 ` Mike Frysinger
2005-11-08 11:51   ` gringo
2005-11-09 23:37     ` Ned Ludd

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox