[Nut-upsuser] Synology NAS is shutting down Ubuntu servers after very brief power outage (fwd)
Roger Price
roger at rogerprice.org
Tue Aug 4 19:38:32 BST 2020
On Tue, 4 Aug 2020, Todd Benivegna wrote:
> Right, but I don't know what NUT script is actually calling it. I don't know how else I would check.
Sorry. I've lost the thread here, what is the "it" you refer to?
If you run the command
grep nut /etc/password
you will probably receive a reply similar to
nut:x:121:126::/var/lib/nut:/bin/false
The /bin/false implies that user nut uses the default shell which can be seen on
a Debian box with the command
ls -alF /bin/sh
lrwxrwxrwx 1 root root 4 Jan 24 2017 /bin/sh -> dash*
This says that Dash is the default for the command line and for scripts. As
Manuel has said this can be changed with the first line of a script, e.g.
#!/bin/bash
says that this script uses Bash.
Roger
More information about the Nut-upsuser
mailing list