LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 08-22-2007, 10:30 PM   #1
cnhawk386
LQ Newbie
 
Registered: Aug 2007
Posts: 25

Rep: Reputation: 15
hello!I have a strange question:


hello!I have a strange question:
in red hat AS 4,when I su other users ,for example:
[root@wlxxb ~]# su oracle
[oracle@wlxxb root]$ ll
ls: error while loading shared libraries: librt.so.1: cannot open shared objectfile: No such file or directory
[oracle@wlxxb root]$ top
top: error while loading shared libraries: libc.so.6: cannot open shared objectfile: No such file or directory
[oracle@wlxxb root]$ ls
ls: error while loading shared libraries: librt.so.1: cannot open shared objectfile: No such file or directory

what I to do to solve this problem?
 
Old 08-22-2007, 11:09 PM   #2
livetoday
Member
 
Registered: Jun 2006
Location: India
Distribution: RHEL,Suse,Fedora
Posts: 106

Rep: Reputation: 15
whats the output for cat /etc/passwd | grep oracle

and in future please give a relevant title for the thread...

Quote:
Originally Posted by cnhawk386 View Post
hello!I have a strange question:
in red hat AS 4,when I su other users ,for example:
[root@wlxxb ~]# su oracle
[oracle@wlxxb root]$ ll
ls: error while loading shared libraries: librt.so.1: cannot open shared objectfile: No such file or directory
[oracle@wlxxb root]$ top
top: error while loading shared libraries: libc.so.6: cannot open shared objectfile: No such file or directory
[oracle@wlxxb root]$ ls
ls: error while loading shared libraries: librt.so.1: cannot open shared objectfile: No such file or directory

what I to do to solve this problem?
 
Old 08-22-2007, 11:38 PM   #3
Wim Sturkenboom
Senior Member
 
Registered: Jan 2005
Location: Roodepoort, South Africa
Distribution: Ubuntu 12.04, Antix19.3
Posts: 3,794

Rep: Reputation: 282Reputation: 282Reputation: 282
My guess is that something is not in the PATH. Maybe use su - oracle will help as it uses the environment of the new user instead of the environment of the 'old' user.

It is however, in my opinion, a bit strange that a library can not be found.
 
Old 08-23-2007, 12:49 AM   #4
cnhawk386
LQ Newbie
 
Registered: Aug 2007
Posts: 25

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by livetoday View Post
whats the output for cat /etc/passwd | grep oracle

and in future please give a relevant title for the thread...

[root@wlxxb ~]# cat /etc/passwd | grep oracle
oracle:x:500:500::/home/oracle:/bin/bash
 
Old 08-23-2007, 12:51 AM   #5
cnhawk386
LQ Newbie
 
Registered: Aug 2007
Posts: 25

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by livetoday View Post
whats the output for cat /etc/passwd | grep oracle

and in future please give a relevant title for the thread...
[root@wlxxb ~]# su - oracle
[oracle@wlxxb ~]$ ll
ls: error while loading shared libraries: librt.so.1: cannot open shared objectfile: No such file or directory
[oracle@wlxxb ~]$
 
Old 08-23-2007, 01:41 AM   #6
DragonM15
Member
 
Registered: Sep 2003
Location: USA
Distribution: Slackware (Multiple Versions)
Posts: 455

Rep: Reputation: 31
What happens if you use the command such as 'top' in root? I am assuming it works fine?

DragonM15
 
Old 08-23-2007, 01:44 AM   #7
cnhawk386
LQ Newbie
 
Registered: Aug 2007
Posts: 25

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by DragonM15 View Post
What happens if you use the command such as 'top' in root? I am assuming it works fine?

DragonM15

really it works fine
 
Old 08-23-2007, 01:47 AM   #8
livetoday
Member
 
Registered: Jun 2006
Location: India
Distribution: RHEL,Suse,Fedora
Posts: 106

Rep: Reputation: 15
what is the output of

ldd $(which su)


Quote:
Originally Posted by cnhawk386 View Post
[root@wlxxb ~]# su - oracle
[oracle@wlxxb ~]$ ll
ls: error while loading shared libraries: librt.so.1: cannot open shared objectfile: No such file or directory
[oracle@wlxxb ~]$
 
Old 08-23-2007, 02:26 AM   #9
cnhawk386
LQ Newbie
 
Registered: Aug 2007
Posts: 25

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by livetoday View Post
what is the output of

ldd $(which su)
[root@wlxxb ~]# (which su)
/bin/su
 
Old 08-23-2007, 02:28 AM   #10
cnhawk386
LQ Newbie
 
Registered: Aug 2007
Posts: 25

Original Poster
Rep: Reputation: 15
[root@wlxxb ~]# su oracle
[oracle@wlxxb root]$ ll
ls: error while loading shared libraries: librt.so.1: cannot open shared objectfile: No such file or directory
[oracle@wlxxb root]$ locate librt.so.1
locate: error while loading shared libraries: libc.so.6: cannot open shared object file: No such file or directory
[oracle@wlxxb root]$ exit
exit
You have new mail in /var/spool/mail/root
[root@wlxxb ~]# locate librt.so.1
/lib/librt.so.1
[root@wlxxb ~]#
 
Old 08-23-2007, 03:50 AM   #11
livetoday
Member
 
Registered: Jun 2006
Location: India
Distribution: RHEL,Suse,Fedora
Posts: 106

Rep: Reputation: 15
Red face

my fault, .... actually ldd is the part of the command. plese provide the output of `ldd $(which su)` and not just `which su` while you are logged in as oracle.

Quote:
Originally Posted by cnhawk386 View Post
[root@wlxxb ~]# (which su)
/bin/su
 
Old 08-23-2007, 05:17 AM   #12
nhydra
Member
 
Registered: May 2006
Distribution: Fedora Core, FreeSpire, PC-BSD, NetBSD
Posts: 96

Rep: Reputation: 15
you got this issue only for the oracle user or for all users different than root?

Last edited by nhydra; 08-23-2007 at 05:21 AM.
 
  


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
strange question cyph3r7 Linux - Security 2 06-04-2004 12:44 PM
strange question 8-) uncle_fungus1 Linux - General 1 03-22-2004 03:07 PM
strange question pHoeNIgS Linux - Software 2 09-09-2003 11:23 AM
Strange Question NamedRisk Slackware 3 05-18-2003 02:01 PM
A Strange Question !!! hhegab Linux - Distributions 3 07-31-2002 05:36 PM

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

All times are GMT -5. The time now is 09:07 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