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

How will see the hostname

3 Answers  


How do you check the no of user logged into the system

3 Answers  


If a User Account is locked,which file you need to check and how do you get to know at what time it has been locked.

4 Answers   CTS,


My solaris system has 16GB RAM and swap. /tmp is associated to swap. We use vmstat command to get used system memory. We observe that once we fill up /tmp, it reflects in vmstat command. My intention is only to get overall used memory in RAM. 1. Can you let me know the if there is a solaris command to just get used memory in RAM? 2. How is /tmp filling up associated to "free memory" in vmstat command?

2 Answers  


How to know actual capacity of Ethernet port by command line? (Sun Fire V480 and some one configured Eth interface as 100mbps and need to change to 1000mbps but How i would know that port is of capacity 1000mbps or not?

7 Answers   Softenger,






how do u configure the disk

5 Answers  


Difference between LDOM and Domain?

2 Answers   IBM,


If the system panic or system not booting

1 Answers  


How to remove the root mirror

2 Answers  


In veritas: which is the file to keep the information of subdisks, disk groups name, plex and volumes?

1 Answers   Wipro,


1. How do you replace a failed boot disk under meta in solaris? Step by step explanation? 2. How do you remove meta only for the root slice? remaining slices should run under meta? 3. what you would do if you want to replace a slice using metareplace option? 4. what is the significance of 51% state database replicas in SVM? 5. what are the common errors you find in Solaris Volume manager? 6. You have a boot disk under svm, the machine fails to boot and remains in ok prompt? what could be the possible reason? 7. metastat -p shows a metavolume needs replacement. Metavolume is a single way mirror only. Actually you find disk and metavolumes are ok and I/O is happening to the filesystems… how will you remove the metareplace message that comes out of metastat. 8. How to create a shared disk group in VxVM? 9. What is the difference between private and public regions in Veritas Volume manager? 10. what would you do if the private region of a particular disk group is full? What are the design considerations for the size of private region in Vxvm disk group? 11. How to replace a corrupt private region? in vxvm 3.5 and greater versions… 12. How would you convert a volume from gen to fsgen? why should you do that? 13. How can you unencapsulate a boot disk in VxVM? 14. How to identify multiple paths for a disk. 15. What is the difference between Vxdmp and EMC powerpath? 16. vxdisk -o alldgs list o/p shows some disk groups in braces… What does that signify? 17. what are the various layouts that are available in VxVM? 18.What is a layered volume? how to create it using vxmake? 19.How to quickly mirror a volume, if the volume is empty? 20. How to grow a volume? 21. What is the difference between failing and failed disks? 22. How to replace a failed disk in Veritas? 23. Plex is in a disabled state. How will you recover? what are the steps to follow? 24.what is the difference between detached and disassociate state of plexes? 25. Whats the boot process of VxVM? 26. Whats the difference between SVM and VxVM? What would you recommend to your clients? why? 27.What are the various clusters you have worked on? 28. Which cluster is better VCS or Sun cluster? 29. Compare and contrast VCS and Sun Cluster. 30.how will you start VCS service? What are the configuration files in VCS? 31. How would switch a service group? 32. How would you freeze a service group? 33. What is a Split brain scenario ?

2 Answers  


How to rename the old root disk. In this example, rootdisk is being renamed as rootold.

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)