Posted by : FixNox Wednesday, 12 September 2012

Umask is the number subtracted from the standard permissions when creating a file. Example: each new folder is by default created with 777, so when umask is set to 022, the result is that the permissions will be 777 – 022 = 755.

Most of the time umask will already be set by your distro to 022 but you can change it if you like. You can see what umask value is set with:


# umask
0022

If you want to change umask for temporally,

# umask 0044

Note: These value will stay until you log out and then return to its default value.
To make it permanent, edit /etc/bashrc or to your ~/.bash_profile.

{ 1 comments... read them below or add one }

  1. An amazing piece of information about Linux. I like to know what is the difference between Linux website hosting and Windows web hosting?
    Linux website hosting

    ReplyDelete

Total Pageviews

Portfolio

Accordition

Recent Comments

Text SlideShow

Contact Info

Followus

Introduction

Featured

About Us

Contact Form




Popular Posts

- Copyright © Redback Solutions -- Powered by Blogger - Designed by Redback Studios -