rvojcik / iredmail-cli

iRedMail CLI (MySQL Only), Command Line interface to iRedMail Open Source Email server solution
GNU General Public License v2.0
39 stars 14 forks source link

Run command without SUDO #7

Closed bertalanimre closed 4 years ago

bertalanimre commented 4 years ago

Is anybody there still? I wish to know how can I run the commands without a root user. With standard user, the command complains about the path (which is correct BTW) while if the same is done with sudo, then it works like a charm.

rvojcik commented 4 years ago

Command doesn't need root privileges.

It operates with iredmail database only. When you run it , it gathers information about database from your iredadmin installation. Maybe your installation has files readable by the root only or another user then you run command.

Your user needs to have correct permissions to access ireadmin installation files.

rvojcik commented 4 years ago

When you follow the README, there is

 sudo cp email-manage.py /usr/local/sbin/

You have to also change this to

 sudo cp email-manage.py /usr/local/bin/
bertalanimre commented 4 years ago

Bah, sorry. My bad. :)