Answer Posted / ramunix123
By default umask value is 022. So don't change any default value in /etc/profile.
So, Sbrahman75 is right.
please check the below file.
bash-3.00# cat /etc/profile
#ident "@(#)profile 1.19 01/03/13 SMI" /* SVr4.0 1.3 */
# The profile that all logins get before using their own .profile.
trap "" 2 3
export LOGNAME PATH
if [ "$TERM" = "" ]
then
if /bin/i386
then
TERM=sun-color
else
TERM=sun
fi
export TERM
fi
# Login and -su shells get /etc/profile services.
# -rsh is given its environment in its .profile.
case "$0" in
-sh | -ksh | -jsh | -bash)
if [ ! -f .hushlogin ]
then
/usr/sbin/quota
# Allow the user to break the Message-Of-The-Day only.
trap "trap '' 2" 2
/bin/cat -s /etc/motd
trap "" 2
/bin/mail -E
case $? in
0)
echo "You have new mail."
;;
2)
echo "You have mail."
;;
esac
fi
esac
umask 022
PATH=$PATH:/opt/OV/bin:/var/opt/OV/bin/instrumentation:/opt/perf/bin:/var/opt/perf:/usr/sbin:/usr/local/bin
export PATH
USER=`/usr/xpg4/bin/id -u -n`
LOGIN=`/usr/bin/logname`
HISTFILE=/var/tmp/.ht/.sh_${USER}_${LOGIN}
HISTSIZE=10240
HISTFILESIZE=10240
export HISTFILE HISTSIZE HISTFILESIZE
trap 2 3
PATH=$PATH:/usr/local/bin:/usr/sbin:/usr/local/sbin;export PATH;
PATH=/usr/sbin:$PATH
export PATH
bash-3.00#
Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
What are the differences between the command line and graphical user interface?
Where do you get Alarm prompt?
Hi We have upgraded our sun machine from solaris 9 to solaris 10. Before upgradation the date command output(Solaris 9) Wed Oct 13 09:45:21 IST 2010 But after upgradation the output for date is as below(solaris 10). Wednesday, October 13, 2010 9:46:14 AM IST Looks like I need to change LC_TIME=C. can you please help me how to change it for permanently
please post step by step installation of packages from the EIS cd..
How to configure email notification in solaris 8? We are using netbackup 5
How can u find a file which is logged in last week?
How to create core dump and crash dump #coreadm .
what is the difference between solaris8 and solaris9 and solaris10
After first installation of Solaris 10, what and all the Securities We need to set and how ?
How to add a new LUN in exit disksets (metasets) in solaris please answer me step by step procedure?
What does pkgadd command do?
Which command is used to backup and restore solaris file system?
what are the alarms in solaris?
There are two nic cards on a sun server. I need to connect one nic to pupic ip and another nic to DMZ. Could you tell me how to configure step by step?
Write the steps involved in creating and executing a program to implement the “case” command.