Justo plugin for working with OS user groups. It's compatible with Alpine and Ubuntu. It's local and SSH-compatible.
Developed in Dogma, compiled to JavaScript.
Proudly made with ♥ in Valencia, Spain, EU.
const group = require("justo.plugin.group");
This task checks if a group exists:
group.exists({name}) : bool
-
name
(string, required). Group name.
Example:
if (!group.exists({name: "mygrp"})) {
group.add({name: "mygrp"});
}
This task adds a group:
group.add({name, sys, gid})
-
name
(string. required). Group name. -
gid
(number). GID. -
sys
(bool). Is it a system group? Default:false
.
Example:
group.add({name: "mygroup"});
This task removes a group:
group.del({name})
-
name
(string, required). Group name.
Example:
group.del({name: "mygroup"});