Write a program in C to mimic the "adduser" command on Linux. This command will add either an ordinary user or a system user. It has to handle 2 files "passwd" and "shadow". Both these files will be in some folder specified by an environment variable PFILE. The program has to take all arguments as command line arguments
adduser –u 100 –g 200 –c "M S DHONI"msdhoni
-g
adduser
-gid
-group
man adduser
useradd
man useradd
which adduser
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)