Community Forums
Connect with us on LinkedIn
Community Notice
+ Reply to Thread
Results 1 to 3 of 3
  1. #1
    Member
    Join Date
    Feb 2005
    Location
    Chile, Santiago.
    Posts
    15

    Default What is the correct permission to /usr/sbin/sendmail?

    What is the correct permission to /usr/sbin/sendmail

    Hello

    I have this error when the any script that will actually need to execute this binary:

    Could not execute /usr/sbin/sendmail

  2. #2
    Member
    Join Date
    Feb 2005
    Location
    Chile, Santiago.
    Posts
    15

    Default

    The permissions are correct:

    chmod +x /usr/sbin/sendmail
    chmod g+s /usr/sbin/sendmail
    chown root:mailtrap /usr/sbin/sendmail

    fyi:
    http://forums.cpanel.net/f5/sendmail...tml#post200824

    any idea?
    Last edited by cokequai; 10-19-2009 at 02:53 PM.

  3. #3
    cPanel Quality Assurance Analyst cPanelDon's Avatar
    Join Date
    Nov 2008
    Location
    Houston, Texas, U.S.A.
    Posts
    2,554
    cPanel/Enkompass Access Level

    DataCenter Provider

    Lightbulb

    The following are correct for the specified binary:

    Path: /usr/sbin/sendmail
    User ownership: root
    Group ownership: mailtrap
    Access permission (octal): 2755
    Access permission (human-readable): -rwxr-sr-x

    You could use the following command to check the above information to determine if a correction is necessary:
    Code:
    # stat /usr/sbin/sendmail
    If a permissions or ownership correction is needed, the following two commands could be used to accomplish this:
    Code:
    # chmod -v 2755 /usr/sbin/sendmail
    # chown -v root:mailtrap /usr/sbin/sendmail
    On Linux (CentOS/RHEL) systems the sendmail binary is distributed with the Exim RPM that is installed by cPanel/WHM; to verify if your sendmail binary is one that came with the Exim RPM, you may use the following command:
    Code:
    # rpm -qf /usr/sbin/sendmail
    The above command should display something like the following (where the #'s represent a version number):
    exim-#.##-##.#_cpanel_maildir

Similar Threads & Tags
Similar threads

  1. Clamav /usr/sbin/clamd (Permission denied)
    By anasb in forum E-mail Discussions
    Replies: 1
    Last Post: 05-31-2010, 03:32 PM
  2. What is the correct permission to /usr/bin/perl ?
    By konrath in forum cPanel and WHM Discussions
    Replies: 1
    Last Post: 09-21-2009, 02:03 PM
  3. /usr/sbin/sendmail: Exec format error
    By tata13 in forum cPanel and WHM Discussions
    Replies: 1
    Last Post: 03-10-2007, 11:56 AM
  4. use /usr/sbin/sendmail in php exec()
    By endelwar in forum cPanel and WHM Discussions
    Replies: 4
    Last Post: 09-27-2006, 08:49 AM
  5. re-exec of exim (/usr/sbin/exim) with -Mc failed: Permission denied
    By 65535 in forum cPanel and WHM Discussions
    Replies: 2
    Last Post: 03-15-2004, 06:01 AM
Tags for this Thread
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube