Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I used to mount my local network HDD (samba share) using following fstab entry:

// /media/MyBookLive smbfs credentials=/home/gacek/.mybookcredentials,uid=1000,gid=1000

Of course, the .mybookcredentials file contains authentication details for user with full rights. It used to work in 12.x, but I had to reinstall my Ubuntu and right now (in 11.10) it mounts the share in read-only mode.

I also tried to replace smbfs with cifs with no result.

How can I mount my samba share (via fstab) with write permissions?


OK, I haven't noticed that my GID changed. After checking my UID using:

id -u username

And replacing with it the UID and GID in fstab file all works - I have read-write permissions to my mounted samba disc.

share|improve this question

Try adding the "defaults" option

// /media/MyBookLive cifs defaults,credentials=/home/gacek/.mybookcredentials,uid=1000,gid=1000

or the "rw" option.

// /media/MyBookLive cifs rw,credentials=/home/gacek/.mybookcredentials,uid=1000,gid=1000
share|improve this answer
After adding defaults or rw it says that the line is incorrect – Gacek Dec 14 '12 at 21:22
I just tested similar lines and had success, but only if I used 'cifs' instead of 'smbfs'. I have updated the answer accordingly. – jdthood Dec 14 '12 at 21:34
Sorry, still it says there's some error. I found where was my mistake - see my update. so the question is solved – Gacek Dec 14 '12 at 22:13

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

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