MCPcopy Create free account
hub / github.com/NVIDIA/OpenShell / update_passwd_file

Function update_passwd_file

crates/openshell-supervisor-process/src/process.rs:1015–1017  ·  view source on GitHub ↗
(uid: &str, gid: &str)

Source from the content-addressed store, hash-verified

1013/// or append a new entry if none exists.
1014#[cfg(unix)]
1015fn update_passwd_file(uid: &str, gid: &str) -> Result<()> {
1016 rewrite_passwd_at(Path::new("/etc/passwd"), uid, gid)
1017}
1018
1019/// Rewrite the `sandbox` line in `/etc/group` with the given GID,
1020/// or append a new entry if none exists.

Callers 1

Calls 1

rewrite_passwd_atFunction · 0.85

Tested by

no test coverage detected