Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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


Please Help Members By Posting Answers For Below Questions

What would you use to view contents of a large error log file?

874


How does a spinlock work?

890


What is the role of semaphores in linux?

837


What is the major advantage of a hash table?

872


Compare linux credit based algorithm with other scheduling algorithms?

967


mount -r is used to mount a file in read only mode. State Whether True or False?

910


what is linux operating system virus free?

914


How do I find my public ip address in linux?

901


Is kali linux legal?

928


Which is fastest linux distro?

891


What are daemons?

865


What are absolute and relative path in linux?

917


Which is best linux for beginners?

900


How can we check disk/device status/failure/errors using smartctl utility?

985


What is the minimum number of disk partitions required to install linux?

931