0

I'm trying to access a Windows 2008r2 server share from a Raspberry Pi. On the Pi, I'm using the command

    sudo mount -t cifs -o user=username,password=******** //192.168.1.1/ShareName /mnt/REMOTE

Where ShareName is shared as R/W on server 192.168.1.1, username and password are valid and have R/W rights to ShareName on server, and directory REMOTE has been created on Raspberry Pi in /mnt

Windows machines have R/W access to ShareName using these credentials.

The Raspberry Pi can access the shared drive, but any write fails with "Permission Denied".

Why?

tim11g
  • 301
  • 3
  • 13

1 Answers1

0

After experimentation and hints from this article, I found a working solution. Two things are needed. Create the Pi's mount point in /home/pi instead of /mnt, and add uid and gid credentials for user pi to the mount command. Presumably they would need to change accordingly if your user account on the Pi is different than 'pi':

mkdir /home/pi/REMOTE chmod 666 /home/pi/REMOTE sudo mount -t cifs -o user=username,password=********,uid=pi,gid=pi //192.168.1.1/ShareName /home/pi/REMOTE

tim11g
  • 301
  • 3
  • 13