Page 1 of 3 123 LastLast
Results 1 to 10 of 21

Thread: Samba Shares Won't Remain Persistant on Reboot

  1. #1
    Join Date
    Jun 2008
    Location
    Ballard
    Beans
    2,409
    Distro
    Ubuntu 16.04 Xenial Xerus

    Samba Shares Won't Remain Persistant on Reboot

    The issue has been clarified along the thread. The real issue is a lack of communication, apparently, between Nautilus and Samba after a reboot. The shares are shared but Nautilus is not displaying them as such.







    I have four Samba shares over two storage drives. Occasionally they will remain shared after a reboot, but the general pattern is that most or all of the shares will need to be shared over again when the drives are mounted after a reboot. It seems to make no matter if I manually unmount the drives.

    How can I force these shares to remain persistent?

    This is driving me buggy, zoom zoom.
    Last edited by jamesisin; December 31st, 2009 at 02:40 AM.
    "We're all in this together, kid." --H. Tuttle (a.k.a. H. Buttle)
    "Maybe it's a layer 8 problem." --thatguruguy
    A High-Tech Blech!

  2. #2
    Join Date
    Jun 2008
    Location
    Ballard
    Beans
    2,409
    Distro
    Ubuntu 16.04 Xenial Xerus

    Re: Samba Shares Won't Remain Persistant on Reboot

    Anybody?
    "We're all in this together, kid." --H. Tuttle (a.k.a. H. Buttle)
    "Maybe it's a layer 8 problem." --thatguruguy
    A High-Tech Blech!

  3. #3
    Join Date
    Dec 2009
    Beans
    6,795

    Re: Samba Shares Won't Remain Persistant on Reboot

    Internal or external drives

    Classic samba ( smb.conf ) or Nautilus-share ( right click - share in nautilus ).

    You might want to post the output of the following commands:

    Open Terminal
    Type net usershare info
    Type sudo net usershare info
    Type testparm -s

  4. #4
    Join Date
    Jun 2008
    Location
    Ballard
    Beans
    2,409
    Distro
    Ubuntu 16.04 Xenial Xerus

    Re: Samba Shares Won't Remain Persistant on Reboot

    I am creating the shares in the GUI (either right-click Sharing Options or right-click Properties --> Share). I imagined that action translated into the smb.conf file, n'est-ce pas?

    Thanks for the command suggestions. I was able to deduce from their outputs that Samba is working correctly (after some small testing). (And I removed some old deleted shares that were for deleted folders.)

    Basically the four shares are represented in /var/lib/samba but Samba and Nautilus are not communicating this information.

    I am able to connect to the shares on reboot from another system as expected. However, the double-arrow share icon and all share information is absent via the context menu (right-click).

    Sometimes this is not the case, but typically all four share will appear to be missing (under Nautilus). Unmounting and remounting does not appear to have the same effect (but rather it remains persistent).

    Any other suggestions?
    "We're all in this together, kid." --H. Tuttle (a.k.a. H. Buttle)
    "Maybe it's a layer 8 problem." --thatguruguy
    A High-Tech Blech!

  5. #5
    Join Date
    Dec 2009
    Beans
    6,795

    Re: Samba Shares Won't Remain Persistant on Reboot

    You're using nautilus-share not classic samba.

    There is a bug in nautilus-share that will remove the little hand under the folder icon and remove the "write" check box on the context menu GUI. But that bug pertains only to folders that were created by the system and not to folders you create yourself.

    For example it will happen to /home/morbius1/Documents but not one I created myself - /home/morbius1/TestShare for example.

    In any event the bug is cosmetic and does not reflect the true status of the share. net usershare info is the only way to determine the true status of the share.

    Without the output I requested there's no way for me to determine if this is the same bug.

  6. #6
    Join Date
    Jun 2008
    Location
    Ballard
    Beans
    2,409
    Distro
    Ubuntu 16.04 Xenial Xerus

    Re: Samba Shares Won't Remain Persistant on Reboot

    Here is one of the four:

    Code:
    [ina]
    path=/media/Tunage/InA
    comment=
    usershare_acl=Everyone:F,
    guest_ok=n
    And testparm:

    Code:
    $ testparm -s
    Load smb config files from /etc/samba/smb.conf
    Processing section "[printers]"
    Processing section "[print$]"
    Loaded services file OK.
    Server role: ROLE_STANDALONE
    [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
     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
     printable = Yes
     browseable = No
     browsable = No
    
    [print$]
     comment = Printer Drivers
     path = /var/lib/samba/printers
    However, the problem you describe does not seem to apply here. Or perhaps I have misunderstood.

    Also, sorry I forgot to mention, the system in question in 9.10 (so no little hand; double-arrow).
    "We're all in this together, kid." --H. Tuttle (a.k.a. H. Buttle)
    "Maybe it's a layer 8 problem." --thatguruguy
    A High-Tech Blech!

  7. #7
    Join Date
    Jun 2006
    Location
    Texas
    Beans
    3,930
    Distro
    Ubuntu 10.04 Lucid Lynx

    Re: Samba Shares Won't Remain Persistant on Reboot

    To have samba shares automatically mount on startup - I use CIFS heres the how to: Mount samba shares with utf8 encoding using cifs - Ubuntu Forums
    UNIX was not designed to stop you from doing stupid things, because that would also stop you from doing clever things. -- Doug Gwyn
    SystemRescueCd | Dual Boot | psychocats | FAQ

  8. #8
    Join Date
    Dec 2009
    Beans
    6,795

    Re: Samba Shares Won't Remain Persistant on Reboot

    It took louieb's post before I realized that I misinterpreted your post - maybe - I don't know - it's still not clear to me.

    Occasionally they will remain shared after a reboot, but the general pattern is that most or all of the shares will need to be shared over again when the drives are mounted after a reboot
    I am able to connect to the shares on reboot from another system as expected. However, the double-arrow share icon and all share information is absent via the context menu (right-click).
    I'm lost here:

    Are you talking about not being able to access the share from the client even though the share still exists?

    Or are you talking about the directory you want to share on the server has to be "re-shared" because the share disappears?

  9. #9
    Join Date
    Jun 2008
    Location
    Ballard
    Beans
    2,409
    Distro
    Ubuntu 16.04 Xenial Xerus

    Re: Samba Shares Won't Remain Persistant on Reboot

    Sorry if I obscured matters. A close reading of the facts should show that I was initially under the impression that the shares were being unshared on reboot. However, it was revealed (somewhere above) that the shares are still alive but merely Nautilus doesn't choose to either display the double-arrow share icon or include the share information in the right-click options. I can re-add those in Nautilus but there seems little point since whether this aesthetic is fixed or not I am still able to connect to the share from outside as expected.
    "We're all in this together, kid." --H. Tuttle (a.k.a. H. Buttle)
    "Maybe it's a layer 8 problem." --thatguruguy
    A High-Tech Blech!

  10. #10
    Join Date
    Jun 2008
    Location
    Ballard
    Beans
    2,409
    Distro
    Ubuntu 16.04 Xenial Xerus

    Re: Samba Shares Won't Remain Persistant on Reboot

    louieb - Isn't that post about mounting Samba shares client-side? My issue is that they are not being displayed as though they were shared on the server-side (in Nautilus).
    "We're all in this together, kid." --H. Tuttle (a.k.a. H. Buttle)
    "Maybe it's a layer 8 problem." --thatguruguy
    A High-Tech Blech!

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