Mount.cifs

From LQWiki
Jump to: navigation, search

mount.cifs mounts a Linux CIFS filesystem. It is usually invoked indirectly by the mount(8) command when using the "-t cifs" option. This command only works if the kernel supports the cifs filesystem. The CIFS protocol is the successor to the SMB protocol and is supported by most Windows servers and many other commercial servers and Network Attached Storage appliances as well as by the popular Open Source server Samba.

The mount.cifs utility attaches the UNC name (exported network resource) to the local directory mount-point. It is possible to set the mode for mount.cifs to setuid root to allow non-root users to mount shares to directories for which they have write permission.

The syntax and manpage were loosely based on that of smbmount. Recent distributions have replaced smbmount with mount.cifs.

Example

mount -t cifs -o username=Administrator,password=passWord //10.20.88.12/DATA1 /mnt/data1

Mounts the share DATA1 from 10.20.88.12 to /mnt/data1. It is equivalent to

mount.cifs //10.20.88.12/DATA1 /mnt/data1 -o user=Administrator pass=passWord