# .bashrc
# User specific aliases and functions
# Source global definitions
if [ -f /etc/bashrc ]; then
. /etc/bashrc
fi# fif=Find in File (maik3531)
# e.g. to search for the word 'pencil' in all documents of a given
# directory open a konsole, cd to the directory, and run: fif "pencil"
fif() {
find . -type f -print | xargs grep --color=auto "$1" 2> /dev/null
}
It is referencing /etc/bashrc and that has:
if [ "`id -gn`" = "`id -un`" -a `id -u` -gt 99 ]; then
umask 002
else
umask 022
fi
So apparently it is using the first choice even though /etc/profile shows:
# /etc/profile -*- Mode: shell-script -*-
# (c) MandrakeSoft, Chmouel Boudjnah <
chmouel@mandrakesoft.com>
loginsh=1
if [ "$UID" -ge 500 ] && ! echo ${PATH} |grep -q /usr/games ; then
PATH=$PATH:/usr/games
fi
umask 022USER=`id -un`
LOGNAME=$USER
MAIL="/var/spool/mail/$USER"
HISTCONTROL=ignoredups
HOSTNAME=`/bin/hostname`
HISTSIZE=1000
if [ -z "$INPUTRC" -a ! -f "$HOME/.inputrc" ]; then
INPUTRC=/etc/inputrc
fi
I don't understand this from the /etc/bashrc
if [ "`id -gn`" = "`id -un`" -a `id -u` -gt 99 ];That is probably determining the umask setting.
then
umask 002
else
umask 022
fi