Sun Microsystems, Inc.  Sun System Handbook - ISO 3.4 June 2011 Internal/Partner Edition
   Home | Current Systems | Former STK Products | EOL Systems | Components | General Info | Search | Feedback

Asset ID: 1-71-1012672.1
Update Date:2009-09-22
Keywords:

Solution Type  Technical Instruction Sure

Solution  1012672.1 :   Using the approve file to provide security for windows shares  


Related Items
  • Sun Storage 5210 NAS Appliance
  •  
  • Sun Storage 5310 NAS Appliance
  •  
  • Sun Storage 5320 NAS Appliance
  •  
  • Sun Storage 5310 NAS Gateway System
  •  
Related Categories
  • GCS>Sun Microsystems>Storage - Disk>Network Attached Storage
  •  

PreviouslyPublishedAs
217425


Description
Beginning with NAS operating system release 4.11, the approve file functionality has been expanded beyond its original use of providing security for NFS exports. Now this same file can be used to provide provide host level security for windows shares as well.

Steps to Follow
Share access can be limited to an individual windows workstation or group of workstations.  This restriction can be done by ip address, host name, hostgroup or netgroup. This could be useful when trying to provide share access to an individual workstation or group of workstations.
The process to configure hostgroups for securing windows shares.
1. At the NAS head create one or more hostgroups
Choose the following from the lefthand GUI window:
unix configuration
configure nfs
set up hostgroups
choose add icon under 'groups'
2. At the NAS head, add individual hosts to the respective hostgroups
Choose the following from the lefthand GUI window:
unix configuration
configure nfs
set up hostgroups
choose add icon under 'group members'
NOTE: A host can be placed in more than 1 host group
3. Once hostgroups are configured, the approve file must be HAND EDITED.
Document ID: 83456 Sun StorEdge[TM] 5210/5310 NAS Appliance : Editing the
Approve file to add NFS exports...
provides the steps for moving the file from the NAS head to a host to perform the edits.  It also provides greater detail to the format of the file.  Below is the syntax for the changes that are specific to windows shares.
The syntax for the share entry in the approve file is as follows:
share  <sharename>   <ipaddr|hostname|@hostgroup|&netgroup> Access=<rw|ro|none>
These entries work the same way as the "files" entries for NFS EXCEPT that the default is to allow rw access.
For example if no entry is found, the client will be given rw access to the share.
To limit access to a share to a single host or hostgroup would require multiple
entries. One to grant access to the host or group and another to deny access to
everyone else.
In this example a hostgroup called mygroup has been created and hosts added.
rw access to the share 'myshare' has been granded to this hostgroup and denied for everyone else.
## open up to all hosts in 'mygroup'
share   myshare   @mygroup   access=rw
## deny access to everyone else
share   myshare   @general   access=none
To deny access to a group of hosts only requires a single entry.
The hosts in the hostgroup 'badgroup' have been denied access to the share 'anothershare'
## deny access to all hosts in hostgroup 'badgroup'
share   anothershare   @badgroup   access=none
## by default all others will have 'rw' access
Once the changes to the approve file have been made and the file has been transfered back to the NAS head as instructed in InfoDoc 83456, it is recommended that the NAS head be rebooted instead of just reloading the approve file.  The reboot will cause the windows side to update properly.


Product
Sun StorageTek 5310 NAS Gateway System
Sun StorageTek 5310 NAS Appliance
Sun StorageTek 5210 NAS Appliance
Sun StorageTek 5320

5210, 5310, 5320, approve file, hostgroup, security
Previously Published As
86676

Change History
Date: 2006-09-01
User Name: 71396
Action: Approved
Comment: Performed final review of article

Updated trademarking,

Changed audience from free to contract per FVF

Publishing
Version: 3
Date: 2006-08-18
User Name: 71396
Action: Accept
Comment:
Version: 0
Date: 2006-08-18
User Name: 75704
Action: Approved
Comment: corrected spelling error and removed redundant by default
Version: 0
Date: 2006-08-18
User Name: 119902
Action: Approved
Comment: please review for technical accuracy
Version: 0
Date: 2006-08-18
User Name: 119902
Action: Created
Comment:
Version: 0
Product_uuid
8a8b6eeb-092e-11da-99bc-080020a9ed93|Sun StorageTek 5310 NAS Gateway System
63654ce5-f88d-11d8-ab63-080020a9ed93|Sun StorageTek 5310 NAS Appliance
d4e4fc3d-7c3f-11d8-9e3a-080020a9ed93|Sun StorageTek 5210 NAS Appliance
9d23ea64-a8be-11da-85b4-080020a9ed93|Sun StorageTek 5320

Attachments
This solution has no attachment
  Copyright © 2011 Sun Microsystems, Inc.  All rights reserved.
 Feedback