Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game. |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
|
06-24-2014, 01:00 AM
|
#1
|
Senior Member
Registered: Dec 2003
Distribution: Mint 20.1 on workstation, Debian 11 on servers
Posts: 1,338
Rep:
|
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?
|
|
|
06-24-2014, 05:22 PM
|
#2
|
Moderator
Registered: Mar 2008
Posts: 22,114
|
|
|
|
06-24-2014, 09:15 PM
|
#3
|
MX Linux
Registered: Dec 2013
Posts: 402
Rep:
|
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.
|
|
|
06-25-2014, 06:13 PM
|
#4
|
Senior Member
Registered: Dec 2003
Distribution: Mint 20.1 on workstation, Debian 11 on servers
Posts: 1,338
Original Poster
Rep:
|
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.
|
|
|
06-25-2014, 06:29 PM
|
#5
|
Moderator
Registered: Aug 2002
Posts: 26,129
|
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...
|
|
|
06-27-2014, 04:23 AM
|
#6
|
Senior Member
Registered: Dec 2003
Distribution: Mint 20.1 on workstation, Debian 11 on servers
Posts: 1,338
Original Poster
Rep:
|
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.
|
|
|
06-27-2014, 07:01 AM
|
#7
|
Moderator
Registered: Aug 2002
Posts: 26,129
|
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
|
|
|
06-27-2014, 03:51 PM
|
#8
|
Senior Member
Registered: Dec 2003
Distribution: Mint 20.1 on workstation, Debian 11 on servers
Posts: 1,338
Original Poster
Rep:
|
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.
|
|
|
06-27-2014, 04:13 PM
|
#9
|
Moderator
Registered: Aug 2002
Posts: 26,129
|
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?
|
|
|
06-29-2014, 06:35 PM
|
#10
|
Senior Member
Registered: Dec 2003
Distribution: Mint 20.1 on workstation, Debian 11 on servers
Posts: 1,338
Original Poster
Rep:
|
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/"
|
|
|
All times are GMT -5. The time now is 07:52 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|