How to mount a windows share as guest?
I am trying to map a share that is hosted by an Asus router which has an external drive connected. The share is setup as guest and works fine if accessed within the GUI (Kubuntu) but I want to mount it as a real mount point so that I can just open files directly instead of having to first download them.
When I try to mount by command line it prompts for a password. This is the command I am trying: Code:
mount.cifs //192.168.1.1/drive /mnt/drive -o=guest How is this done? |
I think this is what you are asking.
https://wiki.ubuntu.com/MountWindowsSharesPermanently |
this should work
Code:
mount -t cifs //192.168.1.1/drive /mnt/drive |
Tried that already, it just prompts for a password.
I don't want to actually use fstab, as this is not really a permanent mount, ex: it may possibly be unavailable, and I don't want my system to lockup because it's trying to access it. |
What happens when just press the enter key at the password prompt?
With Ubuntu you need to use sudo since root is disabled by default. The syntax is: sudo mount -t cifs //192.168.1.1/drive /mnt/drive -o username=guest,password="" The password is actually your Kubuntu users password to allow sudo. You can add a line to your /etc/fstab to mount the drive at boot up if desired. You should be able to open the files in the file browser without downloading... |
Nope no go. I just keep getting access denied whether I use root or sudo.
It does work through GUI, but I'm hoping to have a real mount point. There is also an issue using the GUI where I can't delete anything, can only add. If it helps this is what I get in dmesg: Code:
[122842.174965] CIFS VFS: Send error in SessSetup = -13 |
You can use either smbmount or mount commands. In reality they call mount.cifs. Is samba installed? The file browser has a built in samba client which is why it works through the desktop.
Are you using the correct drive share name? Does the /mnt/drive directory exist? You can see the share name via the smbclient command (May have to install samba first) smbclient -L 192.168.1.1 |
Yeah don't have smbclient or any of the smb commands. I tried to guess what to type in apt-get but no luck finding what package gives those commands. Tried smb-client, samba, samba-common, samba-client etc...
That may be part of my issue, probably need those programs installed. Just not sure what they call it in my distro. |
In a nutshell Kubuntu is a derivative of Ubuntu that uses KDE for the desktop environment. What version are you running?
Have you verified you are specifying the correct share name? |
This the version:
Code:
DISTRIB_ID=Ubuntu |
All times are GMT -5. The time now is 05:41 AM. |