lauantai 12. maaliskuuta 2011

Mounting a NAS with user write permissions

I recently bought a NAS, Lacie Network Space. Although being slower than for example any USB mounted hard drive it works quite well as the common storage between my ten or so different networked devices I have at home.

The only big problem I had was that the drive was mounted as read only on my linux system. I could sudo to get write permissions but it only helped on command line operations. From GUI it was read only. Darn.

I know nothing about mount so I had to bang my head against a wall for quite some time. Googling for help made it even more confusing. I finally gave up and read the manual for mount and figured out how to do it.

Automatic mounting is based on configuration on /etc/fstab. The original entry for my NAS was


//netshare1.local/OpenShare /media/netshare1_openshare smbfs guest 0 0


To get it to mount as writable by my normal user id reynders I had to change it to this:


//netshare1.local/OpenShare /media/netshare1_openshare smbfs guest,uid=reynders,gid=users 0 0


Reboot and voilá!

Koh Phangan - Pretty much at the exact same time as the 2004 earthquake and tsunami hit the islands on the other side of the Thailand peninsula few hundred kilometers away. Notice all the crap that the full moon party people have left on the beach

Ei kommentteja:

Lähetä kommentti