Professional Documents
Culture Documents
CIFS
CIFS is intended to provide an open cross-platform mechanism for
client systems to request file services from server systems over a network. It
is based on the standard Server Message Block(SMB) protocol widely in use by
personal computers and workstations running a wide variety of operating
systems.
In the world of NAS, there are 2 main protocols used: CIFS & NFS.
As where NFS is used for serving data to Unix based clients, CIFS is intended
to be used for serving data to Windows clients.
By Sankar Pillai
In computer networking, Server Message Block (SMB), also known as
Common Internet File System (CIFS) operates as an application-layer network
protocol mainly used for providing shared access to files, printers, serial ports,
and miscellaneous communications between nodes on a network.
By Sankar Pillai
Supported Windows clients and domain controllers
Storage systems running Data ONTAP can provide services to a specific set of Windows clients
and domain controllers.
Windows 7
Windows Server 2008 R2
Windows Server 2008
Windows Vista
Windows Server 2003 R2
Windows Server 2003
Windows XP
Windows 2000
Windows NT
Windows 98
Windows 95
If you have already configured your storage system for Windows Domain authentication and
you want to move the storage system to a different domain, you need to run the cifs setup
command.
Steps
1.If CIFS is currently running, enter the following command:
cifs terminate
2.Run the cifs setup command:
cifs setup
The following prompt appears:
Do you want to delete the existing filer account information? [no]
3.To delete your existing account information, enter the following:
Yes
After deleting your account information, you are given the opportunity to rename the storage
system:
4.To keep the current storage system name, press Enter; otherwise, enter yes and
enter a new storage system name.
Data ONTAP displays a list of authentication methods:
Data ONTAP CIFS services support four styles of user authentication. Choose the one
from the list below that best suits your situation. (1) Active Directory domain
authentication (Active Directory domains only)
(2) Windows NT 4 domain authentication (Windows NT or Active Directory domains)
(3) Windows Workgroup authentication using the filer's local user accounts
(4) /etc/passwd and/or NIS/LDAP authentication
Selection (1-4)? [1]:
5. To accept the default method for domain authentication (Active Directory), press
Enter. Otherwise, choose a new authentication method
6. Respond to the remainder of the cifs setup prompts. To accept a default value,
press Enter. Upon exiting, the cifs setup utility starts CIFS
7. To confirm your changes, enter the following command: cifs domaininfo
By Sankar Pillai
Creating a CIFS share from the Data ONTAP command line
You can create a CIFS share from the Data ONTAP command line by using the cifs
shares -add command.
Step
To create a CIFS share, enter the following command:
cifs shares -add sharename path
[ -f ]
[ -comment description ]
[ -maxusers userlimit ]
[ -forcegroup groupname ]
[ -nosymlink_strict_security ] [ -widelink ]
[ -umask mask ]
[ -dir_umask mask ]
[ -file_umask mask ]
[ -nobrowse ]
[ -novscan ]
[ -novscanread ]
[ -no_caching | -auto_document_caching -auto_program_caching ]
[ -accessbasedenum ]
By Sankar Pillai
Cont…..!
Example
cifs shares -add webpages /vol/vol1/companyinfo -comment "Product Information“
-maxusers 100
By Sankar Pillai
Displaying the properties of a share
You can display the properties of a share from the Data ONTAP command line by
using the cifs shares command.
Step
Enter the following command:
cifs shares sharename
sharename is the name of a single share. If you omit sharename, the properties of
all shares are displayed.
Data ONTAP displays the share name, the path name of the directory that is shared,
the share description, and the share-level ACL.
By Sankar Pillai
Changing the properties of a share
You can change the properties of a share from the Data ONTAP command
line by using the cifs shares command.
By Sankar Pillai
Deleting a share
You can use the cifs shares command to delete a share from the Data ONTAP
command line.
Step
Enter the following command:
cifs shares -delete [-f] sharename
-f option forces all files closed on a share without prompting. This is useful
when using the command in scripts.
sharename specifies the name of the share you want to delete.
By Sankar Pillai
Changing a share-level ACL
You can change a share-level ACL from the Data ONTAP command line by using the
cifs access command.
Step
Enter the following command:
cifs access share [-g] user rights
share is the name of the share (you can use the * and ? wildcards).
user is the name of the user or group (UNIX or Windows).
If user is a local group, specify the storage system name as the domain name (for
example, toaster\writers).
rights are the access rights. For Windows users, you specify one of these choices of
access rights: No Access, Read, Change, Full Control. For UNIX users, you specify
one of these choices of access rights: r (read), w (write), x (execute).
Use the -g option to specify that user is the name of a group
Examples
cifs access releases ENGINEERING\mary Read
By Sankar Pillai
Removing a user or group from a share-
level ACL
You can remove a user or group from an ACL using the Data ONTAP command
line.
Step
Enter the following command:
cifs access -delete share [-g] user
share is the name of the share (you can use the * and ? wildcards).
user is the name of the user or group (UNIX or Windows).
If user is a local group, specify the storage system name as the domain name
(for example, toaster\writers).
Use the -g option to specify that user is the name of a UNIX group (that is,
that user is not a UNIX user, Windows user, or Windows group).
Example:
cifs access -delete releases ENGINEERING\mary
By Sankar Pillai
CIFS Commands
cifs domaininfo
cifs prefdc
cifs audit
cifs resetdc
cifs stat
cifs restart
cifs terminate
cifs sessions
cifs testdc
cifs lookup
By Sankar Pillai
???????????
By Sankar Pillai