Mercurial > hg > Members > kono > nitros9-code
annotate docs/nitros9guide/attr.refentry @ 1020:c1a5613ffe7b
changes
author | boisy |
---|---|
date | Thu, 06 Mar 2003 01:41:03 +0000 |
parents | c565a4700689 |
children | b5ff125a1d60 |
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> | |
9 <command>ATTR</command> | |
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 | |
20 of a file. To enter the command, type "ATTR" followed by the | |
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> | |
45 The ATTR command may be used to change a directory file to a | |
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 | |
49 file to a directory file with this command (see MAKDIR). | |
50 </para> | |
51 <para> | |
52 For more information see: 3.8, 3.8.1 | |
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 |