in reply to Public Access Linux Box
I am happy enough leaving this fact alone, and have rather manually taken in the passwd and encrypted it with crypt. This is probably superfluous, but I may as well show you what I did in case someone has this problem in the future.system "/usr/bin/passwd", $username;
So simple in hindsight. Perl really humbles me!print "Password: "; chomp(my $passwd = <STDIN>); $passwd = crypt($passwd, time()); $uid=($max+1); system '/usr/sbin/useradd', "-u $uid", '-s', $shell, '-p', $passwd, '-g 100', '-m', $username;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Public Access Linux Box
by Aristotle (Chancellor) on Mar 15, 2003 at 12:52 UTC |