I'm trying to change the properties of folders/files recursively threw a script using chmod and chown, I know that one can just right click -> properties -> permissions -> change things the way I want them then apply to enclosed files, but I want to be able to do so with a script without opening folders and properties all the time.
so far I have the fallowing script that does not work:
Code: Select all
#!/bin/bash
sudo chown username:groupname ~/filename -R && sudo chmod -x ~/filename -R
read -p "finished"
anyway thanks in advance if you help me with this problem I'm having, I'm trying to optimise my time with scripts.