Tuesday, December 30, 2014

Memory leak problem for Ubuntu 14.04 with Samba service enabled

Symptom:
- Samba service is enabled on the host
- Problem exists with fresh install of Ubuntu Server 14.04.1 with samba service checked during the installation process
- The below error message will prompt on the console when executing any command with sudo
no talloc stackframe at ../source3/param/loadparm.c:4864, leaking memory
- The same error message will prompt on the console when log-in a user in the console
- Note the error message will not prompt when:
    1. log-in from a SSH session
    2. the sudo command does not prompt for a user password (possibilities such as a modified sudoer)

Cause:
The samba package that sync system user passwords with Samba database cause the problem

Workaround:
Run "pam-auth-update" and uncheck "SMB password synchronization".

My Note:
After this change every time a new user is created, below command is required to enable Samba access for the user:
sudo smbpasswd [new username]

Reference:
https://bugs.launchpad.net/ubuntu/+source/samba/+bug/1257186

No comments:

Post a Comment