Thanks, Matthew, that worked perfectly. I have saved it in a script so 
that I can mount the NAS from the CLI when I need to use it, and have 
full read-write access.


David King


Matthew Daubney wrote:
>>     
>
> Hi David,
>
> You need to tell the mount line to override the uid and gid of the
> files. This can be done with the options switch on the mount line like:
>
> sudo mount -t cifs '//192.168.0.4/DISK 1' /media/nas1 -o
> uid=1000,gid=1000
>
> You'll need to look up the id for your user and your group, you can find
> that info in /etc/group, which will look like "yourgroupname:x:gid:" and
> in /etc/passwd.
>
> If you're the first user they'll probab;y both be 1000.
>
> Hope that helps!
>
> -Matt Daubney
>
>
>
>
>   

-- 
ubuntu-uk@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-uk
https://wiki.ubuntu.com/UKTeam/

Reply via email to