diff --git a/xCAT-server/lib/xcat/plugins/updatenode.pm b/xCAT-server/lib/xcat/plugins/updatenode.pm index b0c5066e5..ecf561a02 100644 --- a/xCAT-server/lib/xcat/plugins/updatenode.pm +++ b/xCAT-server/lib/xcat/plugins/updatenode.pm @@ -1343,11 +1343,11 @@ sub updatenodesyncfiles push @$args,"-f" ; push @$args,$::fanout; } - # if (defined($::USER)) { # -l contains sudo (TODO SUPPORT?) - # push @$args,"--sudo" ; - # push @$args,"-l" ; - # push @$args,"$::USER" ; - # } + if (defined($::USER)) { # -l must sudo + push @$args,"--sudo" ; + push @$args,"-l" ; + push @$args,"$::USER" ; + } push @$args,"-F" ; push @$args,"$synclist" ; my $nodestring = join(',', @{$syncfile_node{$synclist}});