Sun Microsystems, Inc.
spacerspacer
spacer www.sun.com docs.sun.com |
spacer
black dot
 
 
5.  Managing Files with File Manager File and Folder Ownership and Security To Modify Basic Permissions  Previous   Contents   Next 
   
 

To Change File or Folder Ownership


Note - If you do not have permission to change the properties, some of the controls in the Permissions dialog box are unavailable.


  1. In File Manager, select the icon of the file or folder whose ownership you want to modify.

  2. Choose Properties from the File Manager Selected menu or from the icon's pop-up menu (displayed by pressing Shift+F10 or mouse button 3).

    The Permissions dialog box appears.

  3. To change the owner, type the new owner name into the Owner text field. To change the owning group, type the new group name into the Group text field.

    You can specify a different owning group only if you are also a member of another group, even if you are not the file or folder owner.

  4. Click OK to apply the current settings and dismiss the dialog box. Click Apply to apply the settings without dismissing the Permissions dialog box.

To Browse and Edit Properties of Multiple Files and Folders

  1. Open the Properties dialog box by typing sdtfprop& at the command line.

    You can edit the File Name text field and click Browse to open the File Selection dialog box only if you open the Properties dialog box from the command line.

  2. Click Browse or type the name of a file or folder in the File Name field.

  3. Browse or edit the file or folder properties.

  4. Click OK to apply the current settings and dismiss the dialog box. Click Apply to apply the settings and continue the browsing and editing process.

Access Control Lists

ACLs enable you to define file or folder permissions for the owner, owner's group, others, and specific users and groups, and default permissions for each of these categories. You can set up only one ACL per file or folder. An ACL consists of ACL entries. Each entry has a user type associated with it, much as basic permissions have Owner, Group, or Other associated with them.

If you want to grant file or folder access to a particular user or group, use the User or Group type ACL entry, respectively. You must specify the name of the user or group when you create the ACL entry. For example, you can use an ACL to grant a friend read permission on your resume, while protecting it from being read by the rest of the world (besides yourself).

To create, modify, or view ACLs on a file or folder, it must reside on a server or system running Solaris 2.5 Operating Environment or compatible versions, and you must be running Solaris 2.5 Operating Environment or compatible versions. Such files and folders are called ACL-enabled. To set, modify, and view basic permissions and ACLs using the Properties Graphical User Interface (GUI), you must be running CDE 1.1 or later.

You must be the owner of the file or folder to create or modify basic permissions or ACLs for that file or folder. If you are not the owner, all fields in the Properties dialog box are displayed as read-only.


Note - ACL terminology in this section refers to terminology used in the Properties GUI. Command-line terminology may be slightly different.


To View an Access Control List

  1. In File Manager, select the icon of the file or folder whose Access Control List (ACL) you want to view.

  2. Choose Properties from the File Manager Selected menu or from the icon's pop-up menu (displayed by pressing Shift+F10 or mouse button 3).

    The Properties dialog box appears.

    If the file or folder has an ACL, it appears in the scrolling list labeled Access Control List Permissions. If the file or folder has no ACL, the scrolling list is hidden.

    The Requested column shows the permissions that the owner requests for each ACL entry. These permissions are restricted by the mask, and the actual ACL entry permissions appear in the Effective column. See "Permissions Mask" for a discussion of the mask.


    Note - To create, modify, or view ACLs on a file or folder, it must reside on a server or system running Solaris 2.5 Operating Environment or compatible systems, and you must be running Solaris 2.5 Operating Environment or compatible systems.


To Add an Access Control List Entry


Note - Adding the first Access Control List entry creates the Access Control List.


  1. In File Manager, select the icon of the file or folder whose ACL you want to modify.

  2. Choose Properties from the File Manager Selected menu or from the icon's pop-up menu (displayed by pressing Shift+F10 or mouse button 3).

    The Permissions dialog box appears.

  3. Click Show Access Control List if the ACL portion of the Permissions dialog box is not visible.

  4. Click the Add button.

    The Add Access List Entry dialog box appears.

  5. Select an option from the Type option button.

  6. Enter the name associated with the chosen Type, if it has one in the Name field.

  7. Click the Permission check boxes to reflect the values you want for the new ACL entry.

    The status line at the bottom of the dialog box informs you if the permissions you request are restricted by the mask.

  8. Click Add in the Add Access List Entry dialog box.

  9. Use the Apply Changes To option button to choose the scope of the change.

    For files, the options are This File Only (default), All Files in Parent Folder, and All Files in Parent Folder and its Subfolders. For folders, the options are This folder only (default) and This folder and its Subfolders.

  10. Click OK to apply the current settings and dismiss the dialog box. Click Apply to apply the settings without dismissing the dialog box.

To Change an Access Control List Entry

  1. In File Manager, select the icon of the file or folder for which you want to change an ACL entry.

  2. Choose Properties from the File Manager Selected menu or from the icon's pop-up menu (displayed by pressing Shift+F10 or mouse button 3).

    The Permissions dialog box appears.

  3. Select the entry in the Access Control List Permissions scrolling list that you want to change.

  4. Click Change.

    The Change Access List Entry dialog box appears.

  5. Click the Permission check boxes to reflect the values you want for the ACL entry.

    The status line at the bottom of the dialog box informs you if the permissions you request are restricted by the mask.

  6. Click the Change button in the Change Access List Entry dialog box.

  7. Use the Apply Changes To option button to choose the scope of the change.

    For files, the options are This File Only (default), All Files in Parent Folder, and All Files in Parent Folder and its Subfolders. For folders, the options are This folder only (default) and This folder and its Subfolders.

  8. Click OK to apply the current settings and dismiss the dialog box. Click Apply to apply the settings without dismissing the dialog box.

 
 
 
  Previous   Contents   Next