smbclient with non-root user logs error "mkdir failed on directory /var/lib/samba/lock/msg.lock: Permission denied"

Solution Verified - Updated -


  • File transfer with smbclient giving error mkdir failed on directory /var/lib/samba/lock/msg.lock: Permission denied


  • Red Hat Enterprise Linux 7.7
  • samba-client-4.9.1-6.el7.x86_64

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In