home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #31 / NN_1992_31.iso / spool / comp / os / linux / 22434 < prev    next >
Encoding:
Text File  |  1993-01-02  |  1.5 KB  |  40 lines

  1. Newsgroups: comp.os.linux
  2. Path: sparky!uunet!microsoft!hexnut!markcha
  3. From: markcha@microsoft.com (Mark Chace)
  4. Subject: Re: Can't log in as non-root...
  5. Message-ID: <1993Jan02.093300.11092@microsoft.com>
  6. Date: 02 Jan 93 09:33:00 GMT
  7. Organization: Microsoft Corporation
  8. References: <chans.725921524@marsh>
  9. Lines: 29
  10.  
  11. In article <chans.725921524@marsh> chans@cs.curtin.edu.au (Sean Chan) writes:
  12. >Sorry if this question has been asked before but I can't find it, but I
  13. >can't log in as root anymore. This happened AFTER I tried symlinking
  14. >libc.so.4 to libc.so.4.2. The error I get is :-
  15. >
  16. >login: user1
  17. >-bash: can't load library '/lib/libc.so.4'
  18. >       Permission denied
  19.  
  20. The problem is that the library needs to be world readable.  Do a
  21.  
  22.     chmod a+r /lib/libc.so.4.2
  23. >
  24. >I've tried chowning libc.so.4 to bin.bin or root.other (currently it's
  25. >root.root) but it makes no difference. Also, once I've got libc.so.4.2
  26. >done, can I delete libc.so.4.0 and libc.so.4.1??
  27.  
  28. Probably not.  When linked, a jump-table program will contain an imbedded 
  29. name of the shared library to load.  By the magic of jump tables, a 
  30. program will be compatable with future shared libraries, which is why you
  31. you can create a link from the old name to the new name. 
  32.  
  33. As long as you have a program that has the old name imbedded in it, you
  34. need a file with the name of the static image for linux to load, or the
  35. program will refuse to run.  You can deturmine what name a program uses
  36. for the image with the ldd program.
  37.  
  38. Mark
  39.  
  40.