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=******** // /mnt/REMOTE

Where ShareName is shared as R/W on server, 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".



1 Answer 1


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 // /home/pi/REMOTE

  • You are right about the mount point. However, the creds in the mount command are purely Windows, as I point out in my post.
    – SDsolar
    Commented Jan 14, 2017 at 6:27
  • Please accept your own answer with a click on the tick on its left side. Only this will finish the question and it will not pop up again year for year.
    – Ingo
    Commented Feb 23, 2020 at 15:40

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.