samba works only after deactivation/activation

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

samba works only after deactivation/activation

Postby gio4 on Fri Apr 05, 2013 8:23 am

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!
Never give Up!
gio4
Level 1
Level 1
 
Posts: 18
Joined: Mon Feb 11, 2013 5:52 am

Linux Mint is funded by ads and donations.
 

Re: samba works only after deactivation/activation

Postby altair4 on Fri Apr 05, 2013 9:33 am

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 16
Level 16
 
Posts: 6212
Joined: Tue Feb 03, 2009 10:27 am

Re: samba works only after deactivation/activation

Postby altair4 on Fri Apr 05, 2013 5:55 pm

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.
altair4
Level 16
Level 16
 
Posts: 6212
Joined: Tue Feb 03, 2009 10:27 am

Re: samba works only after deactivation/activation

Postby gio4 on Mon Apr 08, 2013 5:50 am

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
Never give Up!
gio4
Level 1
Level 1
 
Posts: 18
Joined: Mon Feb 11, 2013 5:52 am

Re: samba works only after deactivation/activation

Postby gio4 on Tue Apr 16, 2013 3:07 am

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
Never give Up!
gio4
Level 1
Level 1
 
Posts: 18
Joined: Mon Feb 11, 2013 5:52 am

Re: samba works only after deactivation/activation

Postby gio4 on Wed Jun 05, 2013 1:18 am

Some help for my "renaming" of eth0 to eth1 ???
Never give Up!
gio4
Level 1
Level 1
 
Posts: 18
Joined: Mon Feb 11, 2013 5:52 am


Return to Newbie Questions

Who is online

Users browsing this forum: No registered users and 5 guests