Question about root/users and mailman

tr3online

Registered
Jan 19, 2012
1
0
51
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

Thanks!
 

cPanelTristan

Quality Assurance Analyst
Staff member
Oct 2, 2010
7,607
40
248
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.