![]() The credentials file has the following format: If the user is in windows workgroup or domain you can set it as follows: sudo mount -t cifs -o username=,domain= //WIN_SHARE_IP/ /mnt/win_shareįor better security it is recommended to use a credentials file, which contains the share username, password and domain. ![]() The password can also be provided on the command line: sudo mount -t cifs -o username=,password= //WIN_SHARE_IP/ /mnt/win_share You can work with the remote files as if they were local files. Once the share is mounted, the mount point becomes the root directory of the mounted file system. To verify that the remote Windows share is successfully mounted, use either the mount or df -h You will be prompted to enter the password: Password: Privileges to mount the share: sudo mount -t cifs -o username= //WIN_SHARE_IP/ /mnt/win_share ![]() Run the following command as root or user with sudo To serve as the mount point for the remote Windows share: sudo mkdir /mnt/win_share ![]() Mounting a remote Windows share is similar to mounting regular file systems. The package name may differ between Linux distributions. Installing CIFS utilities on CentOS and Fedora: sudo dnf install cifs-utils Installing CIFS utilities on Ubuntu and Debian: sudo apt update sudo apt install cifs-utils To mount a Windows share on a Linux system, first you need to install the CIFS utilities package. In this tutorial, we will explain how to manually and automatically mount Windows shares on Linux systems. The Common Internet File System (CIFS) is a network file-sharing protocol. On Linux and UNIX operating systems, a Windows share can be mounted on a particular mount point in the local directory tree using the cifs option of the mount
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |