1NWGRANT(8)                          nwgrant                         NWGRANT(8)
2
3
4

NAME

6       nwgrant - Add Trustee Rights to a directory
7

SYNOPSIS

9       nwgrant [ -h ] [ -S server ] [ -U user name ] [ -P password | -n ] [ -C
10       ] [ -o object name ] [ -t type ] [ -r rights ] file/directory
11
12

DESCRIPTION

14       nwgrant adds  the  specified  bindery  object  with  the  corresponding
15       trustee rights to the directory.
16
17       nwgrant looks up the file $HOME/.nwclient to find a file server, a user
18       name and possibly a password. See  nwclient(5)  for  more  information.
19       Please  note that the access permissions of $HOME/.nwclient MUST be 600
20       for security reasons.
21
22

OPTIONS

24       -h
25          -h is used to print out a short help text.
26
27       -S server
28          server is the name of the server you want to use.
29
30       -U user
31          user is the user name to use for login.
32
33       -P password
34          password is the password to use for login. If neither -n nor -P  are
35          given,  and  the  user has no open connection to the server, nwgrant
36          prompts for a password.
37
38       -n
39          -n should be given if no password is required for the login.
40
41       -C
42          By default, passwords are converted to  uppercase  before  they  are
43          sent  to the server, because most servers require this. You can turn
44          off this conversion by -C.
45
46       -o object name
47          The name of the object to be added as trustee.
48
49       -t object type
50          The type of the object.  Object type must be specified as a  decimal
51          value. Common values are 1 for user objects, 2 for group objects and
52          3 for print queues. Other values are allowed, but are  usually  used
53          for  specialized  applications.  If  you do not specify object type,
54          object name is taken as NDS name.
55
56       -r rights
57          You must tell nwgrant which rights it should grant  to  the  bindery
58          object.  The new rights for the object is specified by rights, which
59          can be either a hexadecimal number representing the sum of  all  the
60          individual  rights  to  be granted or a string containing characters
61          representing each right.  If rights are represented in string format
62          then  the  string  must be bounded with square brackets.  Characters
63          within the brackets may be in any order and in either case.   Spaces
64          are  allowed  between the brackets - in which case the entire string
65          should be quoted.  Hexadecimal and character values for  the  rights
66          are shown in this table:
67
68              00 = no access
69              01 = read access        = R
70              02 = write access       = W
71              08 = create access      = C
72              10 = delete access      = E
73              20 = ownership access   = A
74              40 = search access      = F
75              80 = modify access      = M
76             100 = supervisory access = S
77
78          for a possible total of "1fb" or "[SRWCEMFA]" for all rights.
79
80       file/directory
81          You  must  specify  the  directory  to  which  to  add the object as
82          trustee. This has to be done in fully qualified NetWare notation.
83
84          Example:
85
86          nwgrant -S NWSERVER -o linus -t 1 -r fb 'data:home\linus'
87
88          With this example, user linus is given all rights except supervisory
89          to  his  home directory on the data volume. This example assumes the
90          existence of the file $HOME/.nwclient.
91
92          nwgrant -o linus -t 1 -r fb /home/linus/ncpfs/data/home/linus
93
94          With this example, user linus is given all rights except supervisory
95          to  his home directory on the data volume. This example assumes that
96          NWSERVER is already mounted on /home/linus/ncpfs mountpoint.
97
98

AUTHORS

100       nwgrant was written by Volker Lendecke with the  corresponding  NetWare
101       utility in mind. See the Changes file of ncpfs for other contributors.
102
103
104
105
106nwgrant                            5/19/2000                        NWGRANT(8)
Impressum