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 |
In Linux(RHEL) server have two users with same name. one is local user and second one is NIS user. if you login the server which user will login (local or NIS)
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?
Give a Linux shell command to find all files in a directory which contain ip addresses.
Tell me the 5 differences between Linux and Unix?
What are the differences between FTP , NFS , SAMBA servers explain separately.
Friends, I don't have enough free space in root directory. but in home directory I have 40gb free. So I can not install anything in root directory (which occupies more space) Please suggest me If there is any possibility to increase the root directory size by minimising the home directory's.
what is the difference between NIS and DNS...?
how can i create samba server in fedora 9.0 ? and domain/LDAP controller! clilent side is windows pc .?
What is the use of DNS Server? Name other servers works same as like DNS?
will u plz send me the complete steps of installation of red hat linux on intel's core 2 duo processor?
How to findout, if the user is local user or NIS user in the Linux (RHEL)?
why you are using nis server