Server Side: Mount the windows share folder with spaces

started by Vince Wicks on May 30, 2013 — RSS Feed

Vince Wicks Vince Wicks
Posts: 38

Create a hidden file under root home folder. Provide the user login items
vim /root/.credentials
username=domainmy_user
password=mypassword

Follow the below command for mount the windows partition

mount -t cifs "//server/My Share" /mnt/windows_share -o credentials=/root/.credentials

Then add the below entry in /etc/fstab for permanent mount

//server/My40Share /mnt/windows_share cifs rw,mand 0 0

Source

Web Design.org

You must login to reply