recursive chmod in command-line?

Advertisement

jedduff
Joined:
Posts:
1

recursive chmod in command-line?

After a couple hours of searching and testing, I didn't found how to do recursive chmod with the command-line.

this is my script :

open scp://USERNAME:PASSWORD@192.168.1.251
cd /mnt/FILESERVER/
chmod 777 * <<--- not recursive :(

How can I set all files and all sub directories with 777?

I can use ftp, sftp or scp

thanks :)

Reply with quote

Advertisement

martin
Site Admin
martin avatar
Joined:
Posts:
41,518
Location:
Prague, Czechia

Re: recursive chmod in command-line?

chmod is recursive. It has some limitations with SCP. Though I'm not sure if this should be your case. Anyway, it is worth trying SFTP instead.

Reply with quote

Advertisement

You can post new topics in this forum