Jump to content
  • 0
michmanbiker

The dreaded samba configuration

Question

Greetings,

 

I usually do a good job at setting samba or it comes already setup. Have not managed to make it happen on Bodhi. Any standard samba.conf file I can use?

 

Also I tried to add "Personal File Sharing" at the startup, but it gave me an error message.

 

Thanks,

 

Michel

Share this post


Link to post
Share on other sites

21 answers to this question

Recommended Posts

  • 0

I believe there are several methods how to do that. This is my way:

 

sudo apt-get install system-config-samba

 

and then add your folder via GUI

 

e-5999f8c80fe4b8.79060318.jpg

  • Like 2

Share this post


Link to post
Share on other sites
  • 0

webmin is not available and Garmin can screw things up. What do you use?

 

 

Edit: The application I just installed  :unsure:  :unsure:  :unsure:

 

What is "Personal File Sharing" I added it to the startup but it would not work.

Share this post


Link to post
Share on other sites
  • 0

Have you tried following any samba tutorials online, such as this one?

https://help.ubuntu.com/lts/serverguide/samba-fileserver.html

 

Maybe a dumb question, but have you done this?

sudo service smbd restart
sudo service nmbd restart

And also configured your config file /etc/samba/smb.conf as per the instructions in the link above?

Share this post


Link to post
Share on other sites
  • 0

Did all that, installed webmin but I cannot see any shared files under network and I get this results when I query samba:

 

michel@michel-Satellite-U400:~$ sudo smbstatus                                  [sudo] password for michel:
 
Samba version 4.3.11-Ubuntu
PID     Username      Group         Machine            Protocol Version
------------------------------------------------------------------------------
 
Service      pid     machine       Connected at
-------------------------------------------------------
 
No locked files

Share this post


Link to post
Share on other sites
  • 0

What do you get from this --

sudo service --status-all
sudo /etc/init.d/xinetd status

Share this post


Link to post
Share on other sites
  • 0
michel@michel-Satellite-U400:~$ sudo service --status-all

[sudo] password for michel:

 [ - ]  alsa-utils

 [ + ]  apparmor

 [ + ]  avahi-daemon

 [ + ]  bind9

 [ + ]  binfmt-support

 [ + ]  bluetooth

 [ - ]  bootmisc.sh

 [ - ]  checkfs.sh

 [ - ]  checkroot-bootclean.sh

 [ - ]  checkroot.sh

 [ + ]  console-setup

 [ + ]  cron

 [ - ]  cryptdisks

 [ - ]  cryptdisks-early

 [ - ]  ctdb

 [ - ]  cups

 [ + ]  cups-browsed

 [ + ]  dbus

 [ + ]  grub-common

 [ + ]  hddtemp

 [ - ]  hostname.sh

 [ - ]  hwclock.sh

 [ + ]  irqbalance

 [ - ]  keyboard-setup.dpkg-bak

 [ - ]  killprocs

 [ + ]  kmod

 [ + ]  lightdm

 [ + ]  lm-sensors

 [ - ]  lvm2

 [ + ]  lvm2-lvmetad

 [ + ]  lvm2-lvmpolld

 [ - ]  mountall-bootclean.sh

 [ - ]  mountall.sh

 [ - ]  mountdevsubfs.sh

 [ - ]  mountkernfs.sh

 [ - ]  mountnfs-bootclean.sh

 [ - ]  mountnfs.sh

 [ + ]  network-manager

 [ + ]  networking

 [ + ]  nmbd

 [ + ]  ntp

 [ + ]  ondemand

 [ - ]  plymouth

 [ - ]  plymouth-log

 [ - ]  pppd-dns

 [ + ]  procps

 [ + ]  rc.local

 [ + ]  resolvconf

 [ - ]  rsync

 [ + ]  rsyslog

 [ + ]  samba

 [ + ]  samba-ad-dc

 [ - ]  saned

 [ - ]  sendsigs

 [ + ]  smbd

 [ + ]  udev

 [ + ]  ufw

 [ - ]  umountfs

 [ - ]  umountnfs.sh

 [ - ]  umountroot

 [ + ]  unattended-upgrades

 [ + ]  urandom

 [ - ]  uuidd

 [ + ]  virtualbox-guest-utils

 [ + ]  webmin

 [ + ]  winbind

 [ - ]  x11-common

 [ + ]  xinetd

Share this post


Link to post
Share on other sites
  • 0
michel@michel-Satellite-U400:~$ sudo /etc/init.d/xinetd status

● xinetd.service - LSB: Starts or stops the xinetd daemon.

   Loaded: loaded (/etc/init.d/xinetd; bad; vendor preset: enabled)

   Active: active (running) since Wed 2017-08-23 23:18:20 EDT; 14h ago

     Docs: man:systemd-sysv-generator(8)

   CGroup: /system.slice/xinetd.service

           └─7037 /usr/sbin/xinetd -pidfile /run/xinetd.pid -stayalive -inetd...

 

Aug 23 23:18:20 michel-Satellite-U400 xinetd[7037]: removing daytime

Aug 23 23:18:20 michel-Satellite-U400 xinetd[7037]: removing daytime

Aug 23 23:18:20 michel-Satellite-U400 xinetd[7037]: removing discard

Aug 23 23:18:20 michel-Satellite-U400 xinetd[7037]: removing discard

Aug 23 23:18:20 michel-Satellite-U400 xinetd[7037]: removing echo

Aug 23 23:18:20 michel-Satellite-U400 xinetd[7037]: removing echo

Aug 23 23:18:20 michel-Satellite-U400 xinetd[7037]: removing time

Aug 23 23:18:20 michel-Satellite-U400 xinetd[7037]: removing time

Aug 23 23:18:20 michel-Satellite-U400 xinetd[7037]: xinetd Version 2.3.15 sta...

Aug 23 23:18:20 michel-Satellite-U400 xinetd[7037]: Started working: 0 availa...

Hint: Some lines were ellipsized, use -l to show in full.

Share this post


Link to post
Share on other sites
  • 0
sudo apt-get install gvfs-bin gvfs-backends

I think these are needed by PCManFM to function correctly.

 

Enjoy,

Charles

 

PS. Probably needs a reboot to have it working

Share this post


Link to post
Share on other sites
  • 0

Looks to me like the necessary services are running. Is your samba config file set up correctly?

Share this post


Link to post
Share on other sites
  • 0

OK, so what else do I have to do t see the Windows shares? No matter what I enter, I get the "Failed to mount Windows share: connection timed out"

 

I am able to ping the Windows 10 system successfully from Linux using either IP address or Alias. From the Windows 10 system I am able to ping the Linux system, by entering the IP address of the Linux system into Windows Explorer I can copy files from Windows 10 to folders on the Linux system. What I am NOT able to do is see ANY of the Windows shares, all of which have Everyone with Full Control permissions, from the Linux system! I've tried by entering the IP addresses and aliases in the hosts file, but no matter what I do neither Nautilus nor the File Manager on Linux recognize the Windows system! I've installed and configured Webmin, Samba Server, Samba Desktop, everything as listed in the documentation for both Webmin and Samba. I guess I'm just going to have to accept that the traffic will have to be only one-way. I cannot log into the Windows system from Linux.

Edited by MartinBridges

Share this post


Link to post
Share on other sites
  • 0

Martin the issue is with the file manager. You have to make sure you have added the needed extensions that will allow to browse the network. I use pcmanfm and I needed this to get to see th enetwork

 

sudo apt-get install gvfs-bin gvfs-backends

Share this post


Link to post
Share on other sites
  • 0

 

michmanbiker, I tried your sudo but got back the messages that both gvfs-bin and gvfs-backends were already installed at their latest versions. I tried sudo pcmanfm. When I clicked Go Network, it said "Operation not supported", same when I tried to Connect to Server. I guess it doesn't work as root. So I just used pcmanfm as regular user, and tried smb://192.168.1.123/  That got me the same old "Failed to retrieve share list from server: Connection timed out" followed by "The specified location is not mounted" that I get when using File Manager. 

 

Share this post


Link to post
Share on other sites
  • 0

I think I remember there was a time when connecting via file manager one had to use three / between smb and the ip address; smb:///192.168.1.123/

 

Maybe I am old and my memory is fuzzy.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×