Page 1 of 7 123 ... LastLast
Results 1 to 10 of 70

Thread: * Reloading /etc/samba/smb.conf smbd only

  1. #1
    Join Date
    May 2006
    Location
    Quebec
    Beans
    17
    Distro
    Ubuntu 9.10 Karmic Koala

    * Reloading /etc/samba/smb.conf smbd only

    Hi everyone,

    I installed jaunty on my server with LAMP and SAMBA.
    since the first boot every minute I get this message in the console:

    * Reloading /etc/samba/smb.conf smbd only

    I readed in a 1 year old post to put interfaces = eth0 in the smb.conf
    I tried it without success

    can anyone help me with this

    Thanks

  2. #2
    Join Date
    Dec 2008
    Beans
    Hidden!
    Distro
    Ubuntu 14.04 Trusty Tahr

    Re: * Reloading /etc/samba/smb.conf smbd only

    * Reloading /etc/samba/smb.conf smbd only
    This is a comment from the /etc/init.d/samba script. You can see the line by looking at the script:
    Code:
    more /etc/init.d/samba
    You should see it around line 88 or so.

    It looks as if you have a cron job invoking the script.

  3. #3
    Join Date
    Nov 2007
    Location
    NC, USA
    Beans
    829
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: * Reloading /etc/samba/smb.conf smbd only

    Im getting the same thing on mine.

    When it does reload the samba config, it kills all networking on my box.
    Linux User #460341 || Ubuntu User #19510 || Unanswered Posts Team

  4. #4
    Join Date
    Apr 2009
    Beans
    2

    Re: * Reloading /etc/samba/smb.conf smbd only

    I can confirm this to. Pretty annoying thing. Same message but with me it comes aproximately every 5 seconds. In console of course. It is not a cron job. If I'm not mistaken I don't have any cronjobs at all. I used "crontab -e" to check.

  5. #5
    Join Date
    Dec 2008
    Beans
    Hidden!
    Distro
    Ubuntu 14.04 Trusty Tahr

    Re: * Reloading /etc/samba/smb.conf smbd only

    Hmmmmm. I would look in the logs for suspicious activity. Here is what I found in /var/log/samba/log.samba when I manually ran "samba reload"
    Code:
    [2009/04/28 08:34:13, 1] smbd/server.c:open_sockets_smbd(491)
      Reloading services after SIGHUP
    If not a cron job (and remember cron jobs do not have to be owned by you), then I would look for a process that is running in the background that calls the /etc/init.d/samba script.

    Does anyone run webmin, ebox, etc? All are capable causing this.
    Last edited by capscrew; May 7th, 2009 at 07:42 AM.

  6. #6
    Join Date
    May 2006
    Location
    Quebec
    Beans
    17
    Distro
    Ubuntu 9.10 Karmic Koala

    Re: * Reloading /etc/samba/smb.conf smbd only

    i got a lot of this in my log.smbd:
    Code:
    [2009/04/28 20:07:05,  1] smbd/server.c:open_sockets_smbd(657)
      Reloading services after SIGHUP
    [2009/04/28 20:36:49,  1] smbd/server.c:open_sockets_smbd(657)
      Reloading services after SIGHUP
    [2009/04/28 20:59:28,  1] smbd/server.c:open_sockets_smbd(657)
      Reloading services after SIGHUP
    [2009/04/28 21:26:10,  1] smbd/server.c:open_sockets_smbd(657)
      Reloading services after SIGHUP
    [2009/04/28 21:54:38,  1] smbd/server.c:open_sockets_smbd(657)
      Reloading services after SIGHUP
    I don't have anything special in my crontab, I'm the only user of the server right now and I got this since the first boot after the install, before any change or setting
    Last edited by mrwolf; April 29th, 2009 at 07:46 PM.

  7. #7
    Join Date
    Dec 2008
    Beans
    Hidden!
    Distro
    Ubuntu 14.04 Trusty Tahr

    Re: * Reloading /etc/samba/smb.conf smbd only

    The smb daemon is run by root. It is only when a user requests smb services that the smbd (daemon) spawns (forks) a new child process. See below:

    A session is created whenever a client requests one. Each client gets a
    copy of the server for each session. This copy then services all con‐
    nections made by the client during that session. When all connections
    from its client are closed, the copy of the server for that client ter‐
    minates.
    You can see this behavior by opening a share and then checking the processes, like so:
    Code:
    ps -ef|grep smbd
    When no shares are being browsed we have:
    Code:
    root      7936     1  0 20:15 ?        00:00:00 /usr/sbin/smbd -D
    root      7940  7936  0 20:15 ?        00:00:00 /usr/sbin/smbd -D
    If I browse a share as a guest the smbd is owned by a guest account I defined as smbguest. If I browse a share where I am the only valid user then smbd is owned by capscrew. See below
    Code:
    root      8075     1  0 20:45 ?        00:00:00 /usr/sbin/smbd -D
    root      8079  8075  0 20:45 ?        00:00:00 /usr/sbin/smbd -D
    smbguest  8128  8075  0 20:48 ?        00:00:00 /usr/sbin/smbd -D
    capscrew  8143  8075  0 20:50 ?        00:00:00 /usr/sbin/smbd -D
    So we can have may users even if you are the only logged in user.

    How did you install Samba? How have you made the shares? The reason I asked is the following excerpt from the smbd man pages:

    The configuration file, and any files that it includes, are automati‐
    cally reloaded every minute, if they change.
    Edit: The following is a listing of the daily cron jobs on my server. See the one for Samba?
    Code:
    root@malibu:/home/bruce# ls -l /etc/cron.daily
    total 60
    -rwxr-xr-x 1 root root  311 2007-03-04 22:38 0anacron
    -rwxr-xr-x 1 root root  219 2007-10-06 05:30 apport
    -rwxr-xr-x 1 root root 8101 2009-04-17 09:30 apt
    -rwxr-xr-x 1 root root  314 2007-09-15 02:25 aptitude
    -rwxr-xr-x 1 root root  502 2007-05-15 02:47 bsdmainutils
    -rwxr-xr-x 1 root root  473 2007-10-03 11:36 find
    -rwxr-xr-x 1 root root  473 2007-12-12 05:19 find.notslocate.dpkg-new
    -rwxr-xr-x 1 root root   89 2006-06-19 11:21 logrotate
    -rwxr-xr-x 1 root root  954 2008-03-12 06:24 man-db
    -rwxr-xr-x 1 root root  183 2008-03-08 10:22 mlocate
    -rwxr-xr-x 1 root root  383 2007-12-17 23:28 samba
    -rwxr-xr-x 1 root root  453 2008-02-14 04:51 slocate
    -rwxr-xr-x 1 root root 3295 2008-04-08 11:02 standard
    -rwxr-xr-x 1 root root 1309 2007-09-17 13:54 sysklogd
    In this case it is owned by root. Are you positive that there are no spurious cron jobs? They are all located at:
    Code:
     ls -l /etc/ |grep cron
    Especially
    Code:
     /etc/crontab
    Last edited by capscrew; April 29th, 2009 at 05:22 AM.

  8. #8
    Join Date
    Apr 2009
    Beans
    2

    Re: * Reloading /etc/samba/smb.conf smbd only

    Thanks for helping.

    Here is the output form my /etc/crontab file:

    # /etc/crontab: system-wide crontab
    # Unlike any other crontab you don't have to run the `crontab'
    # command to install the new version when you edit this file
    # and files in /etc/cron.d. These files also have username fields,
    # that none of the other crontabs do.

    SHELL=/bin/sh
    PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin

    # m h dom mon dow user command
    17 * * * * root cd / && run-parts --report /etc/cron.hourly
    25 6 * * * root test -x /usr/sbin/anacron || ( cd / && run-parts --report /etc/cron.daily )
    47 6 * * 7 root test -x /usr/sbin/anacron || ( cd / && run-parts --report /etc/cron.weekly )
    52 6 1 * * root test -x /usr/sbin/anacron || ( cd / && run-parts --report /etc/cron.monthly )
    #

    And I checked my anacron fil at gedit /etc/anacrontab to. # /etc/anacrontab: configuration file for anacron

    # See anacron(8) and anacrontab(5) for details.

    SHELL=/bin/sh
    PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin

    # These replace cron's entries
    1 5 cron.daily nice run-parts --report /etc/cron.daily
    7 10 cron.weekly nice run-parts --report /etc/cron.weekly
    @monthly 15 cron.monthly nice run-parts --report /etc/cron.monthly

    I can't see anything about samba here. Yes I have tried as both user and root. I have only used synaptic to install samba. And I mostly use places -> network in gnome. pretty standard ubuntu setup. I have not set any samba shares in smb.conf, since i use ssh a lot to.

    Another output:

    root@amadeus-laptop:/home/amadeus# ps -ef|grep smbd
    root 3047 1 0 11:18 ? 00:00:00 /usr/sbin/smbd -D
    root 3063 3047 0 11:18 ? 00:00:00 /usr/sbin/smbd -D
    root 24461 24363 0 12:05 pts/1 00:00:00 grep smbd

    and:

    amadeus@amadeus-laptop:~$ ls -l /etc/ |grep cron
    -rw-r--r-- 1 root root 395 2008-09-03 01:37 anacrontab
    drwxr-xr-x 2 root root 4096 2009-04-24 13:35 cron.d
    drwxr-xr-x 2 root root 4096 2009-04-27 19:48 cron.daily
    drwxr-xr-x 2 root root 4096 2009-04-24 13:33 cron.hourly
    drwxr-xr-x 2 root root 4096 2009-04-24 13:33 cron.monthly
    -rw-r--r-- 1 root root 724 2008-09-09 21:46 crontab
    drwxr-xr-x 2 root root 4096 2009-04-24 13:39 cron.weekly

    and at last:

    amadeus@amadeus-laptop:~$ ls -l /etc/cron.daily
    total 60
    -rwxr-xr-x 1 root root 311 2008-09-03 01:37 0anacron
    -rwxr-xr-x 1 root root 219 2008-10-24 08:10 apport
    -rwxr-xr-x 1 root root 8686 2009-04-17 06:27 apt
    -rwxr-xr-x 1 root root 314 2008-09-02 14:50 aptitude
    -rwxr-xr-x 1 root root 502 2007-12-12 14:59 bsdmainutils
    -rwxr-xr-x 1 root root 89 2008-10-09 09:11 logrotate
    -rwxr-xr-x 1 root root 954 2008-07-11 17:02 man-db
    -rwxr-xr-x 1 root root 646 2008-06-26 16:17 mlocate
    -rwxr-xr-x 1 root root 2149 2008-11-17 10:52 popularity-contest
    -rwxr-xr-x 1 root root 383 2009-01-05 15:53 samba
    -rwxr-xr-x 1 root root 1142 2009-02-26 07:23 spamassassin
    -rwxr-xr-x 1 root root 3349 2008-09-09 21:46 standard
    -rwxr-xr-x 1 root root 1309 2008-08-30 02:40 sysklogd

  9. #9
    Join Date
    May 2006
    Location
    Quebec
    Beans
    17
    Distro
    Ubuntu 9.10 Karmic Koala

    Re: * Reloading /etc/samba/smb.conf smbd only

    I installed samba from the install screen (I checked the box "samba").

    even when I stop samba (sudo service samba stop) the message continue to appear each minute. before I had chance to configure anything in samba.

  10. #10
    Join Date
    Dec 2007
    Beans
    27
    Distro
    Ubuntu 8.10 Intrepid Ibex

    Re: * Reloading /etc/samba/smb.conf smbd only

    This is happening to me on a fresh install with no configuration of samba or cron whatsoever.

    The machine is a virtual running in vmware using NAT, so I don't think it's coming from anything trying to connect as the machine is essentially behind a firewall.

    This has to be local to the machine, and since I didn't make any changes to cron, it would be something in the default install of samba on Ubuntu server 9.04

Page 1 of 7 123 ... LastLast

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •