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 ?    36 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 ?    14 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
 
Where is standard output usually directed?   2
will u plz send me the complete steps of installation of red hat linux on intel's core 2 duo processor?   1
What are main anti-spam features available in sendmail? CSC 1
commands regarding the adding of users into groups n different options with useradd...? IBM 5
How can you see all mounted drives?   9
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
What is the difference between RedHat linux and Fedora and Ubuntu? CSC 3
Which directory is closer to the top of the file system tree, parent directory or current directory?   3
How does the boot process[init levels] work on Linux? How is it different from Solaris?   3
tell me some of the Linux HotKeys do you know?   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
why accounting Software does not support on linux?   5
 
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