LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices

Reply
 
Search this Thread
Old 08-27-2012, 03:18 PM   #1
kais1
Member
 
Registered: Dec 2008
Posts: 61

Rep: Reputation: 17
RPM search as user fails and works with root user


Hai all,

We have Linux RHEL 4 Itanium installed on 2 servers.

[oracle@db1 ~]$ uname -a
Linux servername 2.6.9-55.EL #1 SMP Fri Apr 20 16:30:19 EDT 2007 ia64 ia64 ia64 GNU/Linux


Any clue ?

Kai

Last edited by kais1; 08-29-2012 at 12:13 AM.
 
Old 08-27-2012, 08:37 PM   #2
chrism01
Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Centos 6.5, Centos 5.10
Posts: 16,261

Rep: Reputation: 2028Reputation: 2028Reputation: 2028Reputation: 2028Reputation: 2028Reputation: 2028Reputation: 2028Reputation: 2028Reputation: 2028Reputation: 2028Reputation: 2028
1. if you want non-root user to be able to run those rpm cmds, you'll want them IN the rpm group.
eg
Code:
 open("/var/lib/rpm/__db.001", O_RDWR) = -1 EACCES (Permission denied)

2. The above may also be the cause of
Code:
.... libm.so.6.1 ... No such file or directory
... libc.mo ... No such file or directory
OR they really don't exist ie are not installed
 
Old 08-28-2012, 02:33 PM   #3
kais1
Member
 
Registered: Dec 2008
Posts: 61

Original Poster
Rep: Reputation: 17
Thanks Chris.

1.We have the files missing in node 2 too, but the same command works fine in node 2 as non-root user

Kai

Last edited by kais1; 08-29-2012 at 12:14 AM.
 
Old 08-28-2012, 06:53 PM   #4
chrism01
Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Centos 6.5, Centos 5.10
Posts: 16,261

Rep: Reputation: 2028Reputation: 2028Reputation: 2028Reputation: 2028Reputation: 2028Reputation: 2028Reputation: 2028Reputation: 2028Reputation: 2028Reputation: 2028Reputation: 2028
There's something seriously messed up with your rpm SW, any user should be able to
Code:
 rpm -qa | grep glibc
I just double checked with a non-priv user on one of my systems; no problem...

Try
Code:
rpm --rebuilddb
I'd also x-check the ownerships, perms & selinux (not on RHEL4 though) settings on both systems for the rpm SW & rpm db
On my RHEL5 & RHEL6 systems, I'd check the /var/lib/rpm dir contents.

See http://www.cyberciti.biz/tips/howto-...-database.html

NB: do the rebuilddb after checking/setting owners/perms etc.

BTW: you do know RHEL4 went out of regular support in Feb http://www.redhat.com/security/updates/errata/ ?

Last edited by chrism01; 09-02-2012 at 06:10 AM. Reason: typo
 
Old 09-01-2012, 06:15 AM   #5
kais1
Member
 
Registered: Dec 2008
Posts: 61

Original Poster
Rep: Reputation: 17
Thanks Chris. I tried rebuilding the RPM, but issue still exists.

Kai
 
Old 09-02-2012, 06:11 AM   #6
chrism01
Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Centos 6.5, Centos 5.10
Posts: 16,261

Rep: Reputation: 2028Reputation: 2028Reputation: 2028Reputation: 2028Reputation: 2028Reputation: 2028Reputation: 2028Reputation: 2028Reputation: 2028Reputation: 2028Reputation: 2028
So, did you add the user to the rpm group?
 
Old 09-02-2012, 06:35 AM   #7
kais1
Member
 
Registered: Dec 2008
Posts: 61

Original Poster
Rep: Reputation: 17
Quote:
Originally Posted by chrism01 View Post
So, did you add the user to the rpm group?
Yes . Chris. I tried the same , but still not working. Wondering what else could be the problem.

Kai
 
Old 09-02-2012, 06:22 PM   #8
chrism01
Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Centos 6.5, Centos 5.10
Posts: 16,261

Rep: Reputation: 2028Reputation: 2028Reputation: 2028Reputation: 2028Reputation: 2028Reputation: 2028Reputation: 2028Reputation: 2028Reputation: 2028Reputation: 2028Reputation: 2028
I guess you're going to have to slog through checking the working user against the non-working one..
Check the login files line by line, ownerships, groups, perms, acls ...
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
mysql connect remote as root works, user fails sir-lancealot Linux - Server 2 02-29-2012 09:50 AM
[SOLVED] DBD::ODBC works as root but not as non-root user on CentOS5 - any ideas? prgupta Red Hat 2 07-13-2010 12:20 AM
root user fails to log-in the28thfrozenfish Suse/Novell 2 02-17-2007 02:21 AM
X only works with root user joe83 Slackware 14 09-06-2004 08:17 AM
IntelliMouse thumb buttons work as root, broken as non-root user, wheel works always digital vortex Linux - Hardware 7 03-02-2004 04:14 PM


All times are GMT -5. The time now is 09:11 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration