From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from lists.gentoo.org ([140.105.134.102] helo=robin.gentoo.org) by nuthatch.gentoo.org with esmtp (Exim 4.43) id 1E8iJ1-00021f-1d for garchives@archives.gentoo.org; Fri, 26 Aug 2005 17:47:55 +0000 Received: from robin.gentoo.org (localhost [127.0.0.1]) by robin.gentoo.org (8.13.4/8.13.4) with SMTP id j7QHhxFq001989; Fri, 26 Aug 2005 17:43:59 GMT Received: from Princeton.EDU (postoffice01.Princeton.EDU [128.112.129.75]) by robin.gentoo.org (8.13.4/8.13.4) with ESMTP id j7QHWuRB010987 for ; Fri, 26 Aug 2005 17:32:57 GMT Received: from smtpserver2.Princeton.EDU (smtpserver2.Princeton.EDU [128.112.129.148]) by Princeton.EDU (8.12.9/8.12.9) with ESMTP id j7QHYMbD018098 for ; Fri, 26 Aug 2005 13:34:22 -0400 (EDT) Received: from sep.dynalias.net (fez.Princeton.EDU [128.112.129.190]) (authenticated bits=0) by smtpserver2.Princeton.EDU (8.12.9/8.12.9) with ESMTP id j7QHYLt1016501 (version=TLSv1/SSLv3 cipher=EDH-RSA-DES-CBC3-SHA bits=168 verify=NOT) for ; Fri, 26 Aug 2005 13:34:22 -0400 (EDT) Received: by sep.dynalias.net (Postfix, from userid 1001) id 4D4C3B6C45; Fri, 26 Aug 2005 13:34:23 -0400 (EDT) Date: Fri, 26 Aug 2005 13:34:23 -0400 From: Willie Wong To: gentoo-user@lists.gentoo.org Subject: Re: [gentoo-user] Get rid of PAM? Message-ID: <20050826173423.GA1096@princeton.edu> Mail-Followup-To: gentoo-user@lists.gentoo.org References: <430F26AF.2080204@nethere.com> Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-user@gentoo.org Reply-to: gentoo-user@lists.gentoo.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <430F26AF.2080204@nethere.com> User-Agent: Mutt/1.5.8i X-Archives-Salt: 69a35771-dd36-45f7-9fcd-64628aa9e3bf X-Archives-Hash: 4a06146b8cbb113550c2e5b0c9ad5973 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 -- "Wouldn't it be cool if the physics department was replaced by muppets?" "Yeah, and animal would teach death mech." ~DeathMech, Some Student. P-town PHY 205 Sortir en Pantoufles: up 14 days, 20:19 -- gentoo-user@gentoo.org mailing list