The Monday 2005-01-10 at 16:27 -0600, Ryan McCain wrote:
Im using SLES 8. My system umask is set to 022. When a file is created the permissions are set to -rw-r--r--. How can I make it so that any new file created is executable by the owner?
_any_ new file executable? I would think that to be a security risk... umask [-p] [-S] [mode] The user file-creation mask is set to mode. If mode begins with a digit, it is interpreted as an octal number; otherwise it is interpreted as a symbolic mode mask similar to that accepted by chmod(1). If mode is omitted, the current value of the mask is printed. The -S option causes the mask to be printed in sym bolic form; the default output is an octal number. If the -p option is supplied, and mode is omitted, the output is in a form that may be reused as input. The return status is 0 if the mode was successfully changed or if no mode argument was supplied, and false otherwise. The system default is set in /etc/profile: umask 022 -- Cheers, Carlos Robinson