in reply to Re: Linux::usermod - user name ... already exists
in thread Linux::usermod - user name ... already exists
my $username = `usermod -l $nname $name`; my $dirusername = `usermod -d /home/$nname -m $nname`;
I would recommend against this way of doing this because it allows for injection of arbitrary shell commands via $nname and $name, and it does not check for errors in the commands. See also.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Linux::usermod - user name ... already exists
by thanos1983 (Parson) on Mar 21, 2019 at 18:58 UTC | |
by haukex (Archbishop) on Mar 25, 2019 at 09:42 UTC |