List Info

Thread: Running scratchbox as root




Running scratchbox as root
user name
2006-06-20 19:03:54
So, I'll say at the beginning: I understand why developing
as root in
SB is A Bad Thing 

That said, I would like to be able to do so in very specific
circumstances, like when building up a fresh target (to
become the
image for a target device) by downloading/installing
packages with
APT.

Since package post-installation scripts sometimes need to
make device
nodes, or tweak binaries to be set-uid root, this seems to
be a
legitimate function.

Is there a way that I can override the safety checks and do
some work
as root? E.g.,

# /scratchbox/login apt-get install packages-for-target
_______________________________________________
Scratchbox-users mailing list
Scratchbox-userslists.scratchbox.org
http://lists.scratchbox.org/cgi-bin/mailman
/listinfo/scratchbox-users
Running scratchbox as root
user name
2006-06-20 20:05:35
Hi,

Fakeroot:

/scratchbox/login fakeroot apt-get install
packages-for-target


    - Veli
      

On 20/06, Matt Hoosier wrote:
> So, I'll say at the beginning: I understand why
developing as root in
> SB is A Bad Thing 
> 
> That said, I would like to be able to do so in very
specific
> circumstances, like when building up a fresh target (to
become the
> image for a target device) by downloading/installing
packages with
> APT.
> 
> Since package post-installation scripts sometimes need
to make device
> nodes, or tweak binaries to be set-uid root, this seems
to be a
> legitimate function.
> 
> Is there a way that I can override the safety checks
and do some work
> as root? E.g.,
> 
> # /scratchbox/login apt-get install packages-for-target
> _______________________________________________
> Scratchbox-users mailing list
> Scratchbox-userslists.scratchbox.org
> http://lists.scratchbox.org/cgi-bin/mailman
/listinfo/scratchbox-users

-- 
Veli Mankinen, Movial Corporation
Porkkalankatu 13 J, FI-00180 Helsinki
Mobile +358 40 549 0437, Tel +358 9 8567 6400
Fax +358 9 8567 6401
www.movial.fi

_______________________________________________
Scratchbox-users mailing list
Scratchbox-userslists.scratchbox.org
http://lists.scratchbox.org/cgi-bin/mailman
/listinfo/scratchbox-users
Running scratchbox as root
user name
2006-06-20 21:45:32
Fakeroot does not allow chown or mknod commands to achieve
their
intended result. The host system's kernel still pays
attention to
permissions. Transcript follows:

/scratchbox/login fakeroot mknod /tmp/blah c 1 2
/scratchbox/login ls -al /tmp/blah

    -rw-r--r-- 1 yourname yourgroup 0 Jun 20 16:43 /tmp/blah

mknod running underneath fakeroot just creates a normal
file.

On 6/20/06, Veli Mankinen <veli.mankinenmovial.fi> wrote:
>
> Hi,
>
> Fakeroot:
>
> /scratchbox/login fakeroot apt-get install
packages-for-target
>
>
>     - Veli
>
>
> On 20/06, Matt Hoosier wrote:
> > So, I'll say at the beginning: I understand why
developing as root in
> > SB is A Bad Thing 
> >
> > That said, I would like to be able to do so in
very specific
> > circumstances, like when building up a fresh
target (to become the
> > image for a target device) by
downloading/installing packages with
> > APT.
> >
> > Since package post-installation scripts sometimes
need to make device
> > nodes, or tweak binaries to be set-uid root, this
seems to be a
> > legitimate function.
> >
> > Is there a way that I can override the safety
checks and do some work
> > as root? E.g.,
> >
> > # /scratchbox/login apt-get install
packages-for-target
> > _______________________________________________
> > Scratchbox-users mailing list
> > Scratchbox-userslists.scratchbox.org
> > http://lists.scratchbox.org/cgi-bin/mailman
/listinfo/scratchbox-users
>
> --
> Veli Mankinen, Movial Corporation
> Porkkalankatu 13 J, FI-00180 Helsinki
> Mobile +358 40 549 0437, Tel +358 9 8567 6400
> Fax +358 9 8567 6401
> www.movial.fi
>
> _______________________________________________
> Scratchbox-users mailing list
> Scratchbox-userslists.scratchbox.org
> http://lists.scratchbox.org/cgi-bin/mailman
/listinfo/scratchbox-users
>
_______________________________________________
Scratchbox-users mailing list
Scratchbox-userslists.scratchbox.org
http://lists.scratchbox.org/cgi-bin/mailman
/listinfo/scratchbox-users
Running scratchbox as root
user name
2006-06-21 07:46:27
Matt Hoosier wrote:
> Fakeroot does not allow chown or mknod commands to
achieve their
> intended result. The host system's kernel still pays
attention to
> permissions. Transcript follows:
> 
> /scratchbox/login fakeroot mknod /tmp/blah c 1 2
> /scratchbox/login ls -al /tmp/blah
> 
>    -rw-r--r-- 1 yourname yourgroup 0 Jun 20 16:43
/tmp/blah
> 
> mknod running underneath fakeroot just creates a normal
file.

I've added sudo for scratchbox (/scratchbox/tools/bin) and
it works fine 
for me 

-- 
Grzegorz Dabrowski

Polska dystrybucja linuksa Pingwinek GNU/Linux!
http://home.gna.org/pi
ngwinek/



------------------------------------------------------------
----------
Zobacz nowosci salonu moto w Madrycie >>> http://link.interia.pl/f
1961

_______________________________________________
Scratchbox-users mailing list
Scratchbox-userslists.scratchbox.org
http://lists.scratchbox.org/cgi-bin/mailman
/listinfo/scratchbox-users
Running scratchbox as root
user name
2006-06-21 06:46:18
On 21.6.2006, at 0.45, Matt Hoosier wrote:
> mknod running underneath fakeroot just creates a normal
file.

Within the fakeroot session that file looks like what you'd
expect.  
You must create the tarball/whatever within the same
invocation of  
fakeroot.

/lauri

_______________________________________________
Scratchbox-users mailing list
Scratchbox-userslists.scratchbox.org
http://lists.scratchbox.org/cgi-bin/mailman
/listinfo/scratchbox-users
Running scratchbox as root
user name
2006-06-21 06:55:47
On Tue, 2006-06-20 at 16:45 -0500, Matt Hoosier wrote:

> Fakeroot does not allow chown or mknod commands to
achieve their
> intended result. The host system's kernel still pays
attention to
> permissions. Transcript follows:
> 
> /scratchbox/login fakeroot mknod /tmp/blah c 1 2
> /scratchbox/login ls -al /tmp/blah
> 
>     -rw-r--r-- 1 yourname yourgroup 0 Jun 20 16:43
/tmp/blah
> 
> mknod running underneath fakeroot just creates a normal
file.

You can save fakeroot's database and load it when you want
to archive
the files:

	fakeroot -s database mknod /tmp/blah c 1 2
	fakeroot -i database tar cf ...

You can combine -i and -s if you work on the same database
on multiple
instances.  You can also save separate database files from
separate
operations (such as installing a particular package) and
concatenate
them before archiving everything.

timo


_______________________________________________
Scratchbox-users mailing list
Scratchbox-userslists.scratchbox.org
http://lists.scratchbox.org/cgi-bin/mailman
/listinfo/scratchbox-users
[1-6]

about | contact  Other archives ( Real Estate discussion Medical topics )