:: Home Page            
 Advertise your Business Here     
Browse  |   Placement Papers  |   Company  |   Code Snippets  |   Certifications  |   Visa Questions
Post Question  |   Post Answer  |   My Panel  |   Search  |   Articles  |   Topics  |   ERRORS new
   Refer this Site  Refer This Site to Your Friends  Site Map  Bookmark this Site  Set it as your HomePage  Contact Us     Login  |  Sign Up                      
Categories >> Software >> Operating Systems >> Linux >> Linux AllOther


 Linux Commands interview questions  Linux Commands Interview Questions (197)
 Linux Threads interview questions  Linux Threads Interview Questions (12)
 Linux IPC interview questions  Linux IPC Interview Questions (14)
 Linux Socket Programming interview questions  Linux Socket Programming Interview Questions (5)
 Linux System Calls interview questions  Linux System Calls Interview Questions (43)
 Linux General interview questions  Linux General Interview Questions (74)
 Linux AllOther interview questions  Linux AllOther Interview Questions (106)
what are the default permissions for files and folders..?
 Question Submitted By :: Linux-AllOther
I also faced this Question!!     Answer Posted By  
# 1
By default it is 644 = file and 755 = dir , but when u
create and file / dir that time the permission of these
decides by the value called Umask in your system
Is This Answer Correct ?    36 Yes 1 No
Sachin Goel
# 2
These permissions are depends upon the umask value. By
default in Linux umask value is 022. So Default file
permission is 644(666-022) & Default directory permission is

Is This Answer Correct ?    14 Yes 0 No
# 3
these are for root for normal users i think they
are 664 for file and 775 for directories.(666-002=664 and
777-002=775).therefore for root user the umask is 022 and
for normal users the umask is 002.
Is This Answer Correct ?    8 Yes 0 No
# 4
The umask of user whose uid is 0 to 100 is 022 (by default)
The umask of user whose uid is above then 100 is 002 (by

1- The permission of file and directory create by user
whose uid is 0 to 100
dir permission is full permission - umask=(777-022)
ans- 755
file permission is dir permission - execute=(755-111)

2- The permission of file and directory create by user
whose uid is above to 100
dir permission is full permission - umask=(777-002)
file permission is dir. permission - execute=(775-111)


> if you want to change umask setting then edit -
# vim /etc/bashrc (file)
Is This Answer Correct ?    3 Yes 0 No
Susheel Narayan Singh
# 5
default value depends on UMASK value,ignorte the previous
Is This Answer Correct ?    6 Yes 6 No
# 6
they differ based on user type.

]# check umask from home directory

file 0666-umask
directory 0777-umask
Is This Answer Correct ?    4 Yes 8 No
Srinivas Antarvedi
# 7
By defauls it is 666 = file and 777 = dir , but when u
create and file / dir that time the permission of these
decides by the value called Umask in your system .

Hope it ask your query
Is This Answer Correct ?    5 Yes 16 No
Saurabh Singh
# 8
by default it is 640 both for file and dir 
Is This Answer Correct ?    1 Yes 24 No

Other Linux AllOther Interview Questions
  Question Asked @ Answers
What text filter can you use to display a binary file in octal numbers?   1
Hi all Could u plz tell me how I can get UNIX/Linux Certification Accenture 2
someone already asked 'what is diff between unix & Linux' can I ask the same but more nuanced...I have 7 years app support of unix, have never seen Linux BUT need to bluff my way through in an interview i e say that I have use Linux. What are the most important things I need to know?   1
How to apply patch for multiple servers . IBM 1
what is meant by mysql clustering   2
why you are using nis server   2
When you install RedHat what is the kernel mode ? What is kernel compilation / upgrade ? IBM 4
How do i check which nfs version I am using ???????? CybAge 9
How to recover a deleted file in linux ?   5
what is the difference between NIS and DNS...? IBM 4
what is memory mapped / IO mapped ? Which calls used for this to access any hardware address in linux device driver ? Broadcom 3
Without using w command how can Iknow that who are users logged in and what they are doing and whether they are idle or running mode?   4
For more Linux AllOther Interview Questions Click Here 

Copyright Policy  |  Terms of Service  |  Articles  |  Site Map  |  RSS Site Map  |  Contact Us
Copyright 2013  All Rights Reserved.   ::