add funcs to grab users & groups for autocomplete

This commit is contained in:
joshuaboud 2021-05-28 13:26:26 -03:00
parent 408de97a6c
commit 4df0d1311c
No known key found for this signature in database
GPG Key ID: 17EFB59E2A8BF50E
1 changed files with 8 additions and 0 deletions

View File

@ -683,6 +683,14 @@ class NavWindow {
} }
this.refresh(); this.refresh();
} }
async get_system_users() {
var passwd = await cockpit.spawn(["getent", "passwd"], {err: "ignore", superuser: "try"});
}
async get_system_groups() {
var groups = await cockpit.spawn(["getent", "groups"], {err: "ignore", superuser: "try"});
}
} }
let nav_window = new NavWindow(); let nav_window = new NavWindow();