:: 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
commands regarding the adding of users into groups n different options with useradd...? IBM 5
Which directory is closer to the top of the file system tree, parent directory or current directory?   3
what is the difference between unix and linux...   7
Where is standard output usually directed?   2
How can i recover the linux system after it was crashed by step by step process.. IBM 3
how to install linux OS? pls send step by step   3
My Linux server in the two lan card one lan card is ok working but second lan card after restart daily lan card deactivate and then manual activate then properly working but after restart repeat this problem.(Fedora O.S.) Pls tell me solved this problem.   4
How to build new filesystem ? and what is irig file system?   3
what is difference between inetd and xinetd   2
How can you see all mounted drives?   9
How to send automated email to a set of people at fixed time ? Accenture 3
User unable to login in server then how can u troubleshooting it? Example: server at Bangalore. in that server two users try to login in server. 1st user able to login. but second user unable to login so how can troubleshoot it ? Oracle 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.   ::