"illegal pam.conf entry"

From Brandonhutchinson.com

(Difference between revisions)
Jump to: navigation, search
(New page: == "illegal pam.conf entry" == * On Solaris systems, these errors may indicate that fields in ''/etc/pam.conf'' are separated by multiple spaces instead of tabs. Sep 16 03:15:00 hosstnam...)
Current revision (23:20, 11 January 2008) (edit) (undo)
m
 
(5 intermediate revisions not shown.)
Line 1: Line 1:
-
== "illegal pam.conf entry" ==
+
On Solaris systems, these errors may indicate that fields in ''/etc/pam.conf'' are separated by multiple spaces instead of a single space or tabs.
-
 
+
Sep 16 03:15:00 hostname cron[14629]: [ID 431104 user.crit] illegal pam.conf entry: management: missing MODULE TYPE
-
* On Solaris systems, these errors may indicate that fields in ''/etc/pam.conf'' are separated by multiple spaces instead of tabs.
+
Sep 16 03:15:00 hostname cron[14629]: [ID 828992 user.crit] illegal pam.conf entry: management: missing CONTROL FLAG
-
Sep 16 03:15:00 hosstname cron[14629]: [ID 431104 user.crit] illegal pam.con
+
-
f entry: management: missing MODULE TYPE
+
-
Sep 16 03:15:00 hostname cron[14629]: [ID 828992 user.crit] illegal pam.con
+
-
f entry: management: missing CONTROL FLAG
+
Incorrect:
Incorrect:
Line 16: Line 12:
To fix, convert 2 or more spaces into tabs:
To fix, convert 2 or more spaces into tabs:
-
# '''perl -pi.orig -e 's/\s{2,}/\t/g' pam.conf'''
+
# '''perl -pi.orig -e 's/\s{2,}/\t/g' /etc/pam.conf'''
 +
 
 +
Or convert 2 or more spaces into a single space:
 +
# '''perl -pi.orig -e 's/\s{2,}/\s/g' /etc/pam.conf'''
* [http://www.oreilly.com/pub/h/73 Global Search and Replace with Perl]
* [http://www.oreilly.com/pub/h/73 Global Search and Replace with Perl]

Current revision

On Solaris systems, these errors may indicate that fields in /etc/pam.conf are separated by multiple spaces instead of a single space or tabs.

Sep 16 03:15:00 hostname cron[14629]: [ID 431104 user.crit] illegal pam.conf entry: management: missing MODULE TYPE
Sep 16 03:15:00 hostname cron[14629]: [ID 828992 user.crit] illegal pam.conf entry: management: missing CONTROL FLAG

Incorrect:

$ grep -v '^#' /etc/pam.conf | cat -vet | tail -1
other   password required       pam_ldap.so.1$

Correct:

$ grep -v '^#' /etc/pam.conf | cat -vet | tail -1
other^Ipassword required^Ipam_ldap.so.1$

To fix, convert 2 or more spaces into tabs:

# perl -pi.orig -e 's/\s{2,}/\t/g' /etc/pam.conf

Or convert 2 or more spaces into a single space:

# perl -pi.orig -e 's/\s{2,}/\s/g' /etc/pam.conf
Personal tools