Unable to install RPM packages (a PAM issue - i think!)
Linux - SoftwareThis forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Unable to install RPM packages (a PAM issue - i think!)
Hi everyone,
I have been using Redhat 8 for about a week, never having used Linux before and have encountered a strange problem.
When I try to install RPM packages and use the package manager the screen just disapears after reading system headings, I checked the system log and found the following entry that seems to be the relevent problem:
Nov 17 12:58:37 localhost userhelper: pam_timestamp: timestamp file `/var/run/sudo/Doug/unknown:root' is too old, disallowing access to redhat-config-packages for UID 500
This is strange as it is mere seconds after I have entered my root password, does anyone know what I can do to fix this?
Two ways:
- use sudo's "visudo" command and add var/change timestamp_timeout to 30 should change asking for passwd to 30 mins, or 0 for always ask.
- grep /etc/pam.d for files including "pam_timestamp" in the stack and comment out the rule. Less recommended, because you loose using the module in the stack.
Thankyou for your response, it is greatly appreciated, however I'm very new to this and havn't really got to grips with a lot of the concepts in Linux, would it be possible for you to give me a step by step run through of how to make the changes you suggest?
No problem. (All commands shown between quotes, do not use outer quotes on actual execution)
Approach one:
Log in as root user. Execute command "visudo". This starts up the sudo resource editor (vi). Type "/timestamp_timeout".
If it returns not found, add the directive:
go to top of file: press control+u (repeat until there), type "i",
now type "timestamp_timeout=30", press escape, now key in ":wq" which will save the file and quit visudo.
If it is found then press escape, move cursor over variable, erase value by pressing "del" or "x", type "i", type value: "30", press escape, now key in ":wq" which will save the file and quit visudo. Any unintentional deletes can be restored pressing escape and the "u".
Approach two:
Log in as root user. Execute "cd /etc/pam.d", execute "find . -type f | xargs grep pam_timestamp". If it returns it will have shown a list of lite names containing the text "pam_timestamp" (or not). If it has, then execute "vi <filename>" where filename is a file from the list find/grep returned.
If you've read approach one by know you know how to edit files with the text editor vi. To comment a rule out, insert a hash mark (that's "#") in front of the line.
Thanks for your help, I no longer get the error messge I previously got in the sytem log (it says access was allowed :-) ) but the package manager still vanishes at the same point, I have this message in the sytem log now:
Nov 18 11:04:08 localhost kernel: parport0: PC-style at 0x378 [PCSPP,TRISTATE,EPP]
I used method 1 that you described if you need to know that, thanks for your help,
Doug McMahon
btw I also have a red exclamation mark next to this package in the sytem log Package section: ksymoops-2.4.5-1.i386.rpm
I'm not sure if this is relevent
Last edited by thebeardedladie; 11-18-2002 at 05:09 AM.
That's the parallel port driver (module) loading, it's no error.
Ksymoops is the package to help you debug kernel oopses (like when something goes VERY wrrronnkk). Try to install it manually (read "man rpm") and see what errors it's giving and post it to a new thread since its OT (off topic) to your current thread.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.