The Common Internet File System (CIFS), also known as Server Message Block (SMB), is a standard remote file system access protocol over the Internet, enabling groups of users to work together and share documents and printers across the Internet or within corporate intranets. CIFS allows multiple clients to access and update the same file, while preventing conflicts with sophisticated file sharing and locking semantics. It also permits aggressive caching and read-ahead and write-behind without loss of cache coherency, thereby increasing the performance, which is the backbone of today's sophisticated enterprise computer networks. CIFS complements HTTP and provides more sophisticated file sharing and file transfer than older protocols, such as FTP.
File sharing between PC operating systems, such as Windows®, is commonly implemented using the CIFS protocol, and file sharing between AIX® systems has been implemented using the Network File System (NFS) protocol. Since these two protocols being non-interoperable, products like AIX Fast Connect and AIX SMBFS allow PC clients to access and share files on the AIX server and vice versa.
AIX Fast Connect is server software that allows AIX servers to share files and printers with personal computer clients running the following Windows operating systems:
AIX Fast Connect provides the following:
Note: AIX Fast Connect supports AIX 5.1 and above.
Install the following filesets to configure AIX Fast Connect:
Only the root user can perform the configuration of Fast Connect for the AIX server; however, any user can access the configuration menu.
There are two ways in which you can start the Fast Connect server:
smitty smb
.
Start Server
.
1
|
Server servername has started successfully on servername |
net start /load
.
1
2
3
4
|
#ps -eaf | grep cifs root 503820 1 0 Aug 23 - 0:00 /usr/sbin/cifsUserProc root 565300 1 0 Aug 23 - 0:12 /usr/sbin/cifsServer root 823380 757910 0 12:55:44 pts/2 0:00 grep cifs |
These two processes, associated with Fast Connect, are responsible for the SMB request and response:
There are two ways in which you can add a new file system share:
#smitty smb
.
1
2
|
#net share /add /type:f /netname:TEST /path:/home/divya /desc:"File share test" |
When the AIX Fast Connect server is configured for encrypted passwords, AIX Fast Connect attempts to authenticate all incoming SMB usernames and encrypted_password logins against the AIX Fast Connect /etc/cifs/cifsPasswd file. This file, initialized and maintained by the net user
command, is a database of AIX Fast Connect users (and their encrypted passwords).
All AIX Fast Connect users defined by the net user
command should be AIX users.
The passwords of the Fast Connect users are distinct from (and might differ from) the standard AIX passwords in the /etc/security/passwd file. When an AIX user changes their password (using /usr/bin/passwd), the AIX Fast Connect password for that user does not automatically change.
1
|
#net config /encrypt_passwords:2 |
1
|
#net user username password /add |
1
|
#net user username -p /add |
-p
flag prompts for a no-echo password.
1
|
#net user username password /changeaixpwd:yes |
1
|
#net user username -p /changaixpwd:yes |
Once the above configurations are done, stop and start the server.
1
|
#net stop /unload |
1
|
#net start /load |
Now the Fast Connect server is ready to allow PC clients to connect and access the exported file shares.
Typically, PC clients must define drive mappings to use the CIFS exported file shares. These drive mappings can be done from Windows or from the DOS command prompt.
You can use the following mechanisms to define or undefine mappings between PC drives and CIFS file shares. For the following examples, assume that the NetBIOS server name is indus19.in.ibm.com and that file shares test, test1, is defined.
For DOS, enter the following:
1
2
3
4
5
6
7
|
DOS> net help (help info for DOS) DOS>net use F: \\indus19.in.ibm.com\test /user:tstuser tstpass DOS>net use H: \\indus19.in.ibm.com\test1 (When username and password is not specified in the command line, then a pop window appear asking for the username and the password) DOS> copy F:\oldfile H:\newfile (uses the mapped drives) DOS> net use F: /delete (delete the mapped network drive) |
For Windows, do the following:
Here are some other useful commands:
1
|
#net status |
1
|
#net config |
1
|
#net statistics |
You can reset the statistics counts by typing net statistics /reset
on the command line.
1
|
#net session |
1
|
#net share |
1
|
#net user |
1
|
#net user username /delete |
AIX SMBFS is the client software that allows AIX servers to mount shares and exports from the SMB server like Windows XP, Windows 2003, Windows 2000, Windows NT, or Windows 98 operating systems into the AIX Virtual File System (VFS). This eliminates the need to install the NFS servers on the PC clients and to enhance the file sharing between SMB servers and AIX through the VFS interface.
AIX SMBFS requires the installation of the following filesets:
#lsdev -l nsmb0
/etc/mkcifs_fs
, which creates the nsmb0 device and brings it to the available state. #mkdir /mnt #chmod 777 /mnt
#mount -v cifs -n (servername)/username/password /(sharename) /(mountpoint)
Article Number: 270
Posted: Mon, Jun 18, 2018 3:32 PM
Last Updated: Mon, Jun 18, 2018 3:32 PM
Online URL: http://kb.ictbanking.net/article.php?id=270