Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bugzilla DB migration completed. Please report issues to Infra team via email via infra@gentoo.org or IRC
Bug 97035 - emerging with insufficient permissions should su, then continue
Summary: emerging with insufficient permissions should su, then continue
Status: RESOLVED WONTFIX
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: x86 Linux
: High enhancement (vote)
Assignee: Portage team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-06-25 06:51 UTC by Leonard Ritter
Modified: 2005-06-26 06:06 UTC (History)
0 users

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 Leonard Ritter 2005-06-25 06:51:17 UTC
as seen in the reproduction steps, emerge has to be entered twice when ran from
an user terminal. especially in kde where an user terminal is easily available,
but open root terminals bear a security risk, this would come in handy.
it would be nice if emerge would ask for the root password, then run the command
issued in root context, finally returning to the original user prompt.


Reproducible: Always
Steps to Reproduce:
paniq@zeitgeist ~ $ emerge --pretend kdevelop

*** You are not in the portage group. You may experience cache problems
*** due to permissions preventing the creation of the on-disk cache.
*** Please add this user to the portage group if you wish to use portage.


These are the packages that I would merge, in order:

Calculating dependencies ...done!
[ebuild   R   ] dev-util/kdevelop-3.1.2
Failed to write to mtimedb: [Errno 13] Permission denied: '/var/cache/edb/mtimedb'
paniq@zeitgeist ~ $ su
Password:
zeitgeist paniq # emerge --pretend kdevelop

These are the packages that I would merge, in order:

Calculating dependencies ...done!
[ebuild   R   ] dev-util/kdevelop-3.1.2
zeitgeist paniq #
Comment 1 SpanKY gentoo-dev 2005-06-25 23:48:47 UTC
if you simply add your user to the portage group the example you show would not
display an error

at any rate, i think adding 'su' code to emerge isnt worth the complexity
Comment 2 Leonard Ritter 2005-06-26 02:20:14 UTC
from within kde, i did just that, using the KUser application, but that had no 
effect (but thats a different issue). I guess KUser modifies a shadow file, not 
the actual user configuration. 
 
would it be okay then to just display the command additionally to the help text 
that adds this user to the portage tree? 
 
Comment 3 Marius Mauch (RETIRED) gentoo-dev 2005-06-26 06:06:58 UTC
For the su thing, definite no (would probably need a wrapper around emerge).
For the message, well, there are multiple ways to add someone to a group, and
I'm not sure that there is one standard way that works the same everyway (macos,
bsd, other shells, ...). And your problem probably was that you have to logout
and login again for group changes to take effect, independent of the way you've
added your user to the group.