+    # Make sure that the nut group actually exists
+    adduser nut nut

First, the comment and command do not match. This will *not* create a
nut group. Second, this is missing a test whether both the user and the
group have a system ID (100 <= id < 500). Third, this call looks really
weird in the first place. How is this system user created? The standard
way to do this is "adduser --system nut --group --no-create-home", which
will take care of properly creating the system group as well.

-- 
[SRU] upsd doesn't start NOT 221737
https://bugs.launchpad.net/bugs/222761
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to nut in ubuntu.

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs

Reply via email to