mirror of
https://github.com/45Drives/cockpit-navigator.git
synced 2025-07-29 16:45:13 +02:00
add funcs to grab users & groups for autocomplete
This commit is contained in:
parent
408de97a6c
commit
4df0d1311c
@ -683,6 +683,14 @@ class NavWindow {
|
||||
}
|
||||
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();
|
||||
|
Loading…
x
Reference in New Issue
Block a user