What is default permission of files and directory?

Answers were Sorted based on User's Feedback



What is default permission of files and directory?..

Answer / sbrahman75

file: 644

directory: 755

Is This Answer Correct ?    8 Yes 1 No

What is default permission of files and directory?..

Answer / saurabh singh

wrong answer you have mentioned dear Sbrahman .

Correct answer is

file : 666

dir: 777

What you have mentioned is happens when the umask value in
your machine set to 0022 . it substact 022 from file and
dir defaults value give above value 644 and 755...

Is This Answer Correct ?    4 Yes 4 No

What is default permission of files and directory?..

Answer / 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

What is default permission of files and directory?..

Answer / bond james bond

saurabh tusi gre8 ho... lage raho.......

Is This Answer Correct ?    0 Yes 1 No

Post New Answer

More Solaris Commands Interview Questions

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

0 Answers   IBM, Wipro,


If plex is failed then how can you recover it?

1 Answers   EDS,


what is the back up software we r using in solaris 8,9,10

2 Answers  


If NIC card is failed how can troubleshoot it?

2 Answers   EDS,


How to find the network card speed

3 Answers  






please post few interview questions ? or any url related to solaris

0 Answers  


How to find the hardware configuration

1 Answers  


how to find NIC card type. is there any command to display the card type when it not plumbed.

4 Answers   Thomson Reuters,


How can you search for commands at the boot prompt if you only know part of the command?

9 Answers  


Which command to lock the user Account?

3 Answers  


How to configure root mirroring in veritas volume manager

5 Answers   L&T,


How many ufsdump level

1 Answers  


Categories
  • Solaris Commands Interview Questions Solaris Commands (360)
  • Solaris Threads Interview Questions Solaris Threads (9)
  • Solaris IPC Interview Questions Solaris IPC (30)
  • Solaris Socket Programming Interview Questions Solaris Socket Programming (3)
  • Solaris System Calls Interview Questions Solaris System Calls (25)
  • Solaris General Interview Questions Solaris General (170)
  • Solaris AllOther Interview Questions Solaris AllOther (297)