Commit 21e7e909 authored by Leigh B Stoller's avatar Leigh B Stoller

Add force option to tbacct, to force the user to active status.

parent 5e545a69
......@@ -380,7 +380,11 @@ sub AddUser()
$EUID = 0;
return 0;
}
fatal("$user is not active! Cannot build an account!");
if ($force) {
$target_user->SetStatus(USERSTATUS_ACTIVE());
$status = USERSTATUS_ACTIVE();
}
fatal("$user is not active! Cannot build an account! Use -f option.");
}
$UID = 0;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment