Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

error loading ilbrarys

Status
Not open for further replies.

axman505

Technical User
Jun 20, 2001
489
US
When i try to run the w and uptime commands i get the following error. Is this just a permissions problem or is there something else wrong? These commands both work under root, but not as users.

[aaron@Bravo /]$ w
w: error while loading shared libraries: libproc.so.2.0.7: cannot open shared object file: No such file or directory
[aaron@Bravo /]$ uptime
uptime: error while loading shared libraries: libproc.so.2.0.7: cannot open shared object file: No such file or directory
[aaron@Bravo /]$
 
Hi,

This means you don't have the 'procps' rpm installed - e.g. for redhat 7.2 --> ftp://rpmfind.net/linux/redhat/7.2/en/os/i386/RedHat/RPMS/procps-2.0.7-11.i386.rpm

Just install that with

rpm -Uvh procps*.rpm

Hope this helps
 
then can i ask why it works when i am logged in as root?
 
Hi,

Hmmmm... didn't read that one properly !

Are there any strange permissions on :

ls -l /lib/libproc.so.2.0.7

Regards

 
permissions are set to octal mode of 700


[aaron@Bravo aaron]$ ls -l /lib/libproc.so.2.0.7
-rwx------ 1 root root 35780 Nov 12 06:49 /lib/libproc.so.2.0.7
[aaron@Bravo aaron]$

what is the correct setting??
i would imagine 644
 
should all the files in the lib folder have the same permissions?
 
Hi,



Mine is -rwxr-xr-x (755) (on RH 7.1) so I'd do a :



chmod 755 /lib/libproc.so.2.0.7



Clearly as you had it no-one other than root could access that library.



Regards



 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top