LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   file permision (https://www.linuxquestions.org/questions/linux-software-2/file-permision-103213/)

alexr186 10-12-2003 06:52 PM

file permision
 
How do u change the file permisions of a file an all of it's contents. I have a couple big folders, with a lot of single files with in them, i share with all my users and i want they all to read and write with the files. So is there away to change the files permisions of all the files. So i basically want to change the files permisions of many files at once. If you know how or of a program that does, i would a great help. thanks.

jailbait 10-12-2003 06:56 PM

"How do u change the file permisions of a file an all of it's contents."

Use the chmod command. The general form is something like:

chmod 755 /home/user/bigdir/* -R

see:
man chmod



___________________________________
Be prepared. Create a LifeBoat CD.
http://users.rcn.com/srstites/LifeBo...home.page.html

Steve Stites

alexr186 10-12-2003 07:36 PM

but isn't that for on file only, i need to change the access of hundreds of files at once. I could spend a weeking doing one at a time, there must be an easier way of doing it, like doing more then one at a time.

quatsch 10-12-2003 07:44 PM

notice the -R option at the end of what jailbait gave you. You can also write it as
chmod -R 755 {target file/dir}

The R stands for recursive. Take a look at man chmod.

alexr186 10-12-2003 08:56 PM

k
thanks


All times are GMT -5. The time now is 05:45 AM.