Samba will not run in Linux Mint 18.3

All Gurus once were Newbies
Forum rules
There are no such things as "stupid" questions. However if you think your question is a bit stupid, then this is the right place for you to post it. Please stick to easy to-the-point questions that you feel people can answer fast. For long and complicated questions prefer the other forums within the support section.
Before you post please read how to get help
Post Reply
After8Minty
Level 1
Level 1
Posts: 20
Joined: Wed Mar 07, 2018 7:08 am

Samba will not run in Linux Mint 18.3

Post by After8Minty » Sat Mar 17, 2018 6:38 am

:oops: Please can someone explain what I am doing wrong with Samba. I need to network with my Windows 10 PC to collect some files to work with but can't get Samba to run. I have installed system-config-samba which I understand is needed in order for me to use Samba but when I click on the launch button nothing happens. What am I doing wrong? I have attached a view of some elements connected with Samba which are currently installed so I hope someone can help.
Attachments
Samba installed components.jpeg

User avatar
catweazel
Level 17
Level 17
Posts: 7106
Joined: Fri Oct 12, 2012 9:44 pm
Location: Australian Antarctic Territory

Re: Samba will not run in Linux Mint 18.3

Post by catweazel » Sat Mar 17, 2018 6:50 am

After8Minty wrote:
Sat Mar 17, 2018 6:38 am
What am I doing wrong?
https://tutorials.ubuntu.com/tutorial/i ... re-samba#0
¡uʍop ǝpısdn sı buıɥʇʎɹǝʌǝ os ɐıןɐɹʇsnɐ ɯoɹɟ ɯ,ı

altair4
Level 19
Level 19
Posts: 9188
Joined: Tue Feb 03, 2009 10:27 am

Re: Samba will not run in Linux Mint 18.3

Post by altair4 » Sat Mar 17, 2018 7:10 am

After8Minty wrote:
Sat Mar 17, 2018 6:38 am
:oops: Please can someone explain what I am doing wrong with Samba. I need to network with my Windows 10 PC to collect some files to work with but can't get Samba to run. I have installed system-config-samba which I understand is needed in order for me to use Samba but when I click on the launch button nothing happens. What am I doing wrong? I have attached a view of some elements connected with Samba which are currently installed so I hope someone can help.
Open a terminal and run this command:

Code: Select all

sudo touch /etc/libuser.conf
Then go back in the menu and run Samba again.

It's a bug. A bug in the actual packaging of system-config-samba. It's not likely to ever get fixed but that is another issue.
Please add a [SOLVED] at the end of your original subject header if your question has been answered and solved.

After8Minty
Level 1
Level 1
Posts: 20
Joined: Wed Mar 07, 2018 7:08 am

Re: Samba will not run in Linux Mint 18.3 [Solved]

Post by After8Minty » Sat Mar 17, 2018 8:24 am

Open a terminal and run this command:

Code: Select all

sudo touch /etc/libuser.conf
Then go back in the menu and run Samba again.

It's a bug. A bug in the actual packaging of system-config-samba. It's not likely to ever get fixed but that is another issue.

Thanks altair4, Samba is now running OK. :)

After8Minty
Level 1
Level 1
Posts: 20
Joined: Wed Mar 07, 2018 7:08 am

Re: Samba will not run in Linux Mint 18.3

Post by After8Minty » Sat Mar 17, 2018 8:37 am

catweazel wrote:
Sat Mar 17, 2018 6:50 am
After8Minty wrote:
Sat Mar 17, 2018 6:38 am
What am I doing wrong?
https://tutorials.ubuntu.com/tutorial/i ... re-samba#0
Thanks catweazel - looks like I have a lot more to learn!

User avatar
catweazel
Level 17
Level 17
Posts: 7106
Joined: Fri Oct 12, 2012 9:44 pm
Location: Australian Antarctic Territory

Re: Samba will not run in Linux Mint 18.3

Post by catweazel » Sat Mar 17, 2018 8:44 am

After8Minty wrote:
Sat Mar 17, 2018 8:37 am
Thanks catweazel - looks like I have a lot more to learn!
You're most welcome.
¡uʍop ǝpısdn sı buıɥʇʎɹǝʌǝ os ɐıןɐɹʇsnɐ ɯoɹɟ ɯ,ı

asinoro
Level 4
Level 4
Posts: 246
Joined: Mon Feb 12, 2018 11:43 am

Re: Samba will not run in Linux Mint 18.3

Post by asinoro » Sat Mar 17, 2018 1:22 pm

I found important this subject, if you add [SOLVED] at your first post title, you will help other future users.

FT277002
Level 1
Level 1
Posts: 10
Joined: Sun Nov 19, 2017 5:14 pm

Re: Samba will not run in Linux Mint 18.3

Post by FT277002 » Mon Mar 19, 2018 7:40 am

Note too a simple point: If Gufw Firewall is on and set to deny incoming, all file-sharing won't work. You could add exception entries, or just disable it when occasional sharing is needed.

asinoro
Level 4
Level 4
Posts: 246
Joined: Mon Feb 12, 2018 11:43 am

Re: Samba will not run in Linux Mint 18.3

Post by asinoro » Mon Mar 19, 2018 8:06 am

Try this to enable.

Code: Select all

sudo ufw allow Samba
To disable.

Code: Select all

sudo ufw deny Samba

altair4
Level 19
Level 19
Posts: 9188
Joined: Tue Feb 03, 2009 10:27 am

Re: Samba will not run in Linux Mint 18.3

Post by altair4 » Mon Mar 19, 2018 9:31 am

Just to clarify the nature of the original post this is not a question on the inability to install, configure, and run a samba server. It is specifically about a problem with an application called system-config-samba.

Once installed it adds an entry in the Menu called "Samba". The problem with it is it doesn't run when launched.

If you run system-config-samba in the terminal you end up with an error message that looks something like this:
gksudo system-config-samba
File "/usr/sbin/system-config-samba", line 45, in <module>
mainWindow.MainWindow(debug_flag)
File "/usr/share/system-config-samba/mainWindow.py", line 121, in __init__
self.basic_preferences_win = basicPreferencesWin.BasicPreferencesWin(self, self.xml, self.samba_data, self.samba_backend, self.main_window)
File "/usr/share/system-config-samba/basicPreferencesWin.py", line 97, in __init__
self.admin = libuser.admin()
SystemError: could not open configuration file `/etc/libuser.conf': No such file or directory
My solution was not all that profound ... if the file ain't there add it:

Code: Select all

sudo touch /etc/libuser.conf
There is a bug report for this: https://bugs.launchpad.net/ubuntu/+sour ... ug/1421194 It's 3 years old folks - it's never going to get fixed. There is another one somewhere that was tagged as Invalid most likely because no one at Ubuntu or Debian has ever heard of Samba.
Please add a [SOLVED] at the end of your original subject header if your question has been answered and solved.

Post Reply

Return to “Newbie Questions”