HP OpenVMS Systems
HP Advanced Server for OpenVMS
When a client accesses a shared file whose ACL contains the complete Windows NT security descriptor information (that is, owner, group, discretionary access control lists (DACLs) and system access control lists (SACLs)), then the Advanced Server uses that information to determine the access rights to the file.
If the file lacks any or all of the required Windows NT security descriptor information, the file server builds a complete security descriptor for the file, getting the required security descriptor information from the directory hierarchy above the file. (A file lacks all Windows NT security information if it was not created by an Advanced Server for OpenVMS or by a PATHWORKS Advanced Server; an example is a file that was created on an OpenVMS system before the directory became shared.)
If, for example, a file has owner information but no group, DACL, and SACL information, the server looks up the directory structure, level by level, as far as the device root, but a maximum of up to 15 levels, until it finds enough information to build a complete Windows NT security descriptor for that file. If nothing is found in the search all the way to the root, the server creates a default descriptor for the file in which Everyone has full access control.
The file server might not find all the required file security information at the same directory level. In some cases, it might extract the information from several different directory levels.
For example, given a file with no security information available, the server might find the owner information in the file's parent directory, but then have to search up one or more additional directory levels to find the other information. When the file server finds a directory that has the Windows NT security descriptor information it is seeking, it inserts the needed information in the file's security descriptor. The owner of the file was already determined from the file's parent directory: the file server does not use the higher directory's ownership for the file's security descriptor.
In summary, the file server must determine the access rights for a file in these circumstances:
One subtle difference exists in how and when the Advanced Server and Windows NT build security information for a file. By default, both the Advanced Server and Windows NT are designed to write complete security information for a file when the file is created, propagating it from the parent directory as necessary. However, the Advanced Server file server allows you to change this default behavior to make more efficient use of security information and disk space. For more information, see the discussion of the Store_Security_Aces parameter in Section 184.108.40.206, Streamlining Security Information Storage and Lookups.
As a result of making this change, when a file is created in a shared directory, only the owner information is stored with the new file. When a user attempts to access the file, the server uses security information from the parent directory structure to dynamically build a Windows NT security descriptor for the file. The file server does not modify the file or the security information stored with the file in any way.
After the file server has used the dynamically built Windows NT security descriptor to determine whether the user has permission to access the file, the dynamically built Windows NT security descriptor is discarded. The next time a client attempts to access the file, the file server again dynamically builds a Windows NT security descriptor to determine the access permission for the file.
A significant consequence of this behavior, which is unique to the Advanced Server file server, is that the file security information for a file (whose security descriptor is built dynamically) can change when the security information in the directory structure above it changes. For example, assume a directory named ACCOUNT is owned by user JOHNSON and has full access for Everyone. User CARTER creates file CABINET in that directory. On a Windows NT system, the new file's security descriptor will include:
By default, the same would be true on an Advanced Server share. But, if the Store_Security_Aces parameter is changed from the default YES to NO, the security descriptor for file CABINET sets CARTER as the owner but does not store any access rights information. Nevertheless, when a client attempts to access the file CABINET, the file server dynamically determines that access to file CABINET is full access for Everyone (determining the access permissions from the parent directory, ACCOUNT).
If the access permissions for the ACCOUNT directory are changed to read
access for Everyone, then on a Windows NT system, and by default, on an
Advanced Server share, the access for file CABINET remains full access
for Everyone (as originally inherited from the parent directory when
CABINET was created). But, if the value of the Advanced Server
Store_Security_Aces parameter is NO, the access for
the shared file CABINET would be READ access for Everyone: the access
permissions were not stored with CABINET at file creation, so the
server builds the file's security descriptor dynamically, determining
the file's access permissions from the parent directory, ACCOUNT.
220.127.116.11 Streamlining Security Information Storage and Lookups
As noted previously, the default propagation of security information to new files in shared directories can require that secondary headers be allocated for these files to store the security ACEs. Over time, this excessive consumption of file headers can cause excessive growth of the volume's index file, reducing the disk space available for creating new files. Techniques for minimizing file header usage are described later on in this section.
If disk space is not a problem, multiple extensions of the index file can still fragment the file across the volume, making access to the file headers less efficient, and eventually making further extension of the index file impossible. The solution is to make the index file contiguous, and make it large enough to help eliminate the need for further extensions in the future. However, be sure not to make the index file too large, or else space will be wasted.
You can make the volume and all of its files (including the index file) contiguous by performing a simple backup and restore of the volume. In addition, before doing the restore, you can initialize the volume with a larger index file, if appropriate. However, there is currently no easy way to determine how much the index file has grown, how many times it has grown (how fragmented it has become), or how many free headers it currently contains. For details on making the index file contiguous and estimating an appropriate size for the index file, see Section 18.104.22.168.1, Managing the Index File on a Volume with Shared Files.
If consumption of disk space is a problem, you can change the Store_Security_Aces OpenVMS Registry parameter to NO. The default value (YES) causes the file server to write a complete set of Windows NT security information to a new file's ACL. By changing the parameter value to NO, you limit the amount of security information stored with the new file: only the ownership information is represented in the file's ACL, and all the file access permission ACEs are excluded. Use PWRK$REGUTL to modify the value of the Advanced Server OpenVMS registry server parameter. This parameter is stored in the registry key:
Note the tradeoffs between using the default (YES) or changing the parameter to NO, described in Table 4-3. In short, setting the parameter to NO saves file header usage but might result in increased file access times. Because the security information is not propagated to the files in a directory, the file server must look up the directory tree to determine missing information.
|If using the default (store all security information)||If setting to NO (store owner information only)|
|Server Behaves as Windows NT does?||Yes||No|
|File Header Usage||Higher||Lower|
|How Security Settings Are Determined||Direct from files||Dynamically, using the file's directory tree|
If security problems arise because of inappropriate ACEs on files, or if you want to minimize consumption of disk space by index blocks required for storage of ACEs, use the Advanced Server utility SYS$SYSTEM:PWRK$FIXACE.EXE. This utility optimizes disk storage by compressing ACEs, removing unnecessary ACEs, and preventing ACEs from being propagated to files created in shares.
Invoke this utility as follows:
$ MCR PWRK$FIXACE
In addition, you can clean up unwanted ACEs by using the PWRK$DELETEACE
utility, as documented in Section 22.214.171.124, Removing PATHWORKS ACEs. This utility will help you
reclaim disk space.
126.96.36.199.1 Managing the Index File on a Volume with Shared Files
To make the index file on a volume contiguous, follow these steps. For details, refer to the HP OpenVMS System Manager's Manual.
$ INITIALIZE/HEADERS=n disk_volume:
This section explains how to determine whether a larger index file is indicated, and if so, how many file headers to specify with the INITIALIZE/HEADERS command. As stated previously, there is no easy way to determine how much the index file has grown, how fragmented it has become, or how many free headers it currently contains.
You can estimate whether the index file should be made larger by monitoring the size of the index file and the total count of all shared files on the volume. Suppose you observe that an index file is growing rapidly, most likely because of an increase in the number of shared files on the volume. If you can estimate how much the number of shared files might grow in the future, you can calculate how much larger the index file might become as well. From this value, you can approximate the total number of headers to specify.
If you suspect that the index file is fragmented, but have no data to support any estimates, you may still perform the image backup and restore without changing the index file size, and then start monitoring the volume as described above.
For example, assume earlier monitoring revealed these results:
$ DIRECTORY/SIZE DKB0:INDEXF.SYS Directory DKB0: INDEXF.SYS;1 24426 Total of 1 file, 24426 blocks. $ DIRECTORY/GRAND_TOTAL DKB0:[SHARE_DIRECTORIES...] Grand total of 56 directories, 13512 files.
Assume current monitoring reveals the following results:
$ DIRECTORY/SIZE DKB0:INDEXF.SYS Directory DKB0: INDEXF.SYS;1 90704 Total of 1 file, 90704 blocks. $ DIRECTORY/GRAND_TOTAL DKB0:[SHARE_DIRECTORIES...] Grand total of 73 directories, 37182 files.
Then you can calculate the increase in file count and the associated increase in the size of the index file. In this example, these calculations are as follows:
Shared file count increase = 37,182 - 13,512 = 23,670 files Index file size increase = 90,704 - 24,426 = 66,278 blocks.
If you estimate that the number of shared files will grow to 120,000 in the lifetime of the current configuration, then the number of files will have increased by 82,818 files (subtract 37,182 from 120,000).
From that calculation, you can estimate the index file growth by use of simple proportions, where the ratio of the projected file count increase to the projected index file header increase (n) is equal to the ratio of the observed file count increase (23,670 files) to the observed index file header increase (66,278 blocks):
82,818 23,670 ------ = ------ n 66,278
Thus, the projected index file header increase (n) is calculated as follows:
82,818 * 66,278 n = --------------- = 231,897 blocks 23,670
The total size of the future index file will then be its current size
plus the projected increase, or:
24,426 + 231,897 = 256,323 blocks
Given that each file header occupies one disk block, and assuming for simplicity that the entire index file consists of file headers (this is an overestimation), the total number of headers needed in the future is 256,323. Thus, to initialize the volume, you would specify this value for the /HEADERS qualifier in the INITIALIZE command mentioned in step 2 in the preceding section.
You can also apply this same reasoning independently to any other
product that maintains a large number of files on the volume, such as
MAIL or ALL-IN-1, or products such as POLYCENTER HSM (Hierarchical
Storage Management) for OpenVMS that maintain file headers in
INDEXF.SYS when shelving specified files.
188.8.131.52 Removing PATHWORKS ACEs
The PWRK$DELETEACE utility allows you to selectively remove:
The following example shows how the PWRK$DELETEACE utility works:
$ MCR PWRK$DELETEACE Exit=x File Spec: DKA200:[LMSHARES.CSCSEC]*.* Cancel=x Delete V4 ACEs Y/N: Y Cancel=x Delete PW ACEs Y/N: Y Cancel=x Delete V5 security ACEs Y/N: Y Cancel=x Delete V6 security ACEs Y/N: Y Cancel=x Delete AFP Comment ACEs Y/N: Y DKA200:[LMSHARES.C CSCSEC]DEFAULT_SECURITY.EXAMPLE;1 ACEs removed DKA200:[LMSHARES.CSCSEC]NEW__20FOLDER.DIR;1 ACEs removed DKA200:[LMSHARES.CSCSEC]WYSIWYG.EXAMPLE;1 ACEs removed Exit=x FileSpec: x $
Using the DCL commands SHOW SECURITY, DIRECTORY/SECURITY, and DIRECTORY/FULL for files that contain PATHWORKS ACEs displays the total number of ACEs encountered for each file in this message (where n is the total):
"Suppressed n PATHWORKS ACES."
HP recommends using the documented SHOW SECURITY command. The command displays OpenVMS ACEs and, in specific, the %86 ACE which includes the Windows NT security descriptor for the file.
The ACE of a file created by an Advanced Server for OpenVMS prior to Version 7.3A, or by a PATHWORKS for OpenVMS (Advanced Server), would appear as follows (using the indicated OpenVMS DCL command):
$ SHOW SECURITY filename (UNKNOWN=%X80,SIZE=%D163,FLAGS=%X0C00,ACCESS=%X06900000,DATA= %X00000008,%X00000000,%X0000041E,%X3EAC4100,%X511B0000,%XC63F8E74, %X1CF4009E,%X2703722A,%X27036E4D,%X05756E4D,%X00000000,%X00000000, %X00000000,%X00000000,%X00000000,%X00000000,%X00000000,%X00000000, %X010A0000,%X10E51200,%X00800200,%X00000000,%X00000000,%X00000000, %X00000000,%X00000000,%X00000000,%X00000000,%X00000000,%XEE710000, %XB022F5BF,%X0000FF39,%X00008000,%X00000000,%X00000000,%X00000000, %X00000000,%X00000000,%X00000000)
The ACE of a file created on Version 7.3A (or later) of the Advanced Server for OpenVMS now appears as follows:
$ SHOW SECURITY filename (UNKNOWN=%X80,SIZE=%D46,FLAGS=%X0C00,ACCESS=%X06900000,DATA= %X00000008,%X00000000,%X0000041E,%X30064120,%X2A490003,%X8857ACB1, %X2AC600A0,%X2C3586F0,%X2C355E40,%X00005E40)
ACEs of files created on earlier versions of the Advanced Server for OpenVMS will be converted automatically to the latter format whenever the file is opened with write access; that is, whenever a client modifies or writes the file. Therefore, no further action is required to convert the ACE format.
This new ACE format is not compatible with any Advanced Server for OpenVMS prior to Version 7.3A. Customers needing to preserve the old ACE format on existing files can do so by adding the following line to the [ODS2] section in the PWRK$COMMON:PWRK.INI file: [ODS2] UPGRADE_DOS_ACE = 0 If you ever need to downgrade the Advanced Server from V7.3A or later to a previous version, you can make file ACEs compatible again by doing either of the following:
This will remove the ACEs that are incompatible with the older version of the server. The first time a client opens any of the files, the Advanced Server will add the Macintosh information ACE to that file's header.
HP recommends that before you upgrade to Version 7.3A (or later) of the Advanced Server for OpenVMS, you first back up all disks that have files that might be converted. If you later decide to go back to an earlier version of the Advanced Server for OpenVMS, you can restore the files from the backups.
By default, when a directory is shared, all users have full access to the share. To control user access to disk resources, you can assign users to the groups that have the appropriate access permissions, or you can assign permissions directly to shares. Administratively, it is easier to use group permissions than user permissions to grant access. You can set or modify the permissions at the share level (using the ADD SHARE/PERMISSIONS= or MODIFY SHARE/PERMISSIONS= command). You can also assign permissions to specific files or directories within a shared directory (using the SET FILE/PERMISSIONS= command).
Share permissions determine which users can access the shared directory or file, and the type of access those users are allowed. These permissions control network access to the directory or file.
In general, the simplest method to control access to disk resources is to assign FULL access for Everyone to the share (the default), and then restrict access at the directory or file level with the SET FILE command. For more information, see Section 4.3.5, Planning File and Directory Access Permissions, and Section 4.3.6, Specifying File and Directory Access Permissions.