ALLInterview.com :: 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                      
Google
   
 
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)
Question
what are the default permissions for files and folders..?
 Question Submitted By :: Linux-AllOther
I also faced this Question!!     Answer Posted By  
 
Answer
# 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 ?    35 Yes 1 No
Sachin Goel
 
Answer
# 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
755(777-022).

Regards,
Rajkumar.
 
Is This Answer Correct ?    13 Yes 0 No
Rajkumar.p
 
 
 
Answer
# 3
these are for root user...bt 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
Abi
 
Answer
# 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
default)

So
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)
ans-644

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

Note:
read=4
write=2
execute=1

> if you want to change umask setting then edit -
# vim /etc/bashrc (file)
 
Is This Answer Correct ?    3 Yes 0 No
Susheel Narayan Singh
 
Answer
# 5
default value depends on UMASK value,ignorte the previous
answer
 
Is This Answer Correct ?    6 Yes 6 No
Navatha
 
Answer
# 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
 
Answer
# 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
 
Answer
# 8
by default it is 640 both for file and dir 
Is This Answer Correct ?    1 Yes 24 No
Navatha
 

 
 
 
Other Linux AllOther Interview Questions
 
  Question Asked @ Answers
 
You want to create a compressed backup of the users' home directories. What utility should you use?   5
What is LILO? Cisco 11
What is the difference between home directory and working directory? Accenture 9
What is the use of DNS Server? Name other servers works same as like DNS?   2
Where is standard output usually directed?   2
what is NIS Server...? IBM 2
Tell me the 5 differences between Linux and Unix?   4
in linux gui desktop icon was lost how con u back this icons   2
Who owns the data dictionary?   2
How to check all open ports on linux machine and block unsed ports???????? Tech-Mahindra 7
what are acl permissions..? what is automation of jobs..? IBM 5
How to send automated email to a set of people at fixed time ? Accenture 3
 
For more Linux AllOther Interview Questions Click Here 
 
 
 
 
 


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

ALLInterview.com   ::  KalAajKal.com