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?

Answers were Sorted based on User's Feedback



How do you change permissions on a directory of file?..

Answer / gokul pradeep

To give permissions

chmod 777 /dir/files

it gives full credentials to that specified files.

Is This Answer Correct ?    5 Yes 0 No

How do you change permissions on a directory of file?..

Answer / 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

How do you change permissions on a directory of file?..

Answer / gaurav kumar

If we will create the directory(india) and create the file
in the directory(delhi) then we will run the command.
#chmod -R 666 india/delhi
So permession has been changed both dir and file's
permission will same.

Is This Answer Correct ?    1 Yes 0 No

How do you change permissions on a directory of file?..

Answer / mahendra

dependence on file user type

chown root /dir
chmod 777 /dir
chgrp root /dir

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Linux General Interview Questions

What are the 5 basic components of linux?

0 Answers  


In my server squid is configured,and in my client machine i am using proxy (connection settings... proxy server ip) i configured..in server orkut.com is blocked, is it possible to use orkut even when i am using proxy at client side.....

3 Answers  


Why linux have no virus?

0 Answers  


Do I need antivirus for linux?

0 Answers  


Explain about dns table?

0 Answers  


What is the difference between an environment and a local variable?

0 Answers  


How do you check if a particular service in running?

0 Answers  


How many default number of shells available and what are their names?

0 Answers  


Your default umask is 002. What does this mean?

0 Answers  


Is linux a kernel or os?

0 Answers  


What is linux boot partition?

0 Answers  


Which field is used to define the user’s default shell?

0 Answers  


Categories