MCPcopy Create free account
hub / github.com/clawshell/clawshell / delete_system_user

Function delete_system_user

src/platform/linux.rs:79–83  ·  view source on GitHub ↗
(name: &str)

Source from the content-addressed store, hash-verified

77}
78
79pub fn delete_system_user(name: &str) -> Result<(), Error> {
80 let mut command = Command::new("userdel");
81 command.arg(name);
82 command_status(&mut command, "userdel")
83}
84
85pub fn install_autostart_post_write(_service_path: &str) -> Result<(), Error> {
86 let mut daemon_reload = Command::new("systemctl");

Callers 1

cmd_uninstallFunction · 0.50

Calls 1

command_statusFunction · 0.85

Tested by

no test coverage detected