GoFuckYourself.com - Adult Webmaster Forum

GoFuckYourself.com - Adult Webmaster Forum (https://gfy.com/index.php)
-   Fucking Around & Business Discussion (https://gfy.com/forumdisplay.php?f=26)
-   -   How do I bulk chmod folder permissions in a directory via telnet? (https://gfy.com/showthread.php?t=532077)

mkx 10-25-2005 02:40 AM

How do I bulk chmod folder permissions in a directory via telnet?
 
I have over 1000 subfolders of a directory that I need to chmod to 777, how do I do this in putty?

blazin 10-25-2005 02:41 AM

chmod -R 777 folder

rickholio 10-25-2005 02:50 AM

Quote:

Originally Posted by mkx
I have over 1000 subfolders of a directory that I need to chmod to 777, how do I do this in putty?

If you want to set EVERYTHING to 777, you can just
Code:

chmod -R 777 /path/to/directory
If you want dirs only set to 777, use this:

Code:

find /path/to/directory -type d -exec chmod 777 {} \;
The space-backslash-semicolon ' \;' at the end there is important, so don't change the spacing or leave out the slash.

HTH. HAND.

mkx 10-25-2005 02:56 AM

thanks guys :)


All times are GMT -7. The time now is 10:11 PM.

Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc123