NWGRANT(8)
NAME
nwgrant - Add Trustee Rights to a directory
SYNOPSIS
nwgrant [ -h ] [ -S server ] [ -U user name ] [ -P pass-
word | -n ] [ -C ] [ -o object name ] [ -t type ] [ -r
rights ] directory
DESCRIPTION
nwgrant adds the specified bindery object with the corre-
sponding trustee rights to the directory.
nwgrant looks up the file $HOME/.nwclient to find a file
server, a user name and possibly a password. See
nwclient(5) for more information. Please note that the
access permissions of $HOME/.nwclient MUST be 600 for
security reasons.
OPTIONS
-h
-h is used to print out a short help text.
-S server
server is the name of the server you want to use.
-U user
user is the user name to use for login.
-P password
password is the password to use for login. If neither
-n nor -P are given, and the user has no open connec-
tion to the server, nwgrant prompts for a password.
-n
-n should be given if no password is required for the
login.
-C
By default, passwords are converted to uppercase before
they are sent to the server, because most servers
require this. You can turn off this conversion by -C.
-o object name
The name of the object to be added as trustee.
-t object type
The type of the object. Object type must be specified
as a decimal value. Common values are 1 for user
objects, 2 for group objects and 3 for print queues.
Other values are allowed, but are usually used for spe-
cialized applications.
-r rights
You must tell nwgrant which rights it should grant to
the bindery object. The new rights for the object is
specified by rights, which is the sum of the following
hexadecimal individual rights values:
00 = no access
01 = read access
02 = write access
04 = open access
08 = create access
10 = delete access
20 = ownership access
40 = search access
80 = modify access
for a possible total of "ff" for all rights.
directory
You must specify the directory to which to add the
object as trustee. This has to be done in fully quali-
fied NetWare notation.
Example:
nwgrant -o linus -t 1 -r ff 'data:home\linus'
With this example, user linus is given all rights to
his home directory on the data volume. This example
assumes the existence of the file $HOME/.nwclient.
AUTHORS
nwgrant was written by Volker Lendecke with the corre-
sponding NetWare utility in mind. See the Changes file of
ncpfs for other contributors.