Tag: samba

  • How to auto mount samba or cifs shares in OS X Mavericks

    After mounting your shares using Command+K in Finder, go to:

     

    Settings -> Users and Groups -> Click on the lock to allow changes

     

    how-to-automount-samba-shares-os-x-mavericks-01

    Select “Login items” at the top, click on the plus symbol, then find your server on the left pane:

     

    how-to-automount-samba-shares-os-x-mavericks-02

    Click on the samba/CIFS share you wish to automount, then select “Add”; you should now see it in the list:

     

    how-to-automount-samba-shares-os-x-mavericks-03

    In theory, to hide the Finder window which opens when it is mounted you select the “Hide” tickbox on the left side of the share name. This doesn’t seem to work, however! Click on the lock to prevent further changes, restart and you should see your shares automount on boot.

  • Debian 7 (Wheezy) – no smbpasswd command

     

    If you have installed samba/cifs-utils/etc. and are trying to set your users up on a Debian 7 system, you might be surprised to find that the smbpasswd command seems to be missing. It’s actually part of the samba-common-bin package, which you can install via:

     

    sudo apt-get install samba-common-bin

     

    …and you should have your command.

  • Ubuntu: How to check the samba version

     

    To check the version of Samba that you are running, use the smbstatus command. The first line is the version, which should look something like:

     

    Samba version 3.6.3

     

    If you want to see just the version without the rest of the smbstatus information, you can run:

     

    smbstatus –version

     

    Much less cluttered. The above is the current version for a 12.04 Ubuntu server. Still waiting for version 4!

  • Samba log showing error: failed to retrieve printer list

     

    If you’re using Ubuntu and seeing the following error in your Samba log:

     

    Failed to retrieve printer list: NT_STATUS_UNSUCCESSFUL

     

    If you are a home user and using samba purely for file sharing from a server or NAS you’re probably not interested in sharing printers through it. If so, you can prevent this error from occurring by adding the following lines to your /etc/samba/smb.conf:

     

    printing = bsd

    printcap name = /dev/null

     

    Restart samba:

     

    /etc/init.d/smbd restart

     

    …check your logs:

     

    less /var/log/samba/log.smbd

     

    and the error should now no longer be appearing.