How To Configure Cifs In Linux?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
1. Install cifs-utils package using the following command:
sudo apt-get install cifs-utils
2. Create a local directory where you want to mount the share:
sudo mkdir /mnt/cifs
3. Mount the share using the following command:
sudo mount -t cifs //server-ip-address/sharename /mnt/cifs -o username=username,password=password
4. To make the mount permanent, edit the /etc/fstab file with the following line:
//server-ip-address/sharename /mnt/cifs cifs username=username,password=password 0 0
5. Save and exit the file.
6. To mount the share, run the following command:
sudo mount -a