support rights setting for homedir

This commit is contained in:
Roland Gruber 2008-03-09 11:58:46 +00:00
parent 1d1ca8ec12
commit c6c9947dc6
1 changed files with 2 additions and 1 deletions

View File

@ -121,8 +121,9 @@ if ($< == 0 ) { # we are root
system 'chown', '-hR', "$user[2]:$user[3]" , $user[7]; # Change owner to new user
if (-e '/usr/sbin/useradd.local') {
system '/usr/sbin/useradd.local', $user[0]; # run useradd-script
}
}
system 'chmod', $vals[3], $user[7]; # Edit chmod rights
}
else {
$return = "ERROR,Lamdaemon,Homedirectory already exists.:$return";
}