On Sat, Oct 19, 2002 at 02:58:01PM +0200, shmulik wrote: > > > Hi > Does anyone know where can I set the default umask in version 8, I > looked at profile but I couldnt find anything there >
Hi Shmulik, You can set the value of your shell's umask from any shell prompt. It is a built-in bash shell command. The preferred way to set it, is to add a umask command to the .profile or .bashrc file in your home directory. To change it system wide there is a file in the etc directory hierarchy where the default values for user shells are set. Its is "/etc/bashrc" but I recommend not setting umask there. Its current default value is probably the best one for system wide use. For specific groups of users you may want a slightly more open value but it shouldn't be needed most of the time. >From the bash man page: ====================================================================== 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 symbolic 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. ====================================================================== > THX > > Shmulik > > > > -- > redhat-list mailing list > unsubscribe mailto:redhat-list-request@;redhat.com?subject=unsubscribe > https://listman.redhat.com/mailman/listinfo/redhat-list > -- Jeff Kinz, Emergent Research, Hudson, MA. "[EMAIL PROTECTED]" "[EMAIL PROTECTED]" copyright 2002. Use is restricted. Any use is an acceptance of the offer at http://users.rcn.com/jkinz/policy.html. (o- -o) //\ eLviintuaxbilse /\\ V_/_ _\_V -- redhat-list mailing list unsubscribe mailto:redhat-list-request@;redhat.com?subject=unsubscribe https://listman.redhat.com/mailman/listinfo/redhat-list