- HERE THERE ARE TWO C FILES
password.candshadow.cand one header fileserver.h - THE NAME OF THE MAKE FILE IS adduser.mk
- I have executed the makefile using
make -f adducer.mk - There are two text files passwd.txt and shadow.txt.
- The file passwd.txt stores the user information in this format
oracle:c:1021:1020:Oracle user:/user/home:/bin/bashand the file shadow.txt stores the user's encrypted password
- A program in C to mimic the
addusercommand on Linux. - This command will add either an ordinary user or a system user.
- It has to handle 2 files
passwdandshadow - 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.
- User enters in this format
adduser -u UID -g GID -c “Comments” name expirydate - Where,UID is USER ID.
- GID is GROUP ID.
- Comments is the additional information.
- Name is the username
- Expiry date is the validity of password and user_account.
- The make file should be executed in this format
cat -e -v -t makefile_name.mk - This program has worked in Linux-OS and Mac-OS
- In this program I have used my own files for
passwd.txtandshadow.txt - I have used basic encryption technique
- I have added the basic features of adduser(as shown in the pdf issued regarding the details of the project)