Project on Linux Programming (CSE207)
[pic]
Project—SIMULATION OF CHMOD,CHOWN AND CHGRP USING C PROGRAMMING AND WITHOUT USING ANY INBUILT COMMAND.
Submitted by -- Submitted to aman Miss. Anjlee Verma
INTRODUCTION TO STUDY/COURSE
The present course Linux programming deals with various aspects of a very widely used operating system i.e. LINUX. Actually LINUX is not an OS in itself but a kernel i.e., Heart of any operating system. Many OS use Linux kernel to interact with hardware. Some examples are
FEDORA
REDHAT
DEBIAN
UBUNTU
and many more…
In this course we study about the internal variables and commands of the operating system which it uses to interact with the hardware and also use them in any way we like. Also I learnt to simulate some commands which were already present in LINUX.
The course also deals with teaching the basic principles of any LINUX kernel using operating system. Thus we can code in either shell scripts or create a C program to establish our task.
INTRODUCTION TO TOPIC
The topic of my project is to simulate commands i.e.,
➢ Chmod
➢ Chown
➢ Chgrp
1: Chmod command-: It is used to change the permissions of the file for the user who owns it, the group to which it belongs and others.
Syntax:
chmod permissions filename
permission type:
a) Numeric –
Read =4
Write=2
Execute=1
b) Alphabetic
Read=r
Write=w
Execute=e
2: Chown command-: It is used to change the ownership of the given file
Syntax:
chown username filename
3:Chgrp command-:It is used to change the group of the given file
Syntax:
chgrp groupname filename
PROBLEM TO BE SOLVED
Create a shell script or a c program to simulate the behavior of following linux commands