LinuxQuestions.org
Help answer threads with 0 replies.
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-13-2015, 02:21 PM   #1
adanedhel728
Member
 
Registered: Sep 2007
Distribution: Ubuntu Lucid
Posts: 122

Rep: Reputation: 21
How do I set up a shared network folder?


I've been trying to figure this out for a few hours and I've made zero progress.

On my desktop computer (Linux Mint), I set up a shared folder using the "Shared Folders" dialog. I had to share as a Windows share because there were no other options available.

My Android devices can connect to it just fine through ES File Explorer-- I just have to enter the username and password. But when I try to connect to it from my laptop through Caja (also Linux Mint), I get "Failed to mount Windows share: Invalid Argument." (Attached screenshot.)

I've also tried to connect via SSH, based on something I found on Google, but it just gave the error "SSH program unexpectedly exited." Everything else that I found on Google was strictly about sharing between a Windows and Linux machine, which is not what I'm doing.

Any ideas on how to correct this?
Attached Thumbnails
Click image for larger version

Name:	windows share.png
Views:	274
Size:	32.4 KB
ID:	18700  
 
Old 06-13-2015, 08:19 PM   #2
berndbausch
LQ Addict
 
Registered: Nov 2013
Location: Tokyo
Distribution: Mostly Ubuntu and Centos
Posts: 6,316

Rep: Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002
Quote:
Originally Posted by adanedhel728 View Post
My Android devices can connect to it just fine through ES File Explorer-- I just have to enter the username and password. But when I try to connect to it from my laptop through Caja (also Linux Mint), I get "Failed to mount Windows share: Invalid Argument." (Attached screenshot.)
My first thought when I see "Invalid argument" is a user error. While I don't know Mint and its GUI tools, I wonder why the Share field in your screenshot is empty?

You should also use command line tools for checking. In this case, smbclient is the right tool. smbclient -L <server name or IP address> gives you a list of shares, and smbclient //server/share allows you to access the share as if it were an ftp server. If smbclient gives you errors, they should give you clues. If it doesn't, something is wrong with the way you use the GUI, or the GUI doesn't use Samba correctly (unlikely).
 
Old 06-14-2015, 12:52 PM   #3
adanedhel728
Member
 
Registered: Sep 2007
Distribution: Ubuntu Lucid
Posts: 122

Original Poster
Rep: Reputation: 21
Thanks for responding; I appreciate it.

I'm sure it is user error insofar as I don't know how to work the program. The problem is that nothing that I've been able to find on Google has been relevant to my particular problem. (And, the "Share" field is blank because I don't know what goes in there.)

Regarding the two commands that you suggested I try-- They both seem to work fine, and this is the output (I don't think it'll cause any security problems to post this here):
Quote:
andrew@andrew-Inspiron-1501 ~ $ smbclient -L 192.168.1.150
Enter andrew's password:
Domain=[WORKGROUP] OS=[Unix] Server=[Samba 4.1.6-Ubuntu]

Sharename Type Comment
--------- ---- -------
IPC$ IPC IPC Service (andrew-P55A-UD3 server (Samba, Linux Mint))
Videos Disk
Shared Folder Disk
print$ Disk Printer Drivers
HP-Officejet-2620-series Printer HP Officejet 2620 series
Domain=[WORKGROUP] OS=[Unix] Server=[Samba 4.1.6-Ubuntu]

Server Comment
--------- -------
andrew-Inspiron-1501 server (Samba, Linux Mint)
ANDREW-P55A-UD3 andrew-P55A-UD3 server (Samba, Linux Mint)

Workgroup Master
--------- -------
HOME NORMAN-WEBSERVE
WORKGROUP ANDREW-P55A-UD3
andrew@andrew-Inspiron-1501 ~ $ smbclient //192.168.1.150/Shared\ Folder
Enter andrew's password:
Domain=[WORKGROUP] OS=[Unix] Server=[Samba 4.1.6-Ubuntu]
smb: \> ls
. D 0 Sun Jun 14 12:48:46 2015
.. D 0 Sat Jun 13 08:03:03 2015
test folder D 0 Sun Jun 14 12:48:43 2015
new file N 0 Sun Jun 14 12:48:39 2015

46927 blocks of size 16777216. 19497 blocks available
smb: \> pwd
Current directory is \\192.168.1.150\Shared Folder\
UPDATE: I was able to find a bash command on how-to geek, in particular the command

Quote:
sudo mount -t cifs -o username=andrew,password=**** //192.168.1.150/Shared\ Folder /media/NetworkShares/Desktop\ Shared\ Folder
mounts the network share "Shared Folder" from the host on my laptop's folder "/media/NetworkShares/Desktop Shared Folder." I created a bash script on my desktop that, in a very non-elegant way, works fairly well. I still don't know what I was doing wrong with the "Connect to server" dialog, though.

Thanks very much to berndbausch for giving me the idea to look into CLI solutions. Now I'll try to mark this as "solved" if I can remember how to do that.

Last edited by adanedhel728; 06-14-2015 at 03:47 PM. Reason: Updating
 
Old 06-15-2015, 03:09 AM   #4
berndbausch
LQ Addict
 
Registered: Nov 2013
Location: Tokyo
Distribution: Mostly Ubuntu and Centos
Posts: 6,316

Rep: Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002
Quote:
Originally Posted by adanedhel728 View Post
Thanks very much to berndbausch for giving me the idea to look into CLI solutions. Now I'll try to mark this as "solved" if I can remember how to do that.
Perhaps this motivates you to look "under the hood" more often, using command line tools. It's very instructive.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
[SOLVED] how to set different permission for sub directories of a samba shared folder golden_boy615 Linux - Server 10 12-16-2011 06:54 PM
How to set up public folder/ share folder for my network? Kiwi89 Linux - Server 6 10-31-2011 05:10 AM
Mount shared folder in home network kiwidoc66 Linux - Networking 2 02-17-2007 06:07 PM
How to set up a shared folder in sol 10? anti.corp Solaris / OpenSolaris 2 04-03-2006 01:28 PM
Need help creating a shared folder for the network dragon_fire04 Linux - Networking 7 09-03-2005 01:52 PM

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

All times are GMT -5. The time now is 01:57 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