The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Question about root/users and mailman

Discussion in 'E-mail Discussions' started by tr3online, Feb 6, 2012.

  1. tr3online

    tr3online Registered

    Jan 19, 2012
    Likes Received:
    Trophy Points:
    cPanel Access Level:
    Website Owner
    Hi there,
    I'm newish to administering on linux and am just starting to use my first VPS with WHM/cPanel. I have root access.
    I have added a user with cPanel access, to which that user has created a mailman mailing list. Now, I would like to grant access to that user to utilize the mailman python files so he can run mailman shell commands from his PHP scripts. The mailman install is at the standard : /usr/local/cpanel/3rdparty/mailman . How would I go about doing this? Someone told me I can't grant the user access to these specific files and that I would have to give the user root access to be able to use mailman command line. I was also thinking that maybe I could just add the user to the mailman group?
    Does anyone have any experience with this and can possibly shine some light on the situation? It would be greatly appreciated

  2. cPanelTristan

    cPanelTristan Quality Assurance Analyst
    Staff Member

    Oct 2, 2010
    Likes Received:
    Trophy Points:
    somewhere over the rainbow
    cPanel Access Level:
    Root Administrator
    In regular shell, a user can run mailman commands, and providing regular shell would not necessarily provide root level access. You can set the shell access level in WHM > Manage Shell Access area. Of note, jailed shell is not a sufficiently high enough level to run the mailman binary commands at /usr/local/cpanel/3rdparty/mailman/bin location, since /usr/local/cpanel/3rdparty/mailman/bin directory cannot be found when running in a jailed shell.

    You can test the various shell levels by creating an account with jailed shell and another with regular shell, then logging into shell as the user to see what is available.

Share This Page