Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 176583 - eselect under sudo doesn't report error but fails
Summary: eselect under sudo doesn't report error but fails
Status: RESOLVED WORKSFORME
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Unspecified (show other bugs)
Hardware: All Linux
: High minor (vote)
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-04-30 14:30 UTC by Tim Bowers
Modified: 2007-04-30 14:42 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 Tim Bowers 2007-04-30 14:30:22 UTC
If you use sudo eselect kernel set <x>; it doesn't report an error but fails to set your kernel.

You can only change your kernel using eselect if your root. sudo'ing doesn't work, it should return an error

Reproducible: Didn't try

Steps to Reproduce:
1.eselect kernel list
2.observe which kernel is selected
3.sudo eselect kernel set <x> (Where x is not the kernel which was previously selected).
4.eselect kernel list (Observe that selected kernel has not changed, but no error message was recived)



Expected Results:  
Change in selected kernel, error message
Comment 1 Łukasz Damentko (RETIRED) gentoo-dev 2007-04-30 14:42:26 UTC
[/home/rane] # ls -ld /usr/src/linux
lrwxrwxrwx 1 root root 23 2007-04-30 16:39 /usr/src/linux -> linux-2.6.16-gentoo-r13
[~] $ sudo eselect kernel set linux-2.6.20-gentoo-r7
[/home/rane] # ls -ld /usr/src/linux
lrwxrwxrwx 1 root root 22 2007-04-30 16:41 /usr/src/linux -> linux-2.6.20-gentoo-r7

Try checking your sudo configuration.
http://www.gentoo.org/doc/en/sudo-guide.xml