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

Which daemon controls the print spooling process?

1069


Explain /proc file system?

876


How can you run a linux program in the background simultaneously when you start your linux server?

1090


Where is wget installed on linux?

877


To implement new application on IBM z/10. Which of the following options need to be considered if it to be implemented in Linux?

855


What are the advantages of arch linux?

895


Are semaphores atomic?

821


How can you enhance the security of the password file?

820


How to switch to a previously used directory?

902


Is linux a scripting language?

903


How do I see what services are running in linux?

911


How can we find the current value for shell variables?

928


You have a large spreadsheet located in the /data directory that five different people need to be able to change. How can you enable each user to edit the spreadsheet from their individual home directories?

853


How will you restrict ip so that the restricted ip’s may not use the ftp server?

963


How do mutexes work?

859