How do you change permissions on a directory of file?
Answer Posted / bhaskar
To change permission on a file we can use chmod command.
Only thing to remember that to change a file permission one
must be the owner of that file or root in that system.
the typical format of chmod is
chmod <permissions> <filename(s)>
e.g. chmod +777 examplefile
The above command will provide read, write and execute
permission to all in the file examplename.
value for read is 4
write is 2
execute is 1
now to give all permissions it becomes 4+2+1=7
first digit refers to the permission of the owner.
second digit refers to the group permission and last digit
refers to permission to all
Is This Answer Correct ? | 2 Yes | 0 No |
Post New Answer View All Answers
What is semaphore explain with example?
Is everything in linux a file?
What is the role of kudzu?
How can we describe a stateless linux server and what are its features?
Which linux is easiest to use?
What is the scripting language used in linux operating systems?
How to uninstall software with the command line in linux?
Tell us the difference between telnet and ssh?
How do you check permissions of each directory to a file?
Is linux the future of gaming?
What is critical section linux?
What is a shebang line?
Does kali linux need antivirus?
What is deadlock example?
Do you need antivirus with linux?