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.
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
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
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
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.
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 ~]$
[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 ~]$
[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 ~]#
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.