Line must beadded the password and shadow files
any production quality script should ensure that they are not corrupted by any circumstances during an
update.
Such arguments MAY be followed with:
-p to specify the new entry to be added to the password file.
-s 'sjobs:
$6$.R/mk/Uv$7b.9w/5W4exX3kGRPR5gC63fPEqgzEKyBRXogMJ.WANpszWvcB4z..PHDL3M4
$ useradd.py -P ./passwd -S ./shadow –G ./groups
Enter username:
Remember you may also use /etc/passwd and /etc/shadow as files for the above options. You should test that
your account work.
for the remainder fields in this file by using default values, except in the case where you should calculate
epoch time of change. Make sure the values you select as defaults are sensible.
do this properly you should;
1. Check the validity of the username, uid and gid.
6. Manage any temporary files used and ensure files created have appropriate permissions.
7. Handle signals correctly e.g. SIGINT (interrupt).
create it right? but also ensure the permissions are correct… If I were Steve Jobs I would be unhappy if the
default umask allowed everyone to read my directory. You will also need to think about concurrency. All