Ubuntu – How to mount Windows Share on Ubuntu

cifsfstabmountpermissions

Currently having issues with mounting a drive to a Windows share via my Ubuntu 16.04 machine. Thoughts?

Sudo nano /etc/fstab:

//192.168.4.12/Share/Videos /media/Plex cifs 
defaults,noauto,nofail,username=Plex,password=XX,x-system.requires=network- 
online.target,vers=3.0 0 0'

Sudo mount -a

I don't receive any errors. Browsing to /media/Plex, I see that the folder is highlighted but can't see any media. When I do the following I get an error:

sudo mount -t cifs //192.168.4.12/Share/Videos /media/Plex
Password for root@//192.168.4.12/Share/Videos:  *****************
mount error(13): Permission denied
Refer to the mount.cifs(8) manual page (e.g. man mount.cifs)

Best Answer

  • Here's what I have used:

    Where MY_WIN_NAME is my windows username
          WIN_PASSWD  is my windows login password
          192.168.1.77 is the ip address of my windows box
          SHARE_NAME   is the windows share name
          /home/myacct/m edia is the mount point:                 
    
    mount -t cifs   -o \ user=MY_WIN_NAME,password=WIN_PASSWD,rw,hard,nosetuids,noperm,sec=ntlm \
          //192.168.1.77/SHARE_NAME  \
          /home/myacct/media