PAM (/etc/pam.conf).....Is It Needed?

PAM (/etc/pam.conf).....Is It Needed?

Post by RESgrignol » Sun, 19 Jun 2005 00:49:34



I do not have much experience with PAM, but in conversations with
others relating to our Solaris servers (versions 2.6 thru 9), I'm under
the impression that we are not using it.

In a recent audit of some of our files, we were cited with having some
servers "less secure" than others simply by virtue of the entries
within /etc/pam.conf.  They do seem to differ, especially when
comparing the 2.6 servers with more current versions (7 thru 9).

My questions become: "IF we are not using PAM, I would presume that we
do not have a need to access the /etc/pam.conf file.  That being said,
do we even need it (i.e. can it be removed without serious
ramifications)?  How would one go about determining IF it is "actually"
being used?

Thanks.

 
 
 

PAM (/etc/pam.conf).....Is It Needed?

Post by tunl » Sun, 19 Jun 2005 01:47:09



> I do not have much experience with PAM, but in conversations with
> others relating to our Solaris servers (versions 2.6 thru 9), I'm under
> the impression that we are not using it.

> In a recent audit of some of our files, we were cited with having some
> servers "less secure" than others simply by virtue of the entries
> within /etc/pam.conf.  They do seem to differ, especially when
> comparing the 2.6 servers with more current versions (7 thru 9).

> My questions become: "IF we are not using PAM, I would presume that we
> do not have a need to access the /etc/pam.conf file.  That being said,
> do we even need it (i.e. can it be removed without serious
> ramifications)?  How would one go about determining IF it is "actually"
> being used?

> Thanks.

You are using PAM every single time you logon  to the system !

Script started on Fri 17 Jun 2005 06:29:16 PM CEST
# uname -a
SunOS noname 5.9 Generic_117171-07 sun4u sparc SUNW,Sun-Blade-1500
# pgrep inetd
437
# truss -rall -wall -vall -fao /tmp/trace -p 437 &

   (  running a standard telnet login from a remote system ; then exit
)

1114
# kill 1114
# grep "pam\.conf" /tmp/trace
1119:   stat64("/etc/pam.conf", 0xFFBFFBC0)           = 0
1119:   open("/etc/pam.conf", O_RDONLY)                       = 3
1115:   stat64("/etc/pam.conf", 0xFFBFEF28)           = 0
1115:   open("/etc/pam.conf", O_RDONLY)                       = 10

//Lars

 
 
 

PAM (/etc/pam.conf).....Is It Needed?

Post by hubca » Sun, 19 Jun 2005 01:36:12



>I do not have much experience with PAM, but in conversations with
>others relating to our Solaris servers (versions 2.6 thru 9), I'm under
>the impression that we are not using it.

You're probably using it under the covers from almost any
application you use that authenticates. Ssh is the only common
application that, depending on how you've got it configured, *might* not
be using PAM that I can think of offhand, we'll see what others say...

Quote:>In a recent audit of some of our files, we were cited with having some
>servers "less secure" than others simply by virtue of the entries
>within /etc/pam.conf.  They do seem to differ, especially when
>comparing the 2.6 servers with more current versions (7 thru 9).

Sun changed the pam config files on all these version releases,
so they are supposed to be different.

Quote:>My questions become: "IF we are not using PAM, I would presume that we
>do not have a need to access the /etc/pam.conf file.  That being said,
>do we even need it (i.e. can it be removed without serious
>ramifications)?  How would one go about determining IF it is "actually"
>being used?

cp /dev/null /etc/pam.conf, and you'll know pretty soon <g>...
DON'T REALLY DO THAT, or you'll be booting off CDs to recover
and booking flights to SC to find me and beat me up.

ls -lu /etc/pam.conf    is a safer way to convince yourself
that something is looking at /etc/pam.conf on a pretty regular
basis...

man ftpd and man telnetd, for example, outline those daemons uses of pam.

-Mike

 
 
 

PAM (/etc/pam.conf).....Is It Needed?

Post by Alan Coopersmit » Sun, 19 Jun 2005 06:04:39



|I do not have much experience with PAM, but in conversations with
|others relating to our Solaris servers (versions 2.6 thru 9), I'm under
|the impression that we are not using it.

You may not be customizing it or using advanced features, but it's
almost impossible to have a system you can login to without using it.

--
________________________________________________________________________

 http://www.csua.berkeley.edu/~alanc/   *   http://blogs.sun.com/alanc/
  Working for, but definitely not speaking for, Sun Microsystems, Inc.

 
 
 

PAM (/etc/pam.conf).....Is It Needed?

Post by Casper H.S. Di » Sun, 19 Jun 2005 20:26:44




>|I do not have much experience with PAM, but in conversations with
>|others relating to our Solaris servers (versions 2.6 thru 9), I'm under
>|the impression that we are not using it.
>You may not be customizing it or using advanced features, but it's
>almost impossible to have a system you can login to without using it.

For the value of almost impossible where:

        - you replaced /bin/login, sshd, dtlogin, and all daemons granting
          access with your own versions which avoid using PAM.

Casper

--
Expressed in this posting are my opinions.  They are in no way related
to opinions held by my employer, Sun Microsystems.
Statements on Sun products included here are not gospel and may
be fiction rather than truth.

 
 
 

1. PAM and /etc/pam.conf

The big question is How can I setup PAM to log telnet/SSH connections?
I have done the following
/etc/pam.conf
..
telnet session required /usr/lib/security/pam_unix.so.1
..
/etc/syslog.conf
..
auth.* /var/log/pamlog
..

restart syslogd by kill -HUP (syslogd process)
 After some failed telnet logings /var/log/pamlog didn't show up. I
tried touch pamlog and restart the syslogd, but pamlog stayed at 0 byte.

I have noticed
login   auth  required  /usr/lib/security/$ISA/pam_unix.so.1
What is this $ISA? Do i need it?

Thanks for the help.

2. Avance Logic 2228 Xconfig trouble - post.txt [1/1]

3. in.ftpd: open_pam_conf: stat(/etc/pam.conf) failed

4. login problems

5. 2.6 /etc/pam.conf question

6. need advice (/bin/sh)

7. PAM/RedHat: pop3 /etc/pam.d config

8. Task ornaments

9. Any doc on /etc/pam.conf and /lib/security/* anywhere????

10. ftp chroot jail dir & pam 1.0 /etc/pam.d/ftp file

11. redhat 6.1, PAM, and having to alter /etc/pam.d/kppp

12. Need pam.conf config help for RSH/REMSH and SSH authentication

13. then it must be pam (not in /etc/login.defs, not in /etc/default/useradd)