Help for this page

Select Code to Download


  1. or download this
    system "/usr/bin/passwd", $username;
    
  2. or download this
    print "Password: ";
    chomp(my $passwd = <STDIN>);
    ...
    
    system '/usr/sbin/useradd', "-u $uid", '-s', $shell,
            '-p', $passwd, '-g 100', '-m', $username;