Bug 168364 - pam_mkhomedir debug message reports wrong directory
Summary: pam_mkhomedir debug message reports wrong directory
Alias: None
Product: Red Hat Enterprise Linux 4
Classification: Red Hat
Component: pam
Version: 4.0
Hardware: i386
OS: Linux
Target Milestone: ---
: ---
Assignee: Tomas Mraz
QA Contact: Jay Turner
Depends On:
TreeView+ depends on / blocked
Reported: 2005-09-15 13:41 UTC by Howard Johnson
Modified: 2015-01-08 00:10 UTC (History)
1 user (show)

Clone Of:
Last Closed: 2005-09-16 15:49:52 UTC

Attachments (Terms of Use)
Patch to fix debug message (501 bytes, patch)
2005-09-15 13:43 UTC, Howard Johnson
no flags Details | Diff

Description Howard Johnson 2005-09-15 13:41:48 UTC
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):

How reproducible:

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[3087]: unable to create directory /etc/skel/".

Expected Results:  Syslog should report it's inability to create user's configured homedir.

Additional info:

Comment 1 Howard Johnson 2005-09-15 13:43:16 UTC
Created attachment 118847 [details]
Patch to fix debug message

Comment 2 Tomas Mraz 2005-09-16 15:49:52 UTC
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.

Note You need to log in before you can comment on or make changes to this bug.