| United States-English |
|
|
|
![]() |
HP 9000 Networking: Advanced Server/9000 Concepts and Planning Guide > Chapter 5 Managing Shared Resources and Resource SecuritySecuring Resources |
|
You can control the access that users have to files, directories, and shares on Advanced Server computers. Directories and files can be secured by setting permissions on them. Every permission that you set specifies the access that a group or user can have to the directory or file. For example, when you set Read permission for the group called Coworkers on the file MY_IDEAS.DOC, the users in that group can display the file's data and attributes, but they cannot change the file or delete it. Advanced Server offers a set of standard permissions that you can set on directories and files. The standard permissions for directories are No Access, List, Read, Add, Add & Read, Change, and Full Control. The standard permissions for files are No Access, Read, Change, and Full Control. Standard permissions are groups of individual permissions. When you set a standard permission, the abbreviations for the individual permissions are displayed beside the standard permission. For example, when you set the standard permission Read on a file, the abbreviation RX appears beside it. Individual permissions and their abbreviations are as follows:
In addition to setting standard permissions, you can set special access permissions which allow you to define custom sets of individual permissions. To work effectively with Advanced Server security, keep the following points about setting permissions in mind:
For more information about permissions, see Chapter 3, "Working With User and Group Accounts."
Advanced Server offers a set of standard permissions that you can set on files and directories in Advanced Server volumes. These standard permissions offer combinations of specific types of access called individual permissions. Standard permissions for directories and files and their meanings are shown in the following tables, along with descriptions of each standard permission. In the first column of the first table (Directory Permissions), the first set of permissions applies to the directory itself; the second set of permissions applies to the files that are present in the directory when you assign the permissions (if the Replace Permissions on existing files option is enabled) and to all of the files that will be created in this directory after the permissions are set. Table 5-1 Standard Permissions for Advanced Server Directories and Files
Individual permissions and their abbreviations are as follows:
When you set a standard permission, the abbreviations for the individual permissions appear beside the standard permission. For example, when you set the standard permission Read on a file, the abbreviation RX appears beside it. In addition to setting standard permissions, you can set special access permissions. Special access permissions allow you to define a custom set of individual permissions for directories and files. For information about special access permissions, see "Setting Customized 'Special Access' Permissions" later in this chapter. To work effectively with Advanced Server security, keep the following points in mind when setting file permissions :
Every file and directory on a volume has an owner. The owner controls how permissions are set on the file or directory and can grant permissions to others. When a file or directory is created, the person creating the file or directory automatically becomes its owner. It is expected that administrators will create most files on network servers, such as when they install applications on the server. Therefore, most files on a server will be owned by administrators, except for data files created by users and files in users' home directories. Ownership can be transferred in the following ways:
For more information, see "To take ownership of files or directories" in Windows NT Help. You also can take file ownership by using the net perms command. For more information, type net help perms at the Advanced Server command prompt. When you set permissions on directories and files in Advanced Server, you control directory and file access in the following ways:
You can grant permissions to the built-in local groups (such as Administrators and Domain Users) and to any groups you create in the domain When a new subdirectory or file is created in an Advanced Server volume, you can set its permissions. If you do not set permissions, the new subdirectory or file inherits the permissions of the directory that contains it. In the event that you inadvertently alter any of the default Advanced Server permissions, you can overwrite the default permissions into an existing Access Control List database by running the acladm command as root. For more information about this command, type man acladm at the Advanced Server/9000 command prompt. When you first display a directory's permissions, the Directory Permissions dialog box shows the permissions that the directory inherited from the directory containing it. The Name box shows the groups and users for whom permissions have been set.
If you have selected multiple directories, permissions are shown only if they are the same for all of the directories. You can change permissions, add a group or user to the list, or remove a group or user from the list. Setting permissions on a directory controls what users can do in that directory. When you set directory permissions, you are setting permissions on the directory and by default on all of the files that exist in the directory. Existing subdirectories and their files are not changed unless you specify to change them. When you create new files and new subdirectories, they inherit their permissions from the directory. In some cases, directory permissions for a group or user are not passed on to subdirectories. This occurs, for example, when a group or user has been granted permissions through the CREATOR OWNER special group. Permissions that will not be inherited by subdirectories are marked with an asterisk, for example (All)*. When you set a standard permission, two sets of individual permissions are displayed next to it: the permissions set on the directory and the permissions set on files in the directory. For example, when you set Add & Read permission on a directory, you see (RWX), signifying Read, Write, and Execute permissions on the directory, and (RX), signifying Read and Execute permission on its files. Permissions on files in a directory can be set to Not Specified. This means that by default no permissions will be set for that user or group to the files that are present in the directory or that are created after setting this permission. A group or user cannot use files in the directory unless access is granted by another method such as setting permissions that grant access on individual files. When you are setting permissions on a directory, you can use the CREATOR OWNER special group to allow users to control only the subdirectories and files that they create within the directory. Permissions set on CREATOR OWNER are transferred to the user who creates a directory or file within the directory. To change permissions on the directory, you must be the owner of the directory or have been granted permission to do so by the owner.
You also can set permissions on directories by using the net perms command. For more information, type net help perms at the Advanced Server/9000 command prompt. When you first display a file's permissions, the File Permissions dialog box shows the permissions that the file inherited from the directory containing it. The Name box shows the groups and users for whom permissions have been set on the file. If you have selected multiple files, permissions are shown only if they are the same for all of the files.
You also can set permissions on files using the net perms command. For more information, type net help perms at the Advanced Server/9000 command prompt. Observe the following guidelines when setting file permissions:
For more information about strategies for using groups and users, see Chapter 3, "Working With User and Group Accounts." Example for Setting Up File Permissions Suppose you need to set file permissions on a server used by a small department. The file server includes an applications directory, home directories for each of the department's users, a public directory where users can share files, and a drop directory where users can file confidential reports that only the group manager can read. In the applications directory, make all executable programs read-only to all users, to prevent viruses. You also can grant individual Change Permissions (P) permission to members of the Administrators group so that administrators can give themselves Write permission when it is time to update an application. Giving members of the Administrators group Write permission initially provides less virus protection than giving them Change permission and forcing them to change permissions before updating the application. If none of your applications need to write any files (such as initialization setting files) in their own directories, you should make all the directories containing applications read-only. For home directories, give each user Full Control over his or her own directory and do not give anyone permissions for any other directory. For the public directory, give all users Change permission which lets them read and write to the directory. Change is more appropriate than Full Control because Full Control allows users to set permissions for the public directory and to take owner ship of it. To create a drop directory, grant Users or Everyone Add permission for the directory, and give Change permission to the manager who is to read the files in the directory. Give access to system files or directories only to members of the Administrators or Server Operators groups. Generally, the standard directory and file permissions are all you need to secure directories and files. However, you can create a custom set of permissions by using special access permissions. A special access permission is a combination of individual permissions that you can set on directories and files. When you set special access permissions on a directory, the permissions affect only the directory. For information about setting special access permissions, see "To set special access permissions" in Windows NT Help. You also can set special access permissions using the net perms command. For more information, type net help perms at the Advanced Server/9000 command prompt. Permissions set on shared directories are called share permissions and they determine who can use shared directories over the network and in what manner. When a directory is shared, file and directory permissions apply to users accessing the shared directory over the network, in addition to share permissions. Therefore, share permissions are not critical to the security of Advanced Server directories. When you share a directory, you can grant each group and user one of four types of permissions for the share and all of its subdirectories and files: Full Control, Change, Read, or No Access. To secure shared directories effectively, keep the following points in mind:
Use the Access Through Share Permissions dialog box to change permissions for the listed groups and users and to modify the permissions list. For information about managing share permissions, see "To set, view, change, or remove permissions through a shared directory" in Windows NT Help. You also can set permissions on shared directories using the net perms command. For more information, type net help perms at the Advanced Server/9000 command prompt. Printer permissions specify the type of access a user or group has to use the printer. The printer permissions are No Access, Print, Manage Documents, and Full Control.
For information about setting print permissions, see Chapter 6, "Setting Up Print Servers," and "To limit access to a shared printer" in Windows NT Help. You also can set permissions on network printers using the net perms command. For more information, type net help perms at the Advanced Server/9000 command prompt. |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|||||||||||||||