Find the answer to your Linux question:
Results 1 to 3 of 3
I try to run sudo in gentoo, but I get this error message: benny@tux ~ $ sudo poweroff sudo: can't open /etc/sudoers: Permission denied benny@tux ~ $ sendmail: Cannot open ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Jan 2005
    Posts
    3

    sudo problems in Gentoo


    I try to run sudo in gentoo, but I get this error message:

    benny@tux ~ $ sudo poweroff
    sudo: can't open /etc/sudoers: Permission denied
    benny@tux ~ $ sendmail: Cannot open mail:25


    Can anyone help me?

    /Benny

  2. #2
    Linux User St. Joe's Avatar
    Join Date
    Jun 2005
    Location
    USA
    Posts
    271
    Before we get into all the possible issues, did you read and follow the Gentoo Sudoer Guide?
    It may be that your sole purpose in life is simply to serve as a warning to others.

  3. #3
    Just Joined!
    Join Date
    Jan 2006
    Posts
    1

    My solution to a problem with the same symptoms

    Quote Originally Posted by benjo417
    I try to run sudo in gentoo, but I get this error message:

    benny@tux ~ $ sudo poweroff
    sudo: can't open /etc/sudoers: Permission denied
    benny@tux ~ $ sendmail: Cannot open mail:25


    Can anyone help me?

    /Benny
    Hi Benny,

    I experienced similar symptoms with a fresh installation of Gentoo Linux 2005.1.

    After reading http://www.sudo.ws/pipermail/sudo-us...ry/002395.html , I suspected that my root directory (i.e., /) had incorrect permissions. Try running chmod 0755 / as root to fix the problem.

    As the forum post explains, sudo attempts to email the system administrator upon the most egregious errors. Thus sudo attempts to activate sendmail (clearly not installed).

    Good luck!

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •