summaryrefslogtreecommitdiff
path: root/lib/Vyatta/Login/User.pm
diff options
context:
space:
mode:
Diffstat (limited to 'lib/Vyatta/Login/User.pm')
-rwxr-xr-xlib/Vyatta/Login/User.pm7
1 files changed, 1 insertions, 6 deletions
diff --git a/lib/Vyatta/Login/User.pm b/lib/Vyatta/Login/User.pm
index a65e5cb1..edba13ac 100755
--- a/lib/Vyatta/Login/User.pm
+++ b/lib/Vyatta/Login/User.pm
@@ -109,12 +109,7 @@ sub _delete_user {
} elsif ( getlogin() eq $user ) {
die "Attempting to delete current user: $user\n";
} else {
- # This logs out user (so we can delete it)
- system("pkill -HUP -U $user");
- sleep(1);
- system("pkill -9 -U $user");
-
- system("userdel $user") == 0
+ system("userdel -f $user") == 0
or die "userdel of $user failed: $?\n";
}
}