Sunday, November 10, 2019

Access permission


1.       chmod
Type
Access permission
User
Group
Other
Directory
d
rwx
r-x
r--
File
-
r-x
r-x
r--
command
u+(access per.)
g+(access per.)
o+(access per.)


Description
Letter representation
Numerical value
readable
r
4
writable
w
2
executable
x
1

Ø  chmod numericalValue filename.fileFormat >>>Ex: chmod 777 file1.txt
Ø  chmod command+letterRepresentation filename.fileFormat >>>Ex: chmod g+w file1.txt

2.       chwon
Ø  chown -R userName:groupName directoryName -: to set a user from the related group as the owner of related directory
>>>Ex: chown -R daniel:admins dir1


No comments:

Post a Comment

fork() - Theory

fork() is used create a new child process. Ø   No arguments Ø   Process ID of the child process Ø   After the execution of fork() command ...