<div dir="ltr"><div><div><div><div><div><div>Either I am missing something or I am really STUPID.  <br><br>1. I have added a user, named nutmon, to the nut group.<br></div>2. In upsmon.conf I have set RUN_AS_USER nutmon .<br></div>3. I have NOTIFYCMD /etc/nut/notifyme.sh and it is set as 755, so should be executable by everyone.<br></div><div>4. I have the NOTIFYFLAG set as SYSLOG+WALL+EXEC, so the shell should execute.<br></div><br>This is the shell script :<br><br>#!/bin/bash<br>#<br># NUT NOTIFYCMD script<br><br>PATH=/sbin:/usr/sbin:/bin:/usr/bin:/usr/local/sbin:/usr/local/bin<br><br>notify-send --expire-time=1 "$*"<br><br></div>If I execute the script form a terminal as user john (that's me) the script works as desired and I get on screen notification.<br></div>However, if I execute the script as root, nothing happens.<br><br></div>Also, I do not get any on screen notifications from upsmon .  If I have a terminal open and unplug the UPS I get broadcast messages <br>to the terminal. I have reloaded everything after making changes.  What am I doing wrong?<br><div><div><div><div><div><div><div><br></div></div></div></div></div></div></div></div>