samba works only after deactivation/activation

Archived topics about LMDE 1 and LMDE 2
Locked
gio4

samba works only after deactivation/activation

Post by gio4 »

Hi LMDE users!

i have a LMDE installation workin with the Cinammon Desktop as default.

I have configured samba with the GADMIN-SAMBA App.
everything works nice but only after deactivation and reactivation of GADMIN-SAMBA. ( i mean pressing the second from the left button and the first from the left of GADMIN-SAMBA interface)

Is there a solution for this? meaning e.g. on a restart samba should work without to have to deactivate and re-activate.


many thanx for help in advance!
Last edited by LockBot on Wed Dec 28, 2022 7:16 am, edited 1 time in total.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.
altair4
Level 20
Level 20
Posts: 11427
Joined: Tue Feb 03, 2009 10:27 am

Re: samba works only after deactivation/activation

Post by altair4 »

I would like to help you - truly I would - but I made myself a promise to never try to debug the utter mess that gadmin-samba creates ever again. Life is too short. There may be someone else who uses it here who can help you or you can try the Ubuntu forums.

Side note: I don't remember if gadmin-samba creates a backup of the default smb.conf for you but there is a copy of it here: /usr/share/samba/smb.conf

It does have one mistake in it though. It has "encrypt passwords = No" instead of "encrypt passwords = Yes". So you will have to make that change yourself if you want to go back to the default smb.conf that was originally installed.
Please add a [SOLVED] at the end of your original subject header if your question has been answered and solved.
altair4
Level 20
Level 20
Posts: 11427
Joined: Tue Feb 03, 2009 10:27 am

Re: samba works only after deactivation/activation

Post by altair4 »

EDIT: If it's just a services problem it may be that Debian is now experiencing what happened to Ubuntu a few years ago. The samba service ( specifically the nmbd part of samba ) is starting before the network is up. My workaround back then was to create a file:

Code: Select all

gksu gedit /etc/network/if-up.d/samba
With this content:

Code: Select all

#!/bin/sh
service samba restart
Make the file executable:

Code: Select all

sudo chmod +x /etc/network/if-up.d/samba
Anything in if-up.d will be executed only after the network is up.

But if it's something gadmin-samba is doing to you ........
Please add a [SOLVED] at the end of your original subject header if your question has been answered and solved.
gio4

Re: samba works only after deactivation/activation

Post by gio4 »

thnax for the reply!

i did was altair4 wrote but it seems not to work for me.

even with typing the command:
sudo service samba restart
after a new boot

samba restarts but it is not possible to go in from another computer. Only starting GADMIN-SAMABA deactivating and reactivating the service solve this. i mean only starting the GADMIN-SAMBA does not work!!!

In my smb.conf on --> /etc/samba/smb.conf there is encrypted password = yes
gio4

Re: samba works only after deactivation/activation

Post by gio4 »

Hi again!

after a small research...

in my bootup messages i see something strange so will output here the dmesg commands with grep eth0 and eth1:

Code: Select all

gio@mymint ~ $ dmesg | grep eth0
[    4.265167] r8169 0000:03:00.0: eth0: RTL8168b/8111b at 0xf8012000, 00:1a:92:76:cd:21, XID 18000000 IRQ 44
[    4.265171] r8169 0000:03:00.0: eth0: jumbo features [frames: 4080 bytes, tx checksumming: ko]
[    6.714116] udevd[421]: renamed network interface eth0 to eth1
gio@mymint ~ $ dmesg | grep eth1
[    6.714116] udevd[421]: renamed network interface eth0 to eth1
[   18.081100] r8169 0000:03:00.0: eth1: link down
[   18.081107] r8169 0000:03:00.0: eth1: link down
[   18.082660] ADDRCONF(NETDEV_UP): eth1: link is not ready
[   20.551312] r8169 0000:03:00.0: eth1: link up
[   20.551445] ADDRCONF(NETDEV_CHANGE): eth1: link becomes ready
[   31.840011] eth1: no IPv6 routers present
it's very strange because my /etc/network/interfaces is:

Code: Select all

gio@mymint ~ $ cat /etc/network/interfaces
# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).

# The loopback network interface
auto lo
iface lo inet loopback

# The primary network interface
allow-hotplug eth0
#NetworkManager#
auto eth0
iface eth0 inet dhcp
why my eth0 is renamed to eth1 ? => [ 6.714116] udevd[421]: renamed network interface eth0 to eth1
gio4

Re: samba works only after deactivation/activation

Post by gio4 »

Some help for my "renaming" of eth0 to eth1 ???
Locked

Return to “LMDE Archive”