Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


what are the default permissions for files and folders..?

Answers were Sorted based on User's Feedback



what are the default permissions for files and folders..?..

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

what are the default permissions for files and folders..?..

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

what are the default permissions for files and folders..?..

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

what are the default permissions for files and folders..?..

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

what are the default permissions for files and folders..?..

Answer / navatha

default value depends on UMASK value,ignorte the previous
answer

Is This Answer Correct ?    6 Yes 6 No

what are the default permissions for files and folders..?..

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

what are the default permissions for files and folders..?..

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

what are the default permissions for files and folders..?..

Answer / navatha

by default it is 640 both for file and dir

Is This Answer Correct ?    1 Yes 24 No

Post New Answer

More Linux AllOther Interview Questions

Without Using $date -dyesterday. How I get the yesterday's date ?

3 Answers   DELL,


What is the difference between ext3 and ext4?

0 Answers   IBM,


what is NIS Server...?

2 Answers   IBM,


Hi all Could u plz tell me how I can get UNIX/Linux Certification

2 Answers   Accenture,


What are the main differences between RHEL4 & RHEL5?

11 Answers  


How to recover a deleted file in linux ?

5 Answers  


What are the differences between FTP , NFS , SAMBA servers explain separately.

0 Answers  


how can i make an user to nologin without locking the account for the user

7 Answers   CSS, CSS Corp,


How to check all open ports on linux machine and block unsed ports????????

7 Answers   Tech Mahindra,


I have accidently deleted my fstab... how do i recover/ regenerate the file?????? in rescue mode i cannot create a new file since the filesystem is readonly and could not mount in readwrite mode ?????????

6 Answers   IBM,


i want some basic level enterview questions can any one can help me in this

1 Answers   TCL,


cups stands for..?

6 Answers   IBM,


Categories