"Fossies" - the Fresh Open Source Software Archive

Member "rear-2.7/usr/share/rear/output/default/010_set_umask.sh" (14 Jul 2022, 303 Bytes) of package /linux/privat/rear-2.7.tar.gz:


As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) Bash source code syntax highlighting (style: standard) with prefixed line numbers and code folding option. Alternatively you can here view or download the uninterpreted source code file.

    1 # As umask can vary on different systems, we've to set it to a secure value
    2 # before we're start writing any files. With a defined umask of 0077, further
    3 # files will automatically be written with root permissions only.
    4 #
    5 # Author: dbarton, confirm IT solutions
    6 #
    7 
    8 Log "Setting umask to 077"
    9 umask 0077