Sunday, June 24, 2012

Read / Write Samba mount using fstab in Ubuntu 12.04


Tried to configure /etc/fstab to mount to the samba share but it always does it in read only mode.

/etc/fstab entry:
//192.x.x.x/public /media/backup cifs rw,user=guest 0 0
The local mount /media/backup remains a readonly. There are couple of issues.
1. It does not tell fstab to use rw
2. when the mount happens it does get mapped to local user that you want rw access as

Remedy:
Provide local user name, uid, gid for proper rw access. 

//192.x.x.x/public    /media/backup    cifs rw,_netdev,user=guest,uid=1000,gid=1000    0    0

The _netdev delays the mount till the network is up during startup.

Just installed the newest Ubuntu 13.04. It is cool, it is fast and I love it. Except, for usual hiccups. My last 10.04 was so stable I forgot how I got it to that configuration :)

Best reference on this so far:
https://wiki.ubuntu.com/MountWindowsSharesPermanently

No comments:

Post a Comment