Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 169806 - app-portage/eix bad help text
Summary: app-portage/eix bad help text
Status: RESOLVED FIXED
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Third-Party Tools (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Stefan Schweizer (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-03-07 18:39 UTC by Marijn Schouten (RETIRED)
Modified: 2007-04-06 00:44 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Marijn Schouten (RETIRED) gentoo-dev 2007-03-07 18:39:43 UTC
Doing "update-eix-remote -h" on version 0.9.1 gives output including:

"It is strongly recommended to use the update/fetch commands only as root
or with the -u "nobody" option or with very limited permissions."

I really have no idea what it means.
Comment 1 Stefan Schweizer (RETIRED) gentoo-dev 2007-03-07 18:52:39 UTC
can you rephrase it then? I think you get what it means.

run as   (root+-u nobody) || unprivileged user
Comment 2 Jakub Moc (RETIRED) gentoo-dev 2007-03-07 18:58:40 UTC
Drop the first 'or'? :)
Comment 3 Martin Väth 2007-03-07 19:33:36 UTC
(In reply to comment #1)
> run as   (root+-u nobody) || unprivileged user

No, that's a misunderstanding. It means as it says:
   root || -u nobody || unprivileged user
Each of these should be fine from a security viewpoint (although the second might require the existence of a password for "nobody").
(The reason why root is OK is that this defaults to -u nobody;
here I tacitly assume that the user understands that being root and using e.g. -u root would be stupid.)

So roughly speaking, the only insecure case is being a non-root user with relatively high permissions and not using -u user_with_low_permissions.

Suggestions for better formulations are welcome, but they should not be longer than 1-2 lines, since otherwise most people won't read them.
Comment 4 Jakub Moc (RETIRED) gentoo-dev 2007-03-07 21:19:53 UTC
(In reply to comment #3)
> No, that's a misunderstanding. It means as it says:
>    root || -u nobody || unprivileged user

Well, that doesn't make much sense to vast majority of users who read this, as you can see from this bug. :)
Comment 5 Stefan Schweizer (RETIRED) gentoo-dev 2007-03-08 10:01:00 UTC
obviously invalid. Otherwise please provide a solution.
Comment 6 Marijn Schouten (RETIRED) gentoo-dev 2007-03-08 11:22:02 UTC
Proposed rephrasing:

It is strongly recommended to use the update/fetch commands with very limited permissions. Permissions are dropped when run as root or with the "-u nobody" option. Don't use "-u root".
Comment 7 Jakub Moc (RETIRED) gentoo-dev 2007-03-08 16:02:07 UTC
(In reply to comment #5)
> obviously invalid.

Huh? That text plain doesn't make sense, what's obviously invalid about this?
Comment 8 Martin Väth 2007-03-08 17:20:50 UTC
(In reply to comment #7)
> That text plain doesn't make sense

I don't agree: The text was correct (syntactically and semantically).

Anyway, the suggested reformulation will be contained in the next eix version, because it is clearer and not too long.
Comment 9 Stefan Schweizer (RETIRED) gentoo-dev 2007-04-06 00:44:56 UTC
thanks, new version in portage now.