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">
|
|
11 &replstart;path&replend;
|
|
12 </arg>
|
|
13 <arg choice="opt">&repeatst; &replstart;permission abbreviations&replend; &repeaten;</arg>
|
|
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
|