Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[Solved] Problem with cups and pam
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
Mben
Guru
Guru


Joined: 29 Mar 2004
Posts: 465
Location: New York, USA

PostPosted: Fri Mar 16, 2007 11:53 pm    Post subject: [Solved] Problem with cups and pam Reply with quote

A while (several months at least) cups started refusing to let me log in using my root password (or any other). At the time the quick fix was to change the configuration so that cups wouldn't prompt for a password to do anything, but now I am trying to get network printing working and this is no longer acceptable. I haven't been able to find anyone having a similar problem on the web, so I am hoping someone here might have some idea what is causing this. I think it has something to do with pam because of the messages in the cups error log like this one:
Code:

E [16/Mar/2007:19:38:53 -0400] cupsdAuthorize: pam_authenticate() returned 28 (Module is unknown)!
I [16/Mar/2007:19:38:53 -0400] commptr=""



Code:

emerge -pv cups

[ebuild   R   ] net-print/cups-1.2.8  USE="X dbus jpeg nls pam php png ppds samba ssl tiff -ldap -slp" 0 kB


Otherwise, printing works fine.

I have tried remerging cups and pam as well as their plugins. Since I have a fairly old install I tried rm'ing /etc/cups and starting fresh but this didn't help. My system is up to date ~x86.

Any help is appreciated, Thanks


Last edited by Mben on Fri Mar 23, 2007 12:41 am; edited 1 time in total
Back to top
View user's profile Send private message
Mben
Guru
Guru


Joined: 29 Mar 2004
Posts: 465
Location: New York, USA

PostPosted: Fri Mar 23, 2007 12:40 am    Post subject: Reply with quote

I eventually figured it out my self, with the help of some new Google results, so hopefully this post at least helps someone. It turns out that my /etc/pam.d/cups file was outdated. I deleted it and re-emerged cups and pam. For the record it currently reads

Code:

# File autogenerated by pamd_mimic_system in pam eclass


auth    include         system-auth
account include         system-auth


As compared to my original containing:
Code:

# $Header: /var/cvsroot/gentoo-x86/net-print/cups/files/cups.pam,v 1.3 2004/07/18 04:18:17 dragonheart Exp $
auth    required        /lib/security/pam_stack.so service=system-auth
account required        /lib/security/pam_stack.so service=system-auth


Now my question is shouldn't portage have taken care of this? Most of the files in /etc/pam.d are several years old. I wonder if this is affecting any other packages :?:

Oh well, at least its fixed :wink:
Back to top
View user's profile Send private message
wynn
Advocate
Advocate


Joined: 01 Apr 2005
Posts: 2421
Location: UK

PostPosted: Fri Mar 23, 2007 11:47 am    Post subject: Reply with quote

When updating, emerge will only remove files which have the same timestamp as its canonical collection in /var/db/pkg/<collection>/<package>/CONTENTS (it may check the MD5 signature as well). If a file is edited or, for some reason, missed, it will never be removed.

"equery check <collection>/<package>" will tell you if there are any files like this for <package>.
_________________
The avatar is jorma, a "duck" from "Elephants Dream": the film and all the production materials have been made available under a Creative Commons Attribution 2.5 License, see orange.blender.org for details.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum