View previous topic :: View next topic |
Author |
Message |
cowgod n00b
Joined: 31 Oct 2002 Posts: 34 Location: tucson, az
|
Posted: Wed Mar 08, 2006 8:44 pm Post subject: sudo can't find sudoers file |
|
|
this is the fifth server i have configured with gentoo in the span of a month and i have done the exact same procedure on each of them. i am confused why sudo is having problems. here is the error i am getting when i try to run sudo as a regular user:
sudo: can't stat /var/tmp/portage/sudo-1.6.8_p9-r2/image//etc/sudoers: No such file or directory
the only thing i can think of that may have caused an issue is that i created a portage overlay for g-cpan.pl in /usr/local/portage, however there are no sudo packages or ebuilds in that directory, they are all in /usr/portage.
i unmerged sudo and deleted the sudo directory in /usr/portage/app-admin and then did an emerge sync, and then tried to emerge sudo again but i still get the same error. i do not know why it is looking in /var/tmp for the sudoers file.
any help is appreciated, thank you. |
|
Back to top |
|
|
adaptr Watchman
Joined: 06 Oct 2002 Posts: 6730 Location: Rotterdam, Netherlands
|
Posted: Wed Mar 08, 2006 8:53 pm Post subject: |
|
|
Quote: | /var/tmp/portage/sudo-1.6.8_p9-r2/image//etc/sudoers |
Somehow, this path was hardcoded into the binary - have you tried bugzilla ? _________________ >>> emerge (3 of 7) mcse/70-293 to /
Essential tools: gentoolkit eix profuse screen |
|
Back to top |
|
|
cowgod n00b
Joined: 31 Oct 2002 Posts: 34 Location: tucson, az
|
Posted: Wed Mar 08, 2006 9:21 pm Post subject: |
|
|
i'm not sure what you mean by "tried" bugzilla... i searched bugzilla but did not find anything. if you mean did i submit the bug to bugzilla, no i didn't. i have another server that is running the same version of sudo and it does not have this problem.
your suggestion gave me an idea though... i tried copying the binary from one of the other servers to this one, and that did the trick. sudo works properly now.
this was strange indeed... |
|
Back to top |
|
|
|