Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
sudo can't find sudoers file
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
cowgod
n00b
n00b


Joined: 31 Oct 2002
Posts: 34
Location: tucson, az

PostPosted: Wed Mar 08, 2006 8:44 pm    Post subject: sudo can't find sudoers file Reply with quote

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
View user's profile Send private message
adaptr
Watchman
Watchman


Joined: 06 Oct 2002
Posts: 6730
Location: Rotterdam, Netherlands

PostPosted: Wed Mar 08, 2006 8:53 pm    Post subject: Reply with quote

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
View user's profile Send private message
cowgod
n00b
n00b


Joined: 31 Oct 2002
Posts: 34
Location: tucson, az

PostPosted: Wed Mar 08, 2006 9:21 pm    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum