public inbox for gentoo-dev@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-dev] Too root or not to root?
@ 2003-08-21 23:39 Rob Cakebread
  2003-08-21 23:54 ` Mike Frysinger
                   ` (2 more replies)
  0 siblings, 3 replies; 9+ messages in thread
From: Rob Cakebread @ 2003-08-21 23:39 UTC (permalink / raw
  To: gentoo-dev


Hi,

I've written an editor/IDE for creating ebuilds (http://abeni.sf.net).
It requires the user to run it as root. In previous versions it ran as
a regular user and executed commands such as emerge and ebuild with sudo.

This worked ok but I had to do a lot of silly things because regular users
don't have read permissions below $WORKDIR. My app will open the configure
and Makefile automatically when you click the 'unpack' icon, for instance,
but I had to do some really kludgey things to check if the configure/Makefile
existed in ${S}. Then to read it I had to copy it to the /tmp dir with sudo
then read it in as regular user.

Is there a good reason that $WORKDIR isn't world readable? Should I just not
worry about it and continue requiring everyone run as root?

I notice other portage GUIs I've seen all require the user to run as root,
such as kportage, portagemaster etc, so maybe I shouldn't be concerned.


P.S.
Does anyone know of a Bash script beautifier? Mainly I need to convert spaces
to tabs in ebuilds and I'd rather use an external program if one exists.

Thanks,
Rob








--
gentoo-dev@gentoo.org mailing list


^ permalink raw reply	[flat|nested] 9+ messages in thread
* Re: [gentoo-dev] Too root or not to root?
@ 2003-08-22  0:14 Rob Cakebread
  2003-08-22  0:22 ` Mike Frysinger
  0 siblings, 1 reply; 9+ messages in thread
From: Rob Cakebread @ 2003-08-22  0:14 UTC (permalink / raw
  To: gentoo-dev

On Thursday 21 August 2003 04:54 pm, Mike Frysinger wrote:
> On Thursday 21 August 2003 19:39, Rob Cakebread wrote:
> > Is there a good reason that $WORKDIR isn't world readable? Should I just
> > not worry about it and continue requiring everyone run as root?
>
> have you tried userpriv at all ?  that just requires the user to be in the
> group portage ... and yes, imo, the $WORKDIR should be o-rwx
>
> portage is going the way of not requiring root ...
> -mike

No I didn't set 'userpriv' because make.conf says that it also removes sandbox access violations for users. But now I see the 'usersandbox' which re-enables sandboxing while running with userpriv. Ah ha.

Thanks, I think that should do it.

Does anyone think its a waste to add all the sudo stuff and run as regular user? Or just run the app as root?




--
gentoo-dev@gentoo.org mailing list


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

end of thread, other threads:[~2003-08-22  8:47 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-08-21 23:39 [gentoo-dev] Too root or not to root? Rob Cakebread
2003-08-21 23:54 ` Mike Frysinger
2003-08-22  2:26 ` Georgi Georgiev
2003-08-22  8:10 ` Mamoru KOMACHI
  -- strict thread matches above, loose matches on Subject: below --
2003-08-22  0:14 Rob Cakebread
2003-08-22  0:22 ` Mike Frysinger
2003-08-22  1:16   ` Alec Berryman
2003-08-22  8:10     ` Sven Vermeulen
2003-08-22  8:47   ` Paul de Vrieze

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