Trying to mount my NAS but only have read only permission...

Hey there.

I am completely new to Linux and picking things up slowly.

I have a question about mounting my NAS NV+.

When I mount it, i use the following commands when logged on as user “matt” :

sudo mount -t cifs -o rw,username=Matt,password=matt //192.168.2.15/Matts /home/matt/GRUMPY/Matts
sudo mount -t cifs -o rw,username=Matt,password=matt //192.168.2.15/Torrents /home/matt/GRUMPY/Torrents
sudo mount -t cifs -o rw,username=Matt,password=matt //192.168.2.15/Media /home/matt/GRUMPY/Media
sudo mount -t cifs -o rw,username=Matt,password=matt //192.168.2.15/Programs /home/matt/GRUMPY/Programs

GRUMPY is the name of my NAS :smiley: by the way!

It mounts properly, BUT i cannot delete or rename files, so basically the user “matt” has read only privileges, and root has ownership of the mount.

How do I go about mounting these so that user “matt” has RW privileges ?

When I log on as root user and mount them, I can read and write as required, so this has led me to believe that my problem lies in my permissions for matt when mounting them…

I posted on the netgear forum and was asked to try and mount using the following command:

sudo mount -t cifs -o rw,nosetuids,noperm,username=Matt,password=matt //192.168.2.15/Media /home/matt/GRUMPY/Media

I then got the following :

mount error(5): Input/output error
Refer to the mount.cifs(8) manual page (e.g. man mount.cifs)

Any suggestions would be apprecaited!

Hope my ramble makes sense!

Cheers

Matt :stuck_out_tongue:

You need the additional option uid=matt so that the files are “owned” by matt. The username=Matt option only tells what account to login to the NAS.

Hey, Thanks for the reply…

sudo mount -t cifs -o rw,nosetuids,noperm,uid=matt,username=Matt,password=matt //192.168.2.15/Media /home/matt/GRUMPY/Media

Still gives me the same error…

No, ignore that netgear forum mis-suggestion and go back to your original commands and add the uid=matt option to those.

used the following and keep getting the same error:

matt@linux-os2k:~> sudo mount -t cifs -o rw,uid=matt,username=Matt,password=matt //192.168.2.15/Media /home/matt/NAS/
mount error(5): Input/output error
Refer to the mount.cifs(8) manual page (e.g. man mount.cifs)

Omit the uid=matt and see if you can go back to the situation in your first post to make sure that nothing changed.

Doesn’t seem like that is working now either… :s

You did remember to unmount before trying a new mount, right? Just run

mount

and it will show what’s mounted already.

Doesn’t seem like that is working now either… :s

Yep, checked what was mounted and the media folder isn’t included.

Is the NAS still contactable? You can try connecting to it using the smbclient program

smbclient //192.168.2.15/Media

for example

Maybe sudo is setting the “group” still as root, have a go with these:
if no credentials are required by the NAS device, you can be a guest to the NAS and mount as user=matt, group=users:

sudo mount -t cifs -o guest,uid=matt,gid=users //192.168.2.15/Media /home/matt/GRUMPY/Media

or maybe this next one will work if you’ve set it up so NAS requires passwords, but keep same emphasis on getting the group right too:

sudo mount -t cifs -o username=whatever,password=blahblah,uid=matt,gid=users //192.168.2.15/Media /home/matt/GRUMPY/Media

Hey guys,

I tried the smb client and got the following:

matt@linux-os2k:~> smbclient //192.168.2.15/Media
Enter matt’s password:
Domain=[WORKGROUP] OS=[Unix] Server=[Samba 3.0.37]
smb: > ls
NT_STATUS_NETWORK_ACCESS_DENIED listing *
Error in dskattr: NT_STATUS_NETWORK_ACCESS_DENIED
smb: >

??

Wow, that’s a new one to me. Does the NAS still work for other clients? I hope it’s not a disk error in the NAS. Does the NAS have a webpage showing its status?

Hey just at work atm so will check status when I get home but my WDTV can access , read only, the media folder…

I will restart the nas when I get home and try again.

Matt

Hey Ken_Yap

Thank you very much for all your help.

The problem was the share name on the NAS needed to be reauthorised to my username as I changed the security level and it wasn’t recognising the old permission setup for the particular share.

Once I changed the permission on the NAS web page, and then used your addition to my mount command, the drive is accessible just as needed.

Cheers!! lol!lol!

Excellent.