forked from Abhishek4848/delgroup
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
0f5c85b
commit 9361e1a
Showing
1 changed file
with
20 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,23 @@ | ||
# delgroup | ||
|
||
*Program in C to mimic the “delgroup” command on Linux. This command will delete a group. <br /> | ||
*It handles 2 files “gshadow” and “group”. Both these files are in some folder | ||
specified by an environment variable PFILE. <br /> | ||
*The program takes all arguments as command line arguments<br /> | ||
- Program in C to mimic the “delgroup” command on Linux. This command will delete a group. | ||
- It handles 2 files “gshadow” and “group”. Both these files are in some folder specified by an environment variable PFILE. | ||
- The program takes all arguments as command line arguments | ||
|
||
Instructions to execute the Program:<br /> | ||
i.)The two files as mentioned in the question should be present in a folder and change the path to the file accordingly prior to execution.<br /> | ||
ii.)Place all the program files in same folder.<br /> | ||
iii.)Use "mingw32-make -f makefile.mk" in windows and "make -f makefile.mk" in linux systems to execute the program.<br /> | ||
iv.)Then "./a.exe" or "./a.out" depending on OS to run the program<br /> | ||
v.)After compilation type "delgroup groupname" to execute the program successfully.<br /> | ||
##Instructions to execute the Program: | ||
1. Clone this repository | ||
``` | ||
git clone https://github.com/Abhishek4848/delgroup.git | ||
``` | ||
2. The two files as mentioned in the question should be present in a folder and change the path to the file accordingly prior to execution. | ||
3. Executing the program<br /> | ||
Windows | ||
``` | ||
mingw32-make -f makefile.mk | ||
```<br/> | ||
Linux<br /> | ||
``` | ||
make -f makefile.mk | ||
``` | ||
4. hen "./a.exe" or "./a.out" depending on OS to run the program | ||
5. After compilation type "delgroup groupname" to execute the program successfully. |