|
Lines 1973-1978
Link Here
|
| 1973 |
$user_in_work{"enabled"} = YaST::YCP::Boolean (0); |
1973 |
$user_in_work{"enabled"} = YaST::YCP::Boolean (0); |
| 1974 |
} |
1974 |
} |
| 1975 |
|
1975 |
|
|
|
1976 |
# set the default value ("move directories, when changed") |
| 1977 |
if (!defined $user_in_work{"create_home"}) { |
| 1978 |
$user_in_work{"create_home"} = YaST::YCP::Boolean (1); |
| 1979 |
} |
| 1980 |
|
| 1976 |
# save first map for later checks of modification (in Commit) |
1981 |
# save first map for later checks of modification (in Commit) |
| 1977 |
my %org_user = %user_in_work; |
1982 |
my %org_user = %user_in_work; |
| 1978 |
$user_in_work{"org_user"} = \%org_user; |
1983 |
$user_in_work{"org_user"} = \%org_user; |
|
Lines 3335-3340
Link Here
|
| 3335 |
} |
3340 |
} |
| 3336 |
$shadow{$type}{$username} = $self->CreateShadowMap (\%user); |
3341 |
$shadow{$type}{$username} = $self->CreateShadowMap (\%user); |
| 3337 |
} |
3342 |
} |
|
|
3343 |
# modify Autologin status if necessary |
| 3344 |
if ($username ne $org_username && Autologin->user () eq $org_username) { |
| 3345 |
Autologin->user ($username); |
| 3346 |
Autologin->modified (YaST::YCP::Boolean (1)); |
| 3347 |
} |
| 3338 |
} |
3348 |
} |
| 3339 |
elsif ( $what_user eq "group_change_default") { |
3349 |
elsif ( $what_user eq "group_change_default") { |
| 3340 |
# gid of default group was changed |
3350 |
# gid of default group was changed |
|
Lines 4113-4119
Link Here
|
| 4113 |
push @useradd_postcommands, $command; |
4123 |
push @useradd_postcommands, $command; |
| 4114 |
} |
4124 |
} |
| 4115 |
} |
4125 |
} |
| 4116 |
elsif ($user_mod eq "edited") { |
4126 |
elsif ($user_mod eq "edited" && $home ne "/var/lib/nobody") { |
| 4117 |
my $org_home = $user{"org_user"}{"homedirectory"} || $home; |
4127 |
my $org_home = $user{"org_user"}{"homedirectory"} || $home; |
| 4118 |
my $org_uid = $user{"org_user"}{"uidnumber"} || $uid; |
4128 |
my $org_uid = $user{"org_user"}{"uidnumber"} || $uid; |
| 4119 |
if ($home ne $org_home || $uid ne $org_uid) { |
4129 |
if ($home ne $org_home || $uid ne $org_uid) { |
|
Lines 4122-4130
Link Here
|
| 4122 |
UsersRoutines->MoveHome ($org_home, $home); |
4132 |
UsersRoutines->MoveHome ($org_home, $home); |
| 4123 |
} |
4133 |
} |
| 4124 |
# chown only when directory was changed (#39417) |
4134 |
# chown only when directory was changed (#39417) |
| 4125 |
if ($home ne "/var/lib/nobody") { |
4135 |
UsersRoutines->ChownHome ($uid, $gid, $home); |
| 4126 |
UsersRoutines->ChownHome ($uid, $gid, $home); |
|
|
| 4127 |
} |
| 4128 |
} |
4136 |
} |
| 4129 |
} |
4137 |
} |
| 4130 |
} |
4138 |
} |