public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
From: Jerry Turba <jturba@nethere.com>
To: gentoo-user@lists.gentoo.org
Subject: Re: [gentoo-user] Get rid of PAM?
Date: Sat, 27 Aug 2005 10:38:53 -0700	[thread overview]
Message-ID: <4310A52D.2000000@nethere.com> (raw)
In-Reply-To: <20050826173423.GA1096@princeton.edu>

Willie Wong wrote:

>On Fri, Aug 26, 2005 at 07:26:55AM -0700, Jerry Turba wrote:
>  
>
>>On another gentoo newsgroup I made a comment about deleting pam because I
>>believed it was causing a problem with logins to KDE. I was severely
>>    
>>
>
>PAM has been known to cause pain and suffering at unexpected times. 
>
>  
>
>>1. Could someone explain why pam would not be needed? Is relying on
>>permissions, passwords, and firewall adequate? Which problems may result
>>for using pam?
>>    
>>
>
>PAM is "pluggable authentication module". It deals with passwords and
>permissions. It is useful because it provides a unified framework for
>dealing with such things, i.e., programs can do
>authentications/permissions without worrying about the implementation. 
>With PAM, you can do cool tricks like implementing biometrics for an
>entire system without having to resort to adding support for
>biometrics for every single service. 
>
>With that said, if you are only running home computers with no
>servers open to the outside world, you should only have a minimal
>number of programs that use authentication: login, or perhaps an ssh
>daemon that only opens to the intranet. You don't necessarily need
>PAM. 
>
>The biggest problem I've heard is PAM creating a permissions hell in
>/dev. But usually that's due to bad configuration between PAM and
>udev. If done right, PAM shouldn't cause problems. 
>
>But, for me, I decided to remove PAM after the following happened:
>  One day, I ran emerge --update world. That included a PAM update.
>  Two nights later, a power failure in my dorm power cycled the
>  computer. 
>  The morning the day after, I cannot login on the Console. For no
>  good reason whatsoever, console login always tells me it failed. 
>  BUT... I can still ssh to my box and login correctly. 
>  After some digging around in the logs, it seems that some things
>  moved around in the PAM world and one particular module was renamed
>  (or removed?). But one of the modules that used it, the one that is
>  called when I try to login on the console, was not updated. So
>  everytime I try to login, the module executes to the point where the
>  missing module is, craps out, and tells me I can't login. 
>For months after that, I was extremely careful whenever I update
>ANYTHING that has to do with authentication, and ALWAYS checked the
>PAM directories to make sure the modules are sane. Eventually I just
>got rid of it altogether. 
>
>  
>
>>2. I already have pam installed. What is the cleanest way to remove it
>>without having any residual hiccoughs.
>>    
>>
>
>http://gentoo-wiki.com/HOWTO_Remove_PAM
>
>Follow it exactly. If you miss a step, you might have to whip out a
>liveCD the next time your reboot to get into your systems. 
>
>The above link also contains a link to a thread on the forums
>discussing the pros and cons of PAM. Though I think in this particular
>thread the signal to noise ratio is rather low. 
>
>W
>
>  
>
Thanks Willie and Marco for the ideas. I got the HOWTO and will read it 
and try it out. I wasn't aware that there was a gentoo wiki. Looks like 
lots of info there that I need to read.
Thanks for the help.
Jerry
-- 
gentoo-user@gentoo.org mailing list



  parent reply	other threads:[~2005-08-27 17:54 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-08-26 14:26 [gentoo-user] Get rid of PAM? Jerry Turba
2005-08-26 15:23 ` Dave Nebinger
2005-08-26 17:34 ` Willie Wong
2005-08-26 18:36   ` Marco Matthies
2005-08-27 17:38   ` Jerry Turba [this message]
2005-08-27 18:10     ` Marco Matthies

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4310A52D.2000000@nethere.com \
    --to=jturba@nethere.com \
    --cc=gentoo-user@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox