LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This 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


Reply
  Search this Thread
Old 11-17-2002, 07:03 AM   #1
thebeardedladie
LQ Newbie
 
Registered: Nov 2002
Posts: 9

Rep: Reputation: 0
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?

Thanks for your help,

Doug
 
Old 11-17-2002, 07:25 AM   #2
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,415
Blog Entries: 55

Rep: Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600
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.
 
Old 11-17-2002, 04:47 PM   #3
thebeardedladie
LQ Newbie
 
Registered: Nov 2002
Posts: 9

Original Poster
Rep: Reputation: 0
Hi,

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?

Thanks again,

Doug
 
Old 11-17-2002, 07:03 PM   #4
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,415
Blog Entries: 55

Rep: Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600
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.
 
Old 11-18-2002, 05:07 AM   #5
thebeardedladie
LQ Newbie
 
Registered: Nov 2002
Posts: 9

Original Poster
Rep: Reputation: 0
Hi again,

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.
 
Old 11-18-2002, 06:46 AM   #6
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,415
Blog Entries: 55

Rep: Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600
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.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Unable to install packages from fat32 for -current build MWilson Slackware 10 09-04-2005 11:05 PM
how to install *.scr.rpm packages... IAnCool Linux - Newbie 5 03-06-2005 01:48 AM
How do I install .rpm packages using RH9? ScottyKUtah Linux - Newbie 3 08-08-2004 08:09 AM
RPM 'failed dependencies': Why can I not install any rpm packages? leontini Linux - Newbie 7 09-16-2003 12:44 AM
can RPM removing all packages I have install? Embeder Linux - General 4 06-13-2003 10:37 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 07:40 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration