LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 06-24-2014, 01:00 AM   #1
Red Squirrel
Senior Member
 
Registered: Dec 2003
Distribution: Mint 20.1 on workstation, Debian 11 on servers
Posts: 1,336

Rep: Reputation: 54
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
I also tried various combinations like -o guest or just guest or leaving that out etc... no go. It always prompts for a password.

How is this done?
 
Old 06-24-2014, 05:22 PM   #2
jefro
Moderator
 
Registered: Mar 2008
Posts: 21,993

Rep: Reputation: 3628Reputation: 3628Reputation: 3628Reputation: 3628Reputation: 3628Reputation: 3628Reputation: 3628Reputation: 3628Reputation: 3628Reputation: 3628Reputation: 3628
I think this is what you are asking.
https://wiki.ubuntu.com/MountWindowsSharesPermanently
 
Old 06-24-2014, 09:15 PM   #3
dolphin_oracle
MX Linux
 
Registered: Dec 2013
Posts: 402

Rep: Reputation: Disabled
this should work
Code:
mount -t cifs //192.168.1.1/drive /mnt/drive
you may need to be root or use sudo to issue the command.
 
Old 06-25-2014, 06:13 PM   #4
Red Squirrel
Senior Member
 
Registered: Dec 2003
Distribution: Mint 20.1 on workstation, Debian 11 on servers
Posts: 1,336

Original Poster
Rep: Reputation: 54
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.

Last edited by Red Squirrel; 06-25-2014 at 06:14 PM.
 
Old 06-25-2014, 06:29 PM   #5
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,729

Rep: Reputation: 5919Reputation: 5919Reputation: 5919Reputation: 5919Reputation: 5919Reputation: 5919Reputation: 5919Reputation: 5919Reputation: 5919Reputation: 5919Reputation: 5919
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...
 
Old 06-27-2014, 04:23 AM   #6
Red Squirrel
Senior Member
 
Registered: Dec 2003
Distribution: Mint 20.1 on workstation, Debian 11 on servers
Posts: 1,336

Original Poster
Rep: Reputation: 54
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
[122842.175113] CIFS VFS: cifs_mount failed w/return code = -13
[122857.077737] CIFS VFS: Send error in SessSetup = -13
[122857.077869] CIFS VFS: cifs_mount failed w/return code = -13
[122873.298618] CIFS VFS: Send error in SessSetup = -13
[122873.298762] CIFS VFS: cifs_mount failed w/return code = -13
[122907.833431] CIFS VFS: Send error in SessSetup = -13
[122907.833588] CIFS VFS: cifs_mount failed w/return code = -13
Actually, I think I'm not even using the right command. I should be using smbmount right? How do I get that command? It's not valid on my system. I'm running Kubuntu.

Last edited by Red Squirrel; 06-27-2014 at 04:33 AM.
 
Old 06-27-2014, 07:01 AM   #7
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,729

Rep: Reputation: 5919Reputation: 5919Reputation: 5919Reputation: 5919Reputation: 5919Reputation: 5919Reputation: 5919Reputation: 5919Reputation: 5919Reputation: 5919Reputation: 5919
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
 
Old 06-27-2014, 03:51 PM   #8
Red Squirrel
Senior Member
 
Registered: Dec 2003
Distribution: Mint 20.1 on workstation, Debian 11 on servers
Posts: 1,336

Original Poster
Rep: Reputation: 54
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.
 
Old 06-27-2014, 04:13 PM   #9
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,729

Rep: Reputation: 5919Reputation: 5919Reputation: 5919Reputation: 5919Reputation: 5919Reputation: 5919Reputation: 5919Reputation: 5919Reputation: 5919Reputation: 5919Reputation: 5919
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?
 
Old 06-29-2014, 06:35 PM   #10
Red Squirrel
Senior Member
 
Registered: Dec 2003
Distribution: Mint 20.1 on workstation, Debian 11 on servers
Posts: 1,336

Original Poster
Rep: Reputation: 54
This the version:

Code:
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=13.10
DISTRIB_CODENAME=saucy
DISTRIB_DESCRIPTION="Ubuntu 13.10"
NAME="Ubuntu"
VERSION="13.10, Saucy Salamander"
ID=ubuntu
ID_LIKE=debian
PRETTY_NAME="Ubuntu 13.10"
VERSION_ID="13.10"
HOME_URL="http://www.ubuntu.com/"
SUPPORT_URL="http://help.ubuntu.com/"
BUG_REPORT_URL="http://bugs.launchpad.net/ubuntu/"
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
can not share data slackware on virtualbox as guest OS with windows seven as host OS azmi nur nst Slackware 1 06-09-2012 02:32 PM
how to share from windows 7(host) to RHEL6.2 (guest) on VMware workstation 8.0 shibir Linux - Server 5 05-30-2012 04:54 AM
VirtualBox: I want to share files between Fedora 9 host and Windows XP guest. Iltbreg Linux - Networking 5 10-22-2008 05:03 AM
mount windows share export to samba share -> improve network performance tuning newuser77 Linux - Server 1 07-23-2008 11:28 AM
mount samba share as guest user twac Linux - Software 3 06-05-2007 01:55 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 06:01 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration