This commit was manufactured by cvs2svn to create tag 'FreeBSD-release/1.0'.
[unix-history] / share / doc / usd / 11.notes / 4.7
CommitLineData
15637ed4
RG
1.\" Copyright (c) 1980 The Regents of the University of California.
2.\" All rights reserved.
3.\"
4.\" Redistribution and use in source and binary forms, with or without
5.\" modification, are permitted provided that the following conditions
6.\" are met:
7.\" 1. Redistributions of source code must retain the above copyright
8.\" notice, this list of conditions and the following disclaimer.
9.\" 2. Redistributions in binary form must reproduce the above copyright
10.\" notice, this list of conditions and the following disclaimer in the
11.\" documentation and/or other materials provided with the distribution.
12.\" 3. All advertising materials mentioning features or use of this software
13.\" must display the following acknowledgement:
14.\" This product includes software developed by the University of
15.\" California, Berkeley and its contributors.
16.\" 4. Neither the name of the University nor the names of its contributors
17.\" may be used to endorse or promote products derived from this software
18.\" without specific prior written permission.
19.\"
20.\" THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
21.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
22.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
23.\" ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
24.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
25.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
26.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
27.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
28.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
29.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
30.\" SUCH DAMAGE.
31.\"
78ed81a3 32.\" from: @(#)4.7 6.2 (Berkeley) 4/17/91
33.\" 4.7,v 1.2 1993/08/01 07:37:23 mycroft Exp
15637ed4
RG
34.\"
35.se "Modifying Access Rights for Many Notesfiles"
36
37 It is convenient to add entries to a large number of
38access lists simultaneously.
39The nfaccess program adds an access specification to each of
40a specified list of notesfiles.
41Nfaccess functions similarly to chmod(1).
42Nfaccess is invoked as:
43
44 nfaccess <access-right> notesfile [notesfile ...]
45
46The ``access-right'' is formatted as: ``type:name=mode''.
47Type can be any of ``user'', ``group'', or ``system'';
48capitalized variants are also valid.
49The ``type:'' specification can be omitted.
50``User'' is assumed in these cases.
51The ``mode'' field consists of a sequence of the
52characters ``d'', ``r'', ``w'', ``a'' and ``n''.
53These indicate director, read, write, answer (respond) and null
54access respectively.
55
56 Nfaccess requires user and group entries to be valid
57by looking for them in /etc/passwd and /etc/group.
58System entries are not checked for validity.
59Nfaccess will add the entry to the access list of the specified
60notesfiles.
61If an entry for that particular user, group or system exists,
62the new access right replaces the old access rights.
63The computed mode is an absolute mode; the previous value in
64the access list (if any) is replaced with the new mode.
65
66 Any user can run the nfaccess program.
67Nfaccess refuses to modify access lists for any notesfile
68where the user is not a director.
69The nfaccess program is stored in the notesfile utility
70directory, typically ``/usr/spool/notes/.utilities''.
71
72 Nfaccess is often used to remedy missing permissions
73in a number of notesfiles.
74One example is when the notesfile administrator is replaced;
75nfaccess is used to grant director access to the appropriate
76notesfiles (usually most of them).
77As new notesfiles are created, the access list can be tuned
78by placing lists of access-rights in the file
79``/usr/spool/notes/.utilities/access-template''.
80These access-rights are added to the default access list
81of newly created notesfiles.