LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Desktop
User Name
Password
Linux - Desktop This forum is for the discussion of all Linux Software used in a desktop context.

Notices


Reply
  Search this Thread
Old 08-11-2018, 02:13 PM   #1
Finsfree
LQ Newbie
 
Registered: Aug 2018
Posts: 10

Rep: Reputation: Disabled
SMB Share NO longer accessible?


I'm running Linux Mint 19 Tara 64-bit, Kernal Linux 4.15.0-20 generic x86_64, Mate 1.20.1.

All of a sudden I have lost the ability to connect to my SMB share on this machine. I was copying data over to it just fine and now I can't anymore. The client that I'm using is a Windows 10 and an Android. Before all this happened I had copied like 40GB of data already. I tried a simple restart but that Didn't work. What the hick would just make the SMB share not accessible anymore?

This is what I did to create the share (that was working).
Install Samba
○ sudo apt-get update
sudo apt-get install samba
Set a password for your user in Samba
○ sudo smbpasswd -a <user_name>
Create a directory to be shared
mkdir /home/<user_name>/<folder_name>
Make a safe backup copy of the original smb.conf file to your home folder, in case you make an error
sudo cp /etc/samba/smb.conf ~
Edit the file "/etc/samba/smb.conf"
sudo nano /etc/samba/smb.conf
Once "smb.conf" has loaded, add this to the very end of the file:

[<folder_name>] - make sure you use [] around the share name
path = /home/<user_name>/<folder_name>
valid users = <user_name>
read only = no

Restart the samba:
sudo service smbd restart
 
Old 08-11-2018, 03:55 PM   #2
Finsfree
LQ Newbie
 
Registered: Aug 2018
Posts: 10

Original Poster
Rep: Reputation: Disabled
In fact, I can't share with the GUI either using "Share Options".

Yes, I am on the same network.
 
Old 08-11-2018, 04:21 PM   #3
michaelk
Moderator
 
Registered: Aug 2002
Posts: 17,353

Rep: Reputation: 2233Reputation: 2233Reputation: 2233Reputation: 2233Reputation: 2233Reputation: 2233Reputation: 2233Reputation: 2233Reputation: 2233Reputation: 2233Reputation: 2233
What do you mean by lost the ability to connect? Does file explorer still show the network drive?
In a windows cmd box you can run some quick checks to see if the Windows PC is still connected to the share. The net command show the network drive and its status.

net use

net view \\mint_pc_host_name

From the Mint PC you can use the smbclient utility as a quick check. You might have to install the cifs-utils.

smbclient -L localhost -U user_name
Enter the user_name's password and the output should show the share.

In addition by default the [homes] share will automatically create shares for every use i.e path=/home/user_name by default. Just uncomment the [homes] section and restart samba.

Also apt-get update is used to synchronize the package index files from their sources. apt-get upgrade is used to install the newest versions of all packages.

I assume that /home is on the RAID or other large partition so that running out of space isn't a factor...
 
Old 08-11-2018, 10:10 PM   #4
Finsfree
LQ Newbie
 
Registered: Aug 2018
Posts: 10

Original Poster
Rep: Reputation: Disabled
I fixed it....kind of. I reinstalled an older version of Linux Mint (18.3). Everything seems to be working now.

I had a RAID configuration last time. Maybe I changed some setting that messed up the smb share.
 
  


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] epson printer no longer accessible across network samhill5215 Linux - Hardware 9 11-06-2012 06:40 PM
network computer is no longer accessible 708crane Linux - Newbie 3 12-13-2010 06:31 PM
Ubuntu 8.10 no longer accessible dmy407 General 3 11-30-2008 08:56 AM
cd-rom no longer accessible darinbolson Linux - General 3 09-23-2006 08:39 PM
SMB directories not accessible O(V)eGA_l2el) Fedora 4 05-21-2006 04:49 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Desktop

All times are GMT -5. The time now is 11:52 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration