Chmod Permissions To Directories Only
RegisterLogin
Chmod Permissions To Directories Only
Post Description: This Post Will Show You How You Can Change Permissions Using Chmod In Unix/linux Command In The Shell For Changing The Permissions To A Directory Or All Directories Including Sub-directories Within Another Directory
Tags: Chmod, Permissions, To, Directories, Only
This Post Was Posted On Feb 07, 2010 By Webune Support #3117
Post Description: This Post Will Show You How You Can Change Permissions Using Chmod In Unix/linux Command In The Shell For Changing The Permissions To A Directory Or All Directories Including Sub-directories Within Another Directory
Tags: Chmod, Permissions, To, Directories, Only
This Post Was Posted On Feb 07, 2010 By Webune Support #3117
Chmod Permissions To Directories Only by Webune Support
Webune provides Dedicate Linux Server with Excellent Service and Support!!!
this post will show you how you can change permissions using chmod in unix/linux command in the shell for changing the permissions to a directory or all directories including sub-directories within another directory
if you are a Linux administrator or just starting to program in linux you will find this information helpful.
so lets start this tutorial
lets say in our example, we want to change the linux permissions from 775 (drwxrwxr-x) to 777 (drwxrwxrwx) to all the downloads directory located at the following path: /var/www/web/public_html/downloads/
we can do it with just one command:
SHELL COMMAND:
find /var/www/web/public_html/downloads/ -type d -print0 |xargs -0 chmod 777
now when you list all the sub-directories and file, you will see that the permissions under /var/www/web/public_html/downloads/ have been changed to 777, except the files remain unchanged
hope that helps
Leave Your Comments
Related Pages: [Add Your Website]
Post New Topic
©2011 Webune Forums - Mon Dec 19, 2011 6:56 pm
Powered by: Webune Forums V3
Powered by: Webune Forums V3