Permitting lcm user to start/stop/restart LCM Server

Give lcm user permission

  1. Logon as root and type these commands to backup your /etc/sudoers file:

    cp /etc/sudoers /root/sudoers.bak

  2. Edit the /etc/sudoers file. Type this visudo command:

    visudo

  3. Append/edit these lines in the /etc/sudoers file for user ‘lcm’:

    lcm ALL = NOPASSWD: /bin/systemctl * lcm-server

    lcm ALL = NOPASSWD: /bin/systemctl * lcm-ldap

  4. Save and exit the file.