LinuxQuestions.org
Visit Jeremy's Blog.
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 09-02-2017, 10:46 PM   #1
jcmahne
Member
 
Registered: Nov 2010
Posts: 43

Rep: Reputation: 3
network-manager destroyed my file shares network folder (Mint)


I installed network-manager (Ubuntu) into Mint 18 with cinnamon.
I only installed it to check out it's features, not because I had any existing problems.
Now I cannot open the Network folder on the Mint desktop. It has no file associations with it.So I can't browse file shares.
I cannot remove the network-manager with Synaptic Package Manager as it breaks the cinnamon desktop and user login with it's removal.

If I try to disable the network-manager service, then there is no network service at all.

Thanks in advance for your time in helping with this.
 
Old 09-03-2017, 03:33 AM   #2
ferrari
LQ Guru
 
Registered: Sep 2003
Location: Auckland, NZ
Distribution: openSUSE Leap
Posts: 5,746

Rep: Reputation: 1136Reputation: 1136Reputation: 1136Reputation: 1136Reputation: 1136Reputation: 1136Reputation: 1136Reputation: 1136Reputation: 1136
A bit more clarification needed here. Is this a case of not being able to get to network shares because of LAN connectivity?

If not, report back with
Code:
ip add
Code:
ip route
Are you mounting remote file-systems at boot via /etc/fstab perhaps?
Code:
cat /etc/fstab
NetworkManager active and active connection?
Code:
sudo systemctl status NetworkManager
Code:
nmcli d
 
Old 09-03-2017, 04:12 AM   #3
ferrari
LQ Guru
 
Registered: Sep 2003
Location: Auckland, NZ
Distribution: openSUSE Leap
Posts: 5,746

Rep: Reputation: 1136Reputation: 1136Reputation: 1136Reputation: 1136Reputation: 1136Reputation: 1136Reputation: 1136Reputation: 1136Reputation: 1136
I assume the network shares you mentioned in your opening posts are samba shares? If you can get as far as confirming/demonstrating that you have LAN connectivity, show what is reported by the following
Code:
smbtree
 
Old 09-03-2017, 04:27 AM   #4
dejank
Member
 
Registered: May 2016
Location: Belgrade, Serbia
Distribution: Debian
Posts: 229

Rep: Reputation: Disabled
Part I do not get is this:

Quote:
I installed network-manager (Ubuntu) into Mint 18 with cinnamon.
What are you exactly talking about? What exactly did you do? Network manager comes as default in linux mint. So for sure you did not have to install it. Further more, it is usually not problem to replace network manager with, for example, wicd. At least it was not the case in mint 17 and before. It does not break cinnamon, just removes task cinnamon desktop. User login does not depend on network-manager, or at least it did not depend on it. So, once again, please explain what exactly did you do before problem occurred, as well as output of commands you did when trying to remove network manager.
 
Old 09-04-2017, 05:03 AM   #5
jcmahne
Member
 
Registered: Nov 2010
Posts: 43

Original Poster
Rep: Reputation: 3
Quote:
Originally Posted by dejank View Post
Part I do not get is this:



What are you exactly talking about? What exactly did you do? Network manager comes as default in linux mint. So for sure you did not have to install it. Further more, it is usually not problem to replace network manager with, for example, wicd. At least it was not the case in mint 17 and before. It does not break cinnamon, just removes task cinnamon desktop. User login does not depend on network-manager, or at least it did not depend on it. So, once again, please explain what exactly did you do before problem occurred, as well as output of commands you did when trying to remove network manager.
There is no application called Network Manager listed under menu, so I assumed it was not installed.
I found out today that it already was.
I ran the following commands :

sudo apt-get install network-manager
sudo apt-get install network-manager-gnome
 
Old 09-04-2017, 05:09 AM   #6
jcmahne
Member
 
Registered: Nov 2010
Posts: 43

Original Poster
Rep: Reputation: 3
Quote:
Originally Posted by ferrari View Post
A bit more clarification needed here. Is this a case of not being able to get to network shares because of LAN connectivity?

If not, report back with
Code:
ip add
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
inet 127.0.0.1/8 scope host lo
valid_lft forever preferred_lft forever
inet6 ::1/128 scope host
valid_lft forever preferred_lft forever
2: enp1s0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP group default qlen 1000
link/ether 00:24:8c:4f:d6:f2 brd ff:ff:ff:ff:ff:ff
inet 192.168.1.2/24 brd 192.168.1.255 scope global dynamic enp1s0
valid_lft 69134sec preferred_lft 69134sec
inet6 fe80::f50d:655a:5b90:d38/64 scope link
valid_lft forever preferred_lft forever
Code:
ip route
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
inet 127.0.0.1/8 scope host lo
valid_lft forever preferred_lft forever
inet6 ::1/128 scope host
valid_lft forever preferred_lft forever
2: enp1s0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP group default qlen 1000
link/ether 00:24:8c:4f:d6:f2 brd ff:ff:ff:ff:ff:ff
inet 192.168.1.2/24 brd 192.168.1.255 scope global dynamic enp1s0
valid_lft 69134sec preferred_lft 69134sec
inet6 fe80::f50d:655a:5b90:d38/64 scope link
valid_lft forever preferred_lft forever
Are you mounting remote file-systems at boot via /etc/fstab perhaps?
Code:
cat /etc/fstab
# /etc/fstab: static file system information.
#
# Use 'blkid' to print the universally unique identifier for a
# device; this may be used with UUID= as a more robust way to name devices
# that works even if disks are added and removed. See fstab(5).
#
# <file system> <mount point> <type> <options> <dump> <pass>
# / was on /dev/sda5 during installation
UUID=f168a4be-0f79-4104-ab6b-a4092cdfd78d / ext4 errors=remount-ro 0 1
# swap was on /dev/sda6 during installation
UUID=b811df23-8d6f-49c5-8c93-2d8e6c631775 none swap sw 0 0
/dev/fd0 /media/floppy0 auto rw,user,noauto,exec,utf8 0 0

NetworkManager active and active connection?
Code:
sudo systemctl status NetworkManager
NetworkManager.service - Network Manager
Loaded: loaded (/lib/systemd/system/NetworkManager.service; enabled; vendor preset: enabled)
Active: active (running) since Mon 2017-09-04 06:36:50 NZST; 14h ago
Docs: man:NetworkManager(8)
Main PID: 739 (NetworkManager)
Tasks: 5 (limit: 512)
CGroup: /system.slice/NetworkManager.service
├─ 739 /usr/sbin/NetworkManager --no-daemon
├─ 983 /sbin/dhclient -d -q -sf /usr/lib/NetworkManager/nm-dhcp-helper -pf /var/run/dhclient-enp1s0.pid -lf /var/lib/NetworkManager/dhclient-d0ebb7a7-3ba1-35
└─1009 /usr/sbin/dnsmasq --no-resolv --keep-in-foreground --no-hosts --bind-interfaces --pid-file=/var/run/NetworkManager/dnsmasq.pid --listen-address=127.0.

Sep 04 16:16:03 owner-pc dhclient[983]: DHCPACK of 192.168.1.2 from 192.168.1.1
Sep 04 16:16:03 owner-pc NetworkManager[739]: <info> [1504498563.7994] address 192.168.1.2
Sep 04 16:16:03 owner-pc NetworkManager[739]: <info> [1504498563.7994] plen 24 (255.255.255.0)
Sep 04 16:16:03 owner-pc NetworkManager[739]: <info> [1504498563.7995] gateway 192.168.1.1
Sep 04 16:16:03 owner-pc NetworkManager[739]: <info> [1504498563.7995] server identifier 192.168.1.1
Sep 04 16:16:03 owner-pc NetworkManager[739]: <info> [1504498563.7995] lease time 86400
Sep 04 16:16:03 owner-pc NetworkManager[739]: <info> [1504498563.7996] nameserver '192.168.1.1'
Sep 04 16:16:03 owner-pc NetworkManager[739]: <info> [1504498563.7996] domain name 'Home'
Sep 04 16:16:03 owner-pc NetworkManager[739]: <info> [1504498563.7996] dhcp4 (enp1s0): state changed bound -> bound
Sep 04 16:16:04 owner-pc dhclient[983]: bound to 192.168.1.2 -- renewal in 40086 seconds.
lines 1-21/21 (END)

Code:
nmcli d
DEVICE TYPE STATE CONNECTION
enp1s0 ethernet connected Wired connection 1
lo loopback unmanaged --
 
Old 09-04-2017, 05:11 AM   #7
jcmahne
Member
 
Registered: Nov 2010
Posts: 43

Original Poster
Rep: Reputation: 3
Quote:
Originally Posted by ferrari View Post
i assume the network shares you mentioned in your opening posts are samba shares? If you can get as far as confirming/demonstrating that you have lan connectivity, show what is reported by the following
Code:
smbtree
workgroup
\\gigabyte
\\compaq
\\brn001ba9b758c8
 
Old 09-04-2017, 05:46 AM   #8
ferrari
LQ Guru
 
Registered: Sep 2003
Location: Auckland, NZ
Distribution: openSUSE Leap
Posts: 5,746

Rep: Reputation: 1136Reputation: 1136Reputation: 1136Reputation: 1136Reputation: 1136Reputation: 1136Reputation: 1136Reputation: 1136Reputation: 1136
The requested output checks out as expected. I'm not a Cinnamon user, but which file manager do you use in Cinnamon? Is it Nemo or Nautilus or...?

Can you get to (browse) a network share if you enter the SMB URL in the file manager address bar?

For example...
Code:
smb://gigabyte/
 
Old 09-04-2017, 06:07 AM   #9
ferrari
LQ Guru
 
Registered: Sep 2003
Location: Auckland, NZ
Distribution: openSUSE Leap
Posts: 5,746

Rep: Reputation: 1136Reputation: 1136Reputation: 1136Reputation: 1136Reputation: 1136Reputation: 1136Reputation: 1136Reputation: 1136Reputation: 1136
Quote:
Now I cannot open the Network folder on the Mint desktop. It has no file associations with it.So I can't browse file shares.
When you attempt to browse a network share, are you getting an error message?
 
Old 09-05-2017, 02:37 AM   #10
jcmahne
Member
 
Registered: Nov 2010
Posts: 43

Original Poster
Rep: Reputation: 3
Quote:
Originally Posted by ferrari View Post
The requested output checks out as expected. I'm not a Cinnamon user, but which file manager do you use in Cinnamon? Is it Nemo or Nautilus or...?

Can you get to (browse) a network share if you enter the SMB URL in the file manager address bar?

For example...
Code:
smb://gigabyte/
I have Nemo
I tried nemo smb://gigabyte/public
I received an error message Nemo cannot handle smb locations.
I tried smb://gigabyte/public
I received the error message "no such directory"
 
Old 09-05-2017, 04:01 AM   #11
ferrari
LQ Guru
 
Registered: Sep 2003
Location: Auckland, NZ
Distribution: openSUSE Leap
Posts: 5,746

Rep: Reputation: 1136Reputation: 1136Reputation: 1136Reputation: 1136Reputation: 1136Reputation: 1136Reputation: 1136Reputation: 1136Reputation: 1136
See if this helps
Code:
sudo apt-get install gvfs-backends
 
Old 09-06-2017, 11:14 PM   #12
jcmahne
Member
 
Registered: Nov 2010
Posts: 43

Original Poster
Rep: Reputation: 3
Quote:
Originally Posted by ferrari View Post
See if this helps
Code:
sudo apt-get install gvfs-backends
no.
I still get the message :
Nemo cannot handle "smb" locations
 
Old 09-07-2017, 12:33 AM   #13
ferrari
LQ Guru
 
Registered: Sep 2003
Location: Auckland, NZ
Distribution: openSUSE Leap
Posts: 5,746

Rep: Reputation: 1136Reputation: 1136Reputation: 1136Reputation: 1136Reputation: 1136Reputation: 1136Reputation: 1136Reputation: 1136Reputation: 1136
I'm not a Mint user, but I'm wondering if you're impacted by samba updates as per this Mint thread perhaps. One workaround mentioned was...

Quote:
I have the same problem as well actually. This issue is preventing smbd/nmdb from starting properly. No logs are being generated either

If you need your samba server running until the problem is fixed, run these as root, this worked for me... After doing that, my shares magically reappeared.

Code: Select all
smbd -D
nmdb -D


Obviously this is not a permanent solution, but it works for now.
Another approach was to use File > Connect to Server...

https://forums.linuxmint.com/viewtop...20688#p1159915
 
Old 09-07-2017, 12:53 AM   #14
ferrari
LQ Guru
 
Registered: Sep 2003
Location: Auckland, NZ
Distribution: openSUSE Leap
Posts: 5,746

Rep: Reputation: 1136Reputation: 1136Reputation: 1136Reputation: 1136Reputation: 1136Reputation: 1136Reputation: 1136Reputation: 1136Reputation: 1136
I meant to ask - is 'gvfs-smb' installed as well?
 
Old 09-12-2017, 02:28 AM   #15
jcmahne
Member
 
Registered: Nov 2010
Posts: 43

Original Poster
Rep: Reputation: 3
Quote:
Originally Posted by ferrari View Post
I meant to ask - is 'gvfs-smb' installed as well?
No it's not. I ran the command below:

apt-cache policy gvfs-smb
N: Unable to locate package gvfs-smb

What does it do? I'm a bit weary of installing network stuff now.
 
  


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
How Do I Set Network Share Permissions On A Folder In Linux Mint 17.3 XFCE Edition? shsmith Linux Mint 5 05-18-2016 07:40 AM
[SOLVED] Samba Folder/File Sharing - 2 Mint Xfce computer home network holadebeto Linux - Networking 1 02-01-2014 08:10 PM
Alien Bob's 'test' folder for Network Manager 0men Slackware 2 08-15-2012 12:10 AM
implementing security with network file shares politik Linux - Security 4 06-25-2010 05:38 PM
OpenLDAP accounts and network file shares rosv Linux - Enterprise 1 05-14-2009 07:52 AM

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

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