what are the default permissions for files and folders..?
Answers were Sorted based on User's Feedback
Answer / sachin goel
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 ? | 38 Yes | 1 No |
Answer / rajkumar.p
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 ? | 15 Yes | 0 No |
Answer / abi
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 |
Answer / susheel narayan singh
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 |
Answer / navatha
default value depends on UMASK value,ignorte the previous
answer
Is This Answer Correct ? | 6 Yes | 6 No |
Answer / srinivas antarvedi
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 |
Answer / saurabh singh
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 |
how do you configure linux system as a router?
1.how to know cpu information on linux system? 2.how to hardware information on linux system? 3.if we add the new user what are the files will be changed? 4.how to remove the cache in squid server ? 5.how to know ur useing 32bit r 64 bit os ? 6.at booting process at init level which file it is reads? 7.if ur system performance is show what can u do ? 8.if ur file system corrupted what can u do ? fsck also not working? 9.how did u do health check in linux? 10.how did u check system performance in linux? 11.how did u create NIS server? give me the steps ? 12.how did u add a packages in linux ? 13.how did u know depended packages for any package useing rpm how u know? 14.how did you monitor cronjobs in linux ? 15.what is the use of logroted? and how did u do ? 16.port no is already in use so what canu do for that in http? 17.how to samba configurated are not ? there are any command for that ? 18.how to create a NTP Client using commands ? not as graphical... 19.how to know how many members are using any service? like ftp are any other services? 20.what is the differences between cmp,diff,comm commands?
How to Create NIS Server And NIS Client? Explain With Example?
I want to configure production interface and manage interface, how to configure both interfaces in Linux. please post the answers
what is difference between inetd and xinetd
What is the use of DNS Server? Name other servers works same as like DNS?
As a system admin i want to know some things what are the troubleshooting issues we are facing frequently and what are the tickets will be raised.
What is the other method of installing Linux O.S other than Text, GUI mode? Why we prefer that for installation of Linux in Real time?
How is the difference between ftp and sftp ? and explain how to create ftp server and sftp server with example ?
2 Answers Bank Of America, IBM,
What is Hard mount and soft Mount?
How to give 2 different gateway IP addresses for 2 different interfaces in same system ?
commands regarding the adding of users into groups n different options with useradd...?