# directory -> chmod 700 # file executable -> chmod 700 # file -> chmod 600 # You can apply this to directory that needs more secure permission # recursively. Like `~/.ssh`. `+` means run at once, not one by one. Like # `xargs`. find .private -type d -execdir chmod 700 '{}' + \ -or -type f -executable -execdir chmod 777 '{}' + \ -or -type f -execdir chmod 600 '{}' +