autofs: Error logging fail

Why do applications have such horrible error messages. Non-specific errors are really not any more helpful than not logging at all.

I was recently setting up autofs for mounting home directories from an nfs server. The little buggers refused to work right. All I was seeing in the logfile was a notice that an attempt was made, and failed.

attempting to mount entry /home/nanderso
failed to mount /home/nanderso
How helpful is that? Not very, I can tell you that for sure. I already knew it wasn’t working. Next time you setup autofs make sure to chmod 0644 /etc/auto.*

One Comment

  • “How helpful is that? Not very, I can tell you that for sure. I already knew it wasn’t working”

    Make sure you set the logging level to debug 😉

    /etc/auto.master – use the –debug switch

    or

    automount –set-log-priority 7 etc….

Leave a Reply

Your email is never shared.Required fields are marked *

To submit your comment, click the image below where it asks you to...
Clickcha - The One-Click Captcha