Mercurial > hg > Members > kono > nitros9-code
annotate docs/nitros9guide/attr.refentry @ 2406:54182c17afa1
Added BBS and subfolders
author | boisy |
---|---|
date | Sun, 24 Jan 2010 18:44:57 +0000 |
parents | 4dae346c4969 |
children |
rev | line source |
---|---|
133 | 1 <refentry id="attr"> |
2 <refnamediv> | |
3 <refname id="attrname">ATTR</refname> | |
4 <refpurpose>Change file security attributes</refpurpose> | |
5 </refnamediv> | |
6 | |
7 <refsynopsisdiv> | |
8 <cmdsynopsis> | |
1093 | 9 <command>attr</command> |
133 | 10 <arg choice="plain"> |
975
c565a4700689
The entitity replstart was replaced with <replaceable>
roug
parents:
143
diff
changeset
|
11 <replaceable>path</replaceable> |
133 | 12 </arg> |
975
c565a4700689
The entitity replstart was replaced with <replaceable>
roug
parents:
143
diff
changeset
|
13 <arg choice="opt">&repeatst; <replaceable>permission abbreviations</replaceable> &repeaten;</arg> |
133 | 14 </cmdsynopsis> |
15 </refsynopsisdiv> | |
16 | |
17 <refsect1><title>Description</title> | |
18 <para> | |
19 This command is used to examine or change the security permissions | |
1053
b5ff125a1d60
Since this book was only typeset in fixed width, single-font, they used
roug
parents:
975
diff
changeset
|
20 of a file. To enter the command, type <command>attr</command> followed by the |
133 | 21 pathlist for the file who's security permissions are to be changed, |
22 followed by a list of permissions which are to be turned on or off. | |
23 A permission is turned on by giving its abbreviation, or turned off | |
24 by preceding its abbreviation with a minus sign. Permissions not | |
25 explicitly named are not affected. If no permissions are given the | |
26 current file attributes will be printed. You can not change the | |
27 attributes of a file which you do not own (except for user zero, who | |
28 can change the attributes of any file in the system). | |
29 </para> | |
30 <para> | |
31 The file permission abbreviations are: | |
32 </para> | |
33 <literallayout> | |
34 d = Directory file | |
35 s = Sharable file | |
36 r = Read permit to owner | |
37 w = Write permit to owner | |
38 e = Execute permit to owner | |
39 pr = Read permit to public | |
40 pw = Write permit to public | |
41 pe = Execute permit to public | |
42 </literallayout> | |
43 | |
44 <para> | |
1053
b5ff125a1d60
Since this book was only typeset in fixed width, single-font, they used
roug
parents:
975
diff
changeset
|
45 The <command>attr</command> command may be used to change a directory file to a |
133 | 46 non-directory file if all entries have been deleted from it. Since the |
47 DEL command will only delete non-directory files, this is the only | |
48 way a directory may be deleted. You cannot change a non-directory | |
1093 | 49 file to a directory file with this command (see <command>makdir</command>). |
133 | 50 </para> |
51 <para> | |
1093 | 52 For more information see: <xref linkend="sec3.8"/>, <xref linkend="sec3.8.1"/> |
133 | 53 </para> |
54 </refsect1> | |
55 <refsect1><title>Examples</title> | |
56 <screen> | |
57 attr myfile -pr -pw | |
58 | |
59 attr myfile r w e pr rw pe | |
60 | |
61 | |
62 attr datalog | |
63 -s-wr-wr | |
64 </screen> | |
65 </refsect1> | |
66 </refentry> | |
67 |