Initial commit for Tizen
[profile/extras/shadow-utils.git] / man / login.defs.d / UMASK.xml
1 <!--
2    Copyright (c) 1991 - 1993, Julianne Frances Haugh
3    Copyright (c) 1991 - 1993, Chip Rosenthal
4    Copyright (c) 2007 - 2009, Nicolas François
5    All rights reserved.
6   
7    Redistribution and use in source and binary forms, with or without
8    modification, are permitted provided that the following conditions
9    are met:
10    1. Redistributions of source code must retain the above copyright
11       notice, this list of conditions and the following disclaimer.
12    2. Redistributions in binary form must reproduce the above copyright
13       notice, this list of conditions and the following disclaimer in the
14       documentation and/or other materials provided with the distribution.
15    3. The name of the copyright holders or contributors may not be used to
16       endorse or promote products derived from this software without
17       specific prior written permission.
18   
19    THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
20    ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
21    LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A
22    PARTICULAR PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL THE COPYRIGHT
23    HOLDERS OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
24    SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
25    LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
26    DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
27    THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
28    (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
29    OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
30 -->
31 <varlistentry>
32   <term><option>UMASK</option> (number)</term>
33   <listitem>
34     <para>
35       The file mode creation mask is initialized to this value. If not
36       specified, the mask will be initialized to 022.
37     </para>
38     <para>
39       <command>useradd</command> and <command>newusers</command> use this
40       mask to set the mode of the home directory they create
41     </para>
42     <para condition="no_pam">
43       It is also used by <command>login</command> to define users' initial
44       umask.  Note that this mask can be overriden by the user's GECOS
45       line (if <option>QUOTAS_ENAB</option> is set) or by the
46       specification of a limit with the <emphasis>K</emphasis> identifier
47       in <citerefentry><refentrytitle>limits</refentrytitle>
48       <manvolnum>5</manvolnum></citerefentry>.
49     </para>
50   </listitem>
51 </varlistentry>