| United States-English |
|
|
|
![]() |
HP 9000 Networking: Supervising the Network > Chapter 3 Managing the NetWare Services File SystemFile Access Control |
|
In NetWare, trustee assignments are used to grant access to files and directories; these assignments are part of the file system. In NetWare Services, trustee assignments are kept in a separate, per-volume database in the volume's control directory. Since NetWare Services is a process running on HP-UX, NetWare administrators can select how they want the NetWare trustee assignments and the HP-UX permissions to interact with each other in granting access. NWS _Volume_Setup in NetWare Setup allows the network administrator to set variables for specific volumes or for volumes system-wide (see Chapter 7, "Maintaining the NetWare Server"), Table 3-3 describes the possible modes. Table 3-3 File Access Control Modes
The mode affects the performance of the Standard file system volumes. The "NetWare" and "None" modes are the fastest for the Standard file system volumes. The "UNIX" and "Both" modes are the slowest because they require more synchronization with the HP-UX file system. This slowness is most noticeable on directory searches and listings and increases with directory depth. File ownership is dependent upon which user ID (UID) and group ID (GID) owns the files that are created by NetWare clients. HP-UX UIDs and GIDs on a file are important only if
When "None" is selected as the mode for file access control, NetWare Services ignores all file access checks. NetWare Services does not check the trustee database for trustee assignments, nor does it check NetWare file attributes. Since NetWare Services runs as a privileged process, it can also ignore the HP-UX permissions. NetWare Services does not check to see if the user has permission as the owner, a member of the group, or other. Volume options contain the only check NetWare Services makes when the "None" mode is set. If the Read-Only option is set, NetWare Services allows users read-only access to files. When "NetWare" is selected as the mode for file access control, rights checking is the same as it is on native NetWare. NetWare Services checks that the user has NetWare rights to the file or directory and that the NetWare file and directory attributes allow the action. Figure 3-2 illustrates this process. If NetWare is the access control mode, the HP-UX permission bits are not checked at all. For client access, if files owned by Root are placed in the NetWare volume and NetWare rights allow the user to access the file, the user is allowed access.
NetWare must calculate a user's effective rights, or rights the user can exercise, to each file and directory. This is because effective rights are determined by a combination of the Inherited Rights Filter, trustee assignments, and security equivalences. The following basic rules are used:
NetWare Services has one volume attribute, Read-Only. It overrides any HP- UX permissions that would allow NetWare users to write to or create files in the volume. NetWare has a number of file and directory attributes (Delete-Inhibit, Read- Only, Rename-Inhibit, and so on) which are enforced for NetWare users. When "UNIX" is selected as the mode for file access control, the HP-UX permission bits are used to calculate effective NetWare rights to a file or directory. Each NetWare Services user has a UID and a GID and these are compared with the file or directory's UID and GID. The UID and GID are established by default or through the hybrid user feature. Figure 3-3 illustrates this process. NetWare Services users can have a match on more than one UID. The UID matches under the following conditions: If the user's hybrid UID is 0 (Root), the user is granted all HP-UX rights to the file or directory, regardless of HP-UX permission bits. Some NetWare rights are still restricted (namely, Supervisor and Access Control, which allow users to grant NetWare trustee assignments). The GIDs match under the following conditions:
The rights granted are determined by the HP-UX permission bits for the UID, GID, or Other. These HP-UX permission bits are translated into NetWare rights. Two NetWare rights, Supervisor and Access Control, are never granted, since granting them would imply that the user can use NetWare trustee assignments to control access. With "UNIX" as the mode for file access, access control changes must occur from HP-UX. Table 3-4 shows how HP-UX rights are translated to NetWare rights. Table 3-4 Translating HP-UX Permissions to NetWare Rights
Keep these rules for granting rights in mind: In addition to mapping UID and GIDs and converting HP-UX permissions into NetWare rights, the following rules are used to determine HP-UX access to a file or directory:
NetWare Services has one volume attribute, Read-Only. It overrides any HP- UX permissions that would allow NetWare users to write to or create files in the volume. NetWare has a number of file and directory attributes: Delete-Inhibit, Read- Only, Rename-Inhibit, and so on) which are enforced for NetWare users. The hybrid variables affect the HP-UX enforcement of the permission bits. Hybrid users are granted rights to files and directories that match with their hybrid UID and GID as well as to all files and directories owned by nwuser or nwgroup. Since NetWare users who are not hybrid users use nwuser and nwgroup as their default UID and GID, all files and directories that these users create are accessible to all hybrid users. If this is a security problem, you can set the "Hybrid Allow Default User" variable in NetWare Setup to "No." This forces every NetWare user to be a hybrid user in order to log in to the NetWare server. But it also allows all the HP-UX files and directories created from NetWare to be owned by the HP- UX user who created them. If the NetWare volumes are NFS-mounted, set the "Allow Processes to Assume Hybrid User IDs?" variable in NetWare Setup to Yes. Forcing all NetWare users to be hybrid users is the best method of enforcing security with the "UNIX" mode for file access. In this mode, all NetWare users should have sufficient rights to the files and directories that they create to control access from HP-UX. Since neither the Supervisor or the Access Control right is ever granted on volumes with HP-UX-made access control, all the NetWare utilities (FILER, NetWare Administrator, NETADMIN, and RIGHTS) that allow users to make trustee assignments will return with an insufficient rights error. Therefore, even the NetWare administrator has insufficient rights to make trustee assignments. Changes to NetWare rights must be done from HP-UX using HP-UX utilities. Hybrid users on DOS workstations can use NVT2™ (Novell Virtual Terminal™ 2) through Host Presenter to access the HP-UX side of the NetWare Services server and change permissions. OS/2* clients can use NVT2 from a DOS session. For more information, see Terminal Emulators for DOS/Windows. The NetWare utilities that display a user's rights should accurately display the user's effective rights as they have been translated from the HP-UX permissions. When "Both" is selected as the mode for file access control, the user must go through a two-operating-system check:
Figure 3-4 illustrates this process. NetWare Services calculates the rights for both NetWare and HP-UX. Once the rights are calculated for both systems, the right is granted only if both systems allow it. See Table 3-4 for information on how HP-UX permissions are translated to NetWare rights. Three NetWare rights—Supervisor, Modify, and Access Control—do not match any HP-UX permissions. These rights are granted under the following conditions:
The NetWare Services product access routines check both NetWare rights and HP-UX permissions before returning NetWare rights information. NetWare and HP-UX utilities should display valid rights information except for the Supervisor right. It is possible for a user to have the Supervisor right and not have all rights to the file. |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|||||||||||||||