NETGEAR is aware of a growing number of phone and online scams. To learn how to stay safe click here.

Forum Discussion

Tennessee_Slim's avatar
Aug 29, 2011

How to map to NAS share from Linux by CLI?

I've searched the forum and found others having problems mapping ReadyNAS shares to a *NIX box but none of that helped me find a solution.

I have two NVs, one is a plus, both are on RAIDiator 4.1.7. All shares on both NASs have CIFS and NFS only enabled and no security measures. None.

What I'm trying to do is create temporary mounts to shares on the NASs from an Ubuntu box by command line. I can do this fine using Ubuntu's "Connect to Server" applet, but that requires several user inputs, which have to be repeated every time the system is rebooted. And with several different shares to be mounted independently, it's a PITA. And I'm cultivating my Leenuks-fu again so, unfortunately, this system is requiring reboots far more frequently than any self-respecting *NIX box should. If I can figure out the CLI syntax, I can write a script but it's the syntax that has me bumfuzzled.

I'm sudo-ing the mount.cifs command and I've systematically tried what I think are all the pertinent variables to the command but I keep getting "mount error(13): Permission denied". I've used the remote host's name and it's IP address. I've tried the 'guest' option, and I've tried authenticating. I've tried user 'admin' and user 'root'. I've tried prefixing the user name with the 'domain' name and with the name of the remote host (whose login is what I'm using). I've used all the above in every possible configuration and repeated the identical procedure on both NASs. And I'm certain I'm using the proper password. 'user' and 'password' are the only options I'm trying.

Regardless of the combination, the response is:

mount error(13): Permission denied
Refer to the mount.cifs(8) manual page (e.g. man mount.cifs)


Except the man pages for mount.cifs don't give me any clue what "error(13)" is all about.

dmesg shows a long list of CIFS VFS: cifs_mount failed w/return code = -13.

The Linux box is on Ubuntu 11.04, kernel 2.6.38-11-generic. It's a headless box I administer remotely via WiFi and VNC. My network is a mixed Win32/*NIX IPV4-only workgroup, no domain or DC. My NV is the DHCP server and it is configured to use the domain name "mshome," which actually is just a workgroup.

While I had one NAS share mounted (via the appplet), I searched the entire system for any file modded within the last day that contained the name of the remote folder in that share. Linux being Linux, I figured it had to be logged in clear text somewhere, and I was hoping it would show me some snippet of syntax that might give me a "Eureka" moment. But it found nothing.

If anyone has any insight how to do this, or what I'm doing wrong, I'd be obliged if you'd pass it along.

11 Replies

Replies have been turned off for this discussion

NETGEAR Academy

Boost your skills with the Netgear Academy - Get trained, certified and stay ahead with the latest Netgear technology! 

Join Us!

ProSupport for Business

Comprehensive support plans for maximum network uptime and business peace of mind.

 

Learn More