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..?

Answer Posted / 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



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

I want to configure production interface and manage interface, how to configure both interfaces in Linux. please post the answers

2034


How to Trouble shoot performance issue in RHEL administration ? please give to one example

2065


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

1246


What is the difference between ext3 and ext4?

2485


what is the gate of ftp server in redhat linux?

1909


Why is it suggested to disable journalism in ext4 filesystem?

3580


What is Hard mount and soft Mount?

1795


what is difference between  TFTP abd FTP?

2171


i installed clustering packages.When i try to run it getting LUCI error...what is it..??

2389


This question is belong to linux support. "one of my customer told to me, my application is getting slow response". how to resolve the issue. what are the steps you will follow to resolve the issue.

1901


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.

1566


How to catagories tickets in RHEL, which tickets are belong to PROBLEM, INCIDENT and CHANGE management? please given to me with examples

1783


1. User gaves df -h and the system get hanged. why ? 2. what is the hardlink and softlink mount ? 3. why is portmape should be started ? 4. what is nologin option 5. how to restrict users from accessing nfs ? 6. what is the difference between cpio and tar 7. what are the kernel parameters ? how to find out it ? 8. why we use sysctl.conf ? 9. if we gives init1 from multiuser runlevel, will it affect other users who already logged in to the system ? 10. what will be the available space to use after configuering raid5 with 5 disks each having 5gb spce ?

2785


why /etc/shadow file do not have any permission ?

1573