Page 2 of 3 FirstFirst 123 LastLast
Results 11 to 20 of 22

Thread: Samba shares not accessible - restart fix

  1. #11
    Join Date
    Aug 2009
    Beans
    80
    Distro
    Ubuntu 11.04 Natty Narwhal

    Re: Samba shares not accessible - restart fix

    Well, if you think the router may have been involved, this article would not be complete without that information.

    Linksys / Cisco WRT54G2 FW Ver 1.0.03

  2. #12
    Join Date
    Feb 2010
    Beans
    12

    Re: Samba shares not accessible - restart fix

    Just wanted to say thanks. I will apply these steps as well. If all goes well, this post will be my only on the subject

  3. #13
    Join Date
    Sep 2011
    Beans
    3

    Re: Samba shares not accessible - restart fix

    hello,

    i have the same kind of problem, but with my printer:

    When I first start or reboot my shared printer is not accessable by a windows user - note that my shared folder is accessible.

    All I have to do to get things going again is:


    sudo service smbd restart
    my smb.conf look like this:


    [global]
    server string = %h server (Samba, Ubuntu)
    map to guest = Bad User
    obey pam restrictions = Yes
    pam password change = Yes
    passwd program = /usr/bin/passwd %u
    passwd chat = *Enter\snew\s*\spassword:* %n\n *Retype\snew\s*\spassword:* %n\n *password\supdated\ssuccessfully* .
    unix password sync = Yes
    syslog = 0
    log file = /var/log/samba/log.%m
    max log size = 1000
    name resolve order = lmhosts host wins bcast
    printcap name = cups
    dns proxy = No
    usershare allow guests = Yes
    panic action = /usr/share/samba/panic-action %d

    [printers]
    comment = All Printers
    path = /var/spool/samba
    create mask = 0700
    guest ok = Yes
    hosts allow = 192.168.
    printable = Yes
    browseable = No
    browsable = No

    [print$]
    comment = Printer Drivers
    path = /var/lib/samba/printers

    [share]
    comment = Ubuntu File Server Share
    path = /srv/samba/share
    read only = No
    create mask = 0755
    guest ok = Yes
    [printers]
    comment = All Printers
    path = /var/spool/samba
    create mask = 0700
    guest ok = Yes
    hosts allow = 192.168.
    printable = Yes
    browseable = No
    browsable = No
    Any ideas?

    thanks

  4. #14
    Join Date
    Jul 2012
    Beans
    5

    Re: Samba shares not accessible - restart fix

    My printer also becomes invisible on my shared network whenever a boot or reboot occurs and it becomes visible again when samba is restarted. If anyone can provide any insight as to why it works after samba restart but not after boot, I would greatly appreciate it. Thanks in advance.

  5. #15
    Join Date
    May 2008
    Location
    SoCal
    Beans
    Hidden!
    Distro
    Ubuntu 14.04 Trusty Tahr

    Re: Samba shares not accessible - restart fix

    Quote Originally Posted by Ryanm2890 View Post
    My printer also becomes invisible on my shared network whenever a boot or reboot occurs and it becomes visible again when samba is restarted. If anyone can provide any insight as to why it works after samba restart but not after boot, I would greatly appreciate it. Thanks in advance.
    Sounds like the nmbd process is not starting a boot time, When things become invisible again, post back here the output of
    Code:
    ps -e|grep mbd
    -BAB1

  6. #16
    Join Date
    Jul 2012
    Beans
    5

    Re: Samba shares not accessible - restart fix

    Quote Originally Posted by bab1 View Post
    Sounds like the nmbd process is not starting a boot time, When things become invisible again, post back here the output of
    Code:
    ps -e|grep mbd
    When I type that in i get:
    Code:
    683?       00:00:00 smbd
    711?       00:00:00 smbd
    1285?     00:00:00 smbd
    Also, the "mbd" is highlighted in red. I should have put in the above post that my printer becomes invisible to the other computer on the network, not the computer its plugged into. Forgive me if anything looks suspicious, I'm both a new to Linux and these forums. Thanks.

  7. #17
    Join Date
    May 2008
    Location
    SoCal
    Beans
    Hidden!
    Distro
    Ubuntu 14.04 Trusty Tahr

    Re: Samba shares not accessible - restart fix

    Quote Originally Posted by Ryanm2890 View Post
    When I type that in i get:
    Code:
    683?       00:00:00 smbd
    711?       00:00:00 smbd
    1285?     00:00:00 smbd
    Also, the "mbd" is highlighted in red.
    ...because that's the search term we used.
    I should have put in the above post that my printer becomes invisible to the other computer on the network, not the computer its plugged into. Forgive me if anything looks suspicious, I'm both a new to Linux and these forums. Thanks.
    It seems like nmbd (the Samba name service daemon) is not starting or quitting for no apparent reason. I'll bet it's not starting.

    What version of Ubuntu are you running?

    Without changing anything, lets try and restart it nmbd with
    Code:
    sudo service nmbd restart
    if it gripes then we will have to try these two commands
    Code:
    sudo service nmbd stop
    ...and then
    Code:
    sudo service nmbd start
    Last edited by bab1; July 5th, 2012 at 02:03 AM.
    -BAB1

  8. #18
    Join Date
    Jul 2012
    Beans
    5

    Re: Samba shares not accessible - restart fix

    I'm using Ubuntu 12.04. When I try to restart it doesn't give me any problems. Thank you for your quick responses, this has been driving me crazy.

  9. #19
    Join Date
    May 2008
    Location
    SoCal
    Beans
    Hidden!
    Distro
    Ubuntu 14.04 Trusty Tahr

    Re: Samba shares not accessible - restart fix

    Quote Originally Posted by Ryanm2890 View Post
    I'm using Ubuntu 12.04. When I try to restart it doesn't give me any problems. Thank you for your quick responses, this has been driving me crazy.
    Post the output of this
    Code:
    cat /etc/init/nmbd.conf
    -BAB1

  10. #20
    Join Date
    Jul 2012
    Beans
    5

    Re: Samba shares not accessible - restart fix

    Quote Originally Posted by bab1 View Post
    Post the output of this
    Code:
    cat /etc/init/nmbd.conf
    Code:
    description "NetBIOS name server"
    author      "Steve Langasek <steve.langasek@ubuntu.com>"
    
    start on (local-filesystems and net-device-up IFACE!=lo)
    stop on runlevel [!2345]
    
    expect fork
    respawn
    
    pre-start script
        [ -f /etc/samba/smb.conf ] || { stop; exit 0; }
    
        install -o root -g root -m 755 -d /var/run/samba
        NMBD_DISABLED=`testparm -s --parameter-name='disable netbios' 2>/dev/null || true`
    
        [ "x$NMBD_DISABLED" = xYes ] && { stop; exit 0; }
    
        exit 0
    end script
    
    exec nmbd -D
    So is this saying that NMBD is disabled upon startup?

Page 2 of 3 FirstFirst 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
  •