Logo 
Search:

Unix / Linux / Ubuntu Forum

Ask Question   UnAnswered
Home » Forum » Unix / Linux / Ubuntu       RSS Feeds

change file permission in unix

  Asked By: Jimmy    Date: Apr 06    Category: Unix / Linux / Ubuntu    Views: 1966
  

I want to change all the files permission in my home directory

Ex: I have 10 directory under my dir and each directory contains 10 files with different permission. I would like to change all of them and assign one permission.

/home/test - under test i have 10 directory and each directory contains 10 files.

how can i write unix script. I am able to change permission in one directory but would like to do all of them with script..

Share: 

 

2 Answers Found

 
Answer #1    Answered By: Vikram Aditya     Answered On: Dec 10

Go to the folder,

ex: /home/test - your home folder

then type, "chmod -R 777 *"

R-> recursively traverse the files and folders.
777 -> permission.
* -> all

All the best

 
Answer #2    Answered By: Jeffy Moorey     Answered On: Feb 26

good info. want to know some more details

 
Didn't find what you were looking for? Find more on change file permission in unix Or get search suggestion and latest updates.




Tagged: