add prefix path for genpassword
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@13549 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
parent
67a96aa58d
commit
940b7aef40
@ -306,7 +306,7 @@ sub process_request {
|
||||
close($shadow);
|
||||
open($shadow,">","$rootimg_dir/etc/shadow");
|
||||
unless ($pass =~ /^\$1\$/) {
|
||||
$pass = crypt($pass,'$1$'.genpassword(8));
|
||||
$pass = crypt($pass,'$1$'.xCAT::Utils::genpassword(8));
|
||||
}
|
||||
print $shadow "root:$pass:13880:0:99999:7:::\n";
|
||||
foreach (@shadents) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user