Red Hat Bugzilla – Bug 168364
pam_mkhomedir debug message reports wrong directory
Last modified: 2015-01-07 19:10:35 EST
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.10) Gecko/20050720 Fedora/1.0.6-1.1.fc3 Firefox/1.0.6
Description of problem:
When pam_mkhomedir is unable to mkdir() the user home directory, it uses the _log_err() function to report "unable to create directory %s". The wrong variable is passed to _log_err() to be substituted for %s (source is passed instead of dest).
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1. Configure pam to use pam_mkhomedir
2. Configure syslog to log debug-level messages
3. su - to a non-root user that doesn't have permissions to make their home directory
Actual Results: Syslog reports "PAM-mkhomedir: unable to create directory /etc/skel/".
Expected Results: Syslog should report it's inability to create user's configured homedir.
Created attachment 118847 [details]
Patch to fix debug message
This problem is scheduled to be resolved in the next release of Red Hat
Enterprise Linux. Red Hat does not currently plan to provide a resolution for
this in a Red Hat Enterprise Linux update for currently deployed systems.
With the goal of minimizing risk of change for deployed systems, and in response
to customer and partner requirements, Red Hat takes a conservative approach when
evaluating changes for inclusion in maintenance updates for currently deployed
products. The primary objectives of update releases are to enable new hardware
platform support and to resolve critical defects.