File permissions in bash scripting
Can you guys give me a simple bash script to set the file permissions of the newly created files to 750 if not then set to it.Thanks.
|
Quote:
|
Hi,
you can check and set file permissions with a one liner like. Code:
#/bin/sh Evo2. |
Hi,
Will the below script helps #!/bin/bash find <folder location> -type d -perm 750 find <file location> -type f -perm 640 fi; |
Why aren't you setting your umask? That's what it's for.
|
All times are GMT -5. The time now is 10:05 PM. |