Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I'm running a small home network linux-based server which acts as an internet router, torrent client and file server. I have problems connecting Windows clients to server Samba shares ('user name or password is invalid'). How can I enable logging of all stages of Samba authentication/authorization procedure, such as "client connected", "client provided username ... and password ..." etc. so I can find out what exactly is wrong since I'm sure I'm providing proper username and password?

share|improve this question
up vote 3 down vote accepted
  • set logging in smb.conf to level 2 or higher, e.g.

    log level = 3

  • watch log files - usually in /var/log/samba/

    tail -F /var/log/samba/log.[client-machine-name]

  • look for "authentication for user" ... and context

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.