I’ve been struggling with this all day, and always get a ‘mount error 13 = Permission denied’
I have an old openwrt box (my Vera Home Control)
cat /etc/openwrt_release DISTRIB_ID="OpenWrt" DISTRIB_RELEASE="10.03.1" DISTRIB_CODENAME="backfire" DISTRIB_DESCRIPTION="OpenWrt Backfire 10.03.1" cat /proc/version Linux version 220.127.116.11 (email@example.com) (gcc version 4.3.3 (GCC) ) #2 Fri Feb 22 04:07:32 PST 2013
I have all cifs packages installed, and I’ve created a directory on the openwrt unit called "mnt/nas", with full permissions (777)
mkdir /mnt/nas root@MiOS_12345678:/mnt# ls -la drwxr-xr-x 1 root root 0 Apr 11 13:30 . drwxr-xr-x 1 root root 0 Aug 18 2016 .. drwxrwxrwx 2 root root 0 Apr 11 13:30 nas
And on an raspberry pi, I created an SMB share called "myshare", with the credential username ‘pi’ and password ‘raspberry’ with full permissions (777).
sudo apt-get install samba samba-common-bin mkdir /home/pi/shared pi@raspberrypi:~ $ ls -la drwxr-xr-x 17 pi pi 4096 Apr 4 21:40 . drwxr-xr-x 3 root root 4096 Mar 4 22:47 .. drwxrwxrwx 2 pi pi 4096 Apr 8 10:10 shared
sudo nano /etc/samba/smb.conf [myshare] path = /home/pi/shared writeable=Yes create mask=0777 directory mask=0777 public=no sudo smbpasswd -a pi
The challenge I have is when I try to mount "myshare" onto the openwrt unit, it returns a permission denied error 13 message. See command below..
root@MiOS_12345678:/# mount -t cifs //192.168.102.215/myshare /mnt/nas -o user=pi,password=raspberry mount error 13 = Permission denied Refer to the mount.cifs(8) manual page (e.g.man mount.cifs) mount error 13 = Permission denied Refer to the mount.cifs(8) manual page (e.g.man mount.cifs) mount: mounting //192.168.102.215/myshare on /mnt/nas failed: Permission denied
I’ve tried many different variations of the mount command, but still the same mount error result. Any ideas ??
Here are some of the online resources I found mount commands - but no luck.
FYI : I granted full permission (777) to both directories to try and address the permission issues.
Here are some of the mount variations I’ve tried, subtle difference to these have been made too, all basically return the same permission error.
mount.cifs //192.168.102.215/myshare /mnt/nas -o user=pi,pass=raspberry mount -t cifs -o user=pi,pass=raspberry,nounix,noserverino //192.168.102.215/myshare /mnt/nas/ mount -t cifs //192.168.102.215/myshare /mnt/nas/ osec=ntlmv2,user=pi,pass=raspberry mount -t cifs //192.168.102.215/myshare /mnt/nas -o user=pi,password=raspberry mount -t cifs //192.168.102.215/myshare /mnt/nas -o unc=\\\\192.168.102.215\\myshare,ip=192.168.102.215,user=pi,pass=raspberry,dom=raspberrypi mount -t cifs //192.168.102.215/myshare /mnt/nas -ousername=pi,password=raspberry,file_mode=0644,dir_mode=0755,uid=pi
FYI - I can connect to the ‘myshare’ from other devices so the issue seems with the openwrt