Instead of: result, output = self.call_popen(["usermod", "-p", crypted, username])
we could do the equivalent of
echo username:password | chpasswd
and use the clear text password. When using popen, the username:password bit won't even show up in the command line.
Instead of: popen([ "usermod" , "-p", crypted, username])
result, output = self.call_
we could do the equivalent of
echo username:password | chpasswd
and use the clear text password. When using popen, the username:password bit won't even show up in the command line.