Can i run 'notify' as a user other than root?


Recommended Posts

I'm using the SSH plugin to give me shells for users other than root. I'd like to be able to send notifications as these non-root users. Can i? Please? pretty please? cherry on top?

 

I'm pretty sure when i first set it up in 6.7.2, it worked. But it hasn't for a while now - since i moved to 6.8.x

 

image.png.4402a2d27c3aaf462126b9b8c90bf91b.png

 

Example:

/usr/local/emhttp/webGui/scripts/notify -e "$(date +"%Y-%m-%d %H:%M")" -s "borg-check >> SUCCESS <<" -d "test :: Finished successfully ::" -m "Logs :: test" -i "normal"

 

Cheers.

Link to comment

@bonienl

 

You made bunny cry! 😭

 

:D

 

Dang. It looks like i'm going to have to make liberal use of chown to fix ownership of files after my script does its thing as root :(  I've tried everything i can find to switch between root and my 'backup-user' (who owns my backups) but i just can't make all the features work as so much must be run as root. Bummer - that means more testing.

Link to comment

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.