How to change file resolution for all subdirectories (CHMOD)

I have a directory inside which I have several directories, each of which contains several image files.

I want to change the file permissions to 755 for all subdirectories and image files inside them.

I use WinSCP to connect to the server. So, how can I change the file permissions at one time, since I cannot continue to change one after the other, since there are many files.

+7
source share
5 answers

If you have access to the server on the server, you can execute

chmod -R 755 {DIR} 

-R stands for recursive.

Edit: if you have access only through WinSCP, you can select the files / directories you want and change permissions recursively

+11
source

If you have shell access to your server, you can chmod through the shell.

You send with -R :

 chmod 755 -R ... 

I also like to print files, so just add -v if you want:

 chmod 755 -Rv ... 
+3
source

You can do this through FileZilla. Go to FileZilla and right-click on the folder and click on permissions to change, and below you will find the ability to change permissions for subdirectories and files.

+2
source
 chmod -R 704 yourDirectoryName 

Owner can: read a record, Group: Teacher: read sentences

+1
source

I resolve like this:

set ftpdir to local with curlftpfs ( curlftpfs tutorial ):

  curlftpfs -v IP /mnt/ftp/ -o user=<user>:<pass> 

and

 chmod 755 /mnt/ftp/ -R 
0
source

All Articles