LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 01-14-2019, 10:58 AM   #1
breadbin
Member
 
Registered: Sep 2002
Location: Dublin, Ireland
Distribution: Linux Mint 17
Posts: 128

Rep: Reputation: 25
Windows 10 cannot see my shared linux folder!


I am using Linux Mint 18.1 on a laptop and have shared a folder in my home folder. The laptop is on pretty much all the time so it is ideal as a media server. I installed Samba and the gui for editing the settings and have the folder shared and it shows up in system-config-samba too. This laptop is connected to a router via wifi.

The other computer is running Windows 10 and is connected via the ethernet cable. When I go to the network, it shows up my router and printer ok but not the linux shared folder. Any suggestions?

I also have a Plex media server running on the Linux laptop which it sees no bother I've restarted both computers multiple times with no change.

also, i shared the folder in the file manager in linux mint with guest access ticked and allow other users to create and delete files.

Last edited by breadbin; 01-14-2019 at 11:01 AM.
 
Old 01-14-2019, 06:49 PM   #2
pholland
Member
 
Registered: Jun 2015
Posts: 78

Rep: Reputation: Disabled
A Windows OS can't read the Linux ext? filesystem without special software. I wonder if Linux Reader would pick up that shared folder.

https://www.diskinternals.com/linux-reader/
 
Old 01-14-2019, 08:40 PM   #3
allend
LQ 5k Club
 
Registered: Oct 2003
Location: Melbourne
Distribution: Slackware-current
Posts: 5,277

Rep: Reputation: 1919Reputation: 1919Reputation: 1919Reputation: 1919Reputation: 1919Reputation: 1919Reputation: 1919Reputation: 1919Reputation: 1919Reputation: 1919Reputation: 1919
Windows 10 has a new default that it will not connect to a server that supports the SMB1 protocol. This appears to be a security measure to stop the security loophole that could be exposed by downgrading to the SMB1 protocol.

You can:
1. Edit your smb.conf file so that Samba does not provide SMB1
Code:
client min protocol = SMB2
client max protocol = SMB3
server min protocol = SMB2
server max protocol = SMB3
or

2. Enable Legacy SMB1 support in Windows 10
 
1 members found this post helpful.
Old 01-15-2019, 12:55 AM   #4
breadbin
Member
 
Registered: Sep 2002
Location: Dublin, Ireland
Distribution: Linux Mint 17
Posts: 128

Original Poster
Rep: Reputation: 25
Quote:
Originally Posted by pholland View Post
A Windows OS can't read the Linux ext? filesystem without special software. I wonder if Linux Reader would pick up that shared folder.

https://www.diskinternals.com/linux-reader/
I'm using Samba so i thought that was all I needed. I never actually thought of that though! I might try it on the USB drive I have mounted which is NTFS.

I have enabled SMB 1.0 in Windows 10 already! I don't know what I'm doing but following advice from other posts.
 
Old 01-15-2019, 04:57 AM   #5
alexpaton
Member
 
Registered: Jul 2009
Distribution: Ubuntu & ClearOS
Posts: 163

Rep: Reputation: 47
linux-reader is only suitable for LOOKING at files on a linux formatted hard drive, which is connected to a windows computer. It won't achieve what you want.

I would be very wary of some of the gui's for samba. Several of them that i have used, break samba completely. Which one did you use?

Have you tried mapping the drive in windows using IP Address, rather than trying to browse for it? There are different processes involved in each method.
 
1 members found this post helpful.
Old 01-15-2019, 06:15 AM   #6
breadbin
Member
 
Registered: Sep 2002
Location: Dublin, Ireland
Distribution: Linux Mint 17
Posts: 128

Original Poster
Rep: Reputation: 25
Quote:
Originally Posted by alexpaton View Post
linux-reader is only suitable for LOOKING at files on a linux formatted hard drive, which is connected to a windows computer. It won't achieve what you want.

I would be very wary of some of the gui's for samba. Several of them that i have used, break samba completely. Which one did you use?

Have you tried mapping the drive in windows using IP Address, rather than trying to browse for it? There are different processes involved in each method.
Thanks for the reply!

I used "system-config-samba" because I wasn't sure if I had to alter the samba config file. It added a bit of text to that file containing information about the folder I am sharing. It wasn't there previously even though the folder was supposed to be shared. Unless Linux Mint stores this information somewhere else. So I thought that might have fixed it but nothing still.

I tried mapping my folder in windows but again no luck. I tried setting a new shortcut to it on the desktop. I used "ifconfig" to get my IP address on the laptop. The inet addr is the right one? In this format? "\\ip-address\shared-folder". Do I need to add the /home/username/shared-folder too? Like does the ip-address look at the root of the laptop or the home folder?
 
Old 01-15-2019, 07:17 AM   #7
alexpaton
Member
 
Registered: Jul 2009
Distribution: Ubuntu & ClearOS
Posts: 163

Rep: Reputation: 47
"\\ip-address\shared-folder" is correct. Windows knows nothing of the file structure of the linux system it is connecting to. As far as Windows is concerned, when connecting to a Samba share, it is a Windows share (almost).

Quote:
Like does the ip-address look at the root of the laptop or the home folder?
No. It sees the shared folder(s), and nothing else, just as it would if you were sharing from windows to windows.
 
Old 01-15-2019, 07:33 AM   #8
alexpaton
Member
 
Registered: Jul 2009
Distribution: Ubuntu & ClearOS
Posts: 163

Rep: Reputation: 47
Actually, one other thing that I often forget to do (and get frustrated because things don't work), is to set up a Samba user, with a password. It is not advisable to let Windows have full read/write access to your Linux shares without at least having a password.

And here is a couple of tutorials, though they are a bit old.
https://www.liberiangeek.net/2014/03...iguring-samba/
https://www.liberiangeek.net/2014/03...ng-samba-user/

Last edited by alexpaton; 01-15-2019 at 07:54 AM.
 
2 members found this post helpful.
Old 01-15-2019, 09:49 AM   #9
Rickkkk
Senior Member
 
Registered: Dec 2014
Location: Montreal, Quebec, CANADA
Distribution: Arch
Posts: 1,113

Rep: Reputation: 420Reputation: 420Reputation: 420Reputation: 420Reputation: 420
Hi breadbin,

I second the information provided in alexpaton's posts. Make sure the smb protocol versions are matched up between Win and linux and make sure your samba users and native users are set up on the linux side coherently.

Cheers.
 
Old 01-15-2019, 05:35 PM   #10
breadbin
Member
 
Registered: Sep 2002
Location: Dublin, Ireland
Distribution: Linux Mint 17
Posts: 128

Original Poster
Rep: Reputation: 25
Thanks for all the suggestions lads! I got it working mostly now. I am not 100% what I did but it was one of two things really. I mapped the drive successfully to a shortcut on the windows desktop. That was the biggest thing I think. I found my IP address and made the shortcut and this time it actually made it, whereas before it was saying the location could not be found. It still would not let me access it though.

I just now made the folder 777, i.e. chmod 777 but I also made a user in the samba config so it is one of them two things that worked. I still cannot browse for it in the Network page in Windows but I can access it with the shortcut directly. I wonder now is there a security risk with this? Should I get rid of the 777 on it?
 
Old 01-16-2019, 05:52 AM   #11
alexpaton
Member
 
Registered: Jul 2009
Distribution: Ubuntu & ClearOS
Posts: 163

Rep: Reputation: 47
There is always a security risk with 777.

As to the browsing, there are 2 possibilities that I can think of which are most likely.
1) Windows has Network Discovery (I think that is the setting) switched off. That is the default on Windows 10, I believe.
2) If you have a vpn or firewall on your linux box, it is possible that you will need to open the ports for samba.



...........oh an 3) possibly your router could be blocking it.

An excellent page on samba ports and what to do if they are blocked:- https://www.cyberciti.biz/faq/what-p...linux-systems/
 
Old 01-16-2019, 06:01 AM   #12
yancek
LQ Guru
 
Registered: Apr 2008
Distribution: PCLinux, Slackware
Posts: 8,603

Rep: Reputation: 1772Reputation: 1772Reputation: 1772Reputation: 1772Reputation: 1772Reputation: 1772Reputation: 1772Reputation: 1772Reputation: 1772Reputation: 1772Reputation: 1772
Quote:
I wonder now is there a security risk with this? Should I get rid of the 777 on it?
Those permissions on s Linux system give anyone with any access to the computer full read/write/execute permissions. write includes delete so theoretically anyone with access could then delete the entire contents of the folder. I'm not a samba user so others probably could explain the negatives in this case.
 
Old 01-16-2019, 10:18 AM   #13
alexpaton
Member
 
Registered: Jul 2009
Distribution: Ubuntu & ClearOS
Posts: 163

Rep: Reputation: 47
Quote:
Originally Posted by yancek View Post
Those permissions on s Linux system give anyone with any access to the computer full read/write/execute permissions. write includes delete so theoretically anyone with access could then delete the entire contents of the folder. I'm not a samba user so others probably could explain the negatives in this case.
If the connecting computer is Windows, I believe that the potential negative is ....................................... Armageddon. (viruses, trojans etc. etc.)
 
  


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] Problem in Accessing folder from windows xp to fedora's shared folder uk.engr Linux - Newbie 4 07-21-2012 02:39 AM
Windows machine can not see my samba shared folder. mtlhd Linux - Server 13 05-09-2009 09:01 PM
windows cannot read linux's shared folder gymnart Linux - Software 21 04-23-2009 11:39 AM
how can i move this folder of music from /root/Shared to /home/coffee/Shared ? thx mr_coffee Linux - Newbie 9 01-23-2006 06:50 AM
I can see shared units on Windows boxes, but can't see any files within these units emiliofil Linux - Networking 2 01-24-2005 08:13 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 12:48 PM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration