How to grant and remove access to CIFS shares
- Views:
- 5,796
- Visibility:
- Public
- Votes:
- 0
- Category:
- data-ontap-7
- Specialty:
- 7dot
- Last Updated:
- 4/25/2025, 6:07:22 AM
Applies to
- Data ONTAP 8.2 7-Mode
- Data ONTAP 8.1 7-Mode
- Data ONTAP 7 and earlier
Description
When setting access permissions for a CIFS share, an error occurs:
> cifs access <share> <user> <permission>
Unknown user/group <user>
Procedure
There are three ways to grant or remove access to CIFS shares:
- Microsoft Management Console
- Filer Command Line
- FilerView
- Granting and removing access using Server Manager:
- Log into a Windows NT workstation or server using a user account that has Administrator rights to the storage system.
- Start Server Manager
- Select Computer
- Click Select Domain
- Enter the storage system's name for the Domain, in the format \Filername
- Once the storage system's name is highlighted, click Computer
- Click Shared Directories
- Select the Share needed to modify the access
- Click Permissions
- Add, delete, or modify rights for users and groups listed.
- Add or delete users and groups as needed.
- Click OK
- Granting and removing access using CIFS access command:
- Access storage system console.
- Use
cifs access
command to grant or remove access to a share. - To add access to a share, type:
cifs access <share> [-g] <user|group> <rights>
Rights can be UNIX-style combinations of r w x - or NT-style "No Access", "Read", "Change", and "Full Control".
Note: For users and groups, using double quotes to enclose names with spaces may be required. For example: "NETAPPDomain Admins". - To remove access to a share type:
cifs access -delete <share> [-g] <user|group>
- Granting and removing access using FilerView:
- Log into FilerView and navigate to CIFS.
- Select CIFS > Shares > Manage
- For the share to be modified, on the right side under Operations, select Change Access.
- Add and Delete Users and Groups as needed.
Additional Information