So i have about 600gb of data.. in which there are alot of directories and alot of files.. Im trying to put this on a ftp server.. So i want to set the permissions on the directories to be 755 and the permission on the files to be 644. So i used:
and
The command for the files seemed to work on the majority of the files.. But the one for directories worked for like 30% of my diretories.. Can you guys recommend another way of doing this.. To make sure "all" my files are set to 644 and "all" my directories are set to 755... Also the folders that are not getting change have a 777 permission. Also im running this command from the main directory
Code:
find . -type d -exec chmod 755 {}\;
Code:
find . -type f -exec chmod 644 {}\;
The command for the files seemed to work on the majority of the files.. But the one for directories worked for like 30% of my diretories.. Can you guys recommend another way of doing this.. To make sure "all" my files are set to 644 and "all" my directories are set to 755... Also the folders that are not getting change have a 777 permission. Also im running this command from the main directory