[pve-devel] [PATCH] Fix: root can now be disabled in GUI.
Wolfgang Link
wolfgang at linksystems.org
Wed Jan 7 08:49:53 CET 2015
Signed-off-by: Wolfgang Link <wolfgang at linksystems.org>
---
PVE/AccessControl.pm | 7 -------
1 file changed, 7 deletions(-)
diff --git a/PVE/AccessControl.pm b/PVE/AccessControl.pm
index db85d08..29dba39 100644
--- a/PVE/AccessControl.pm
+++ b/PVE/AccessControl.pm
@@ -356,8 +356,6 @@ sub check_user_enabled {
return 1 if $data->{enable};
- return 1 if $username eq 'root at pam'; # root is always enabled
-
die "user '$username' is disabled\n" if !$noerr;
return undef;
@@ -694,11 +692,6 @@ sub userconfig_force_defaults {
foreach my $r (keys %$special_roles) {
$cfg->{roles}->{$r} = $special_roles->{$r};
}
-
- # fixme: remove 'root' group (not required)?
-
- # add root user
- $cfg->{users}->{'root at pam'}->{enable} = 1;
}
sub parse_user_config {
--
1.7.10.4
More information about the pve-devel
mailing list