Critical lib renamed


 
Thread Tools Search this Thread
Top Forums UNIX for Advanced & Expert Users Critical lib renamed
# 8  
Old 10-06-2010
That would have probably worked if the lib had been moved to a different directory while keeping its original name but I understand the issue is it has been renamed.
# 9  
Old 10-06-2010
Quote:
Originally Posted by remi75
for busybox ... critical files can get messed up by other than you (progs/corruped FS ... a scipt gone wild on weird variables .... ) Smilie
This is why you don't run things as root unless they actually need root. If they go on a rampage they'll run into walls instead of through walls.

Just reading/writing the file won't be enough. You'll need a means to set it executable, too.

Try export LD_PRELOAD=/path/to/lib.so, that might satisfy the linking dependencies...maybe...
# 10  
Old 10-07-2010
Quote:
Originally Posted by Corona688
This is why you don't run things as root unless they actually need root. If they go on a rampage they'll run into walls instead of through walls.

Just reading/writing the file won't be enough. You'll need a means to set it executable, too.

Try export LD_PRELOAD=/path/to/lib.so, that might satisfy the linking dependencies...maybe...
I am an admin, whenever I work , I have to be root, I am hired to login as root Smilie
Of course if i dont need to be root, I never am ...
to do my expreince I had to be root of course Smilie
fyi, i tryed ld_preload, wont do it, it is AIX it doesnt even support ldconfig ...

and most importantly, this a test server ... there is no way I would have attempted this elsewhere ...


BUT! thank you Smilie

Last edited by remi75; 10-07-2010 at 05:28 AM..
# 11  
Old 10-07-2010
It seems on AIX that would be LDR_PRELOAD=xxx but I doubt this can work anyway as the loader itself depends on libc to fulfill its tasks ... a catch-22 situation.
# 12  
Old 10-07-2010
I was under the impression that LDR_PRELOAD was the preload directive, like the normal UNIX LD_PRELOAD. I think he would need LIBPATH which is the equivalent of LD_LIBRARY_PATH, would he not ? I guess it may be worth trying both...
# 13  
Old 10-07-2010
LD_LIBRARY_PATH allows to set a list of directories where to the program loader will look for libraries. This is fine when the library you want to run is not in the default path but has kept its initial name. The OP issue is not the library being elsewhere but a library name mismatch due to a renaming. A preload was a good guess as it accepts a full arbitrary library name.
# 14  
Old 10-07-2010
Back to post #1 .
Can you post the full hierarchial name of the the original file and the full hierarchial name of the file now?


Without trying the commands on on the critical library, do any of the following unix commands still work on expendable test files?

Code:
ls
tr
cat
ln
chmod

Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Ubuntu

Renamed Volume Group name on Webmin while running samba server (oops)

Hi...I'm new to Linux and was working on a home server. I have it operational with Samba Share as my NAS system. Unfortunately, while I was on Webmin I changed the Logical Volume Group Name and now I can't find the data I had saved on my Samba Server. Can anyone help me recover those files? ... (0 Replies)
Discussion started by: pangil
0 Replies

2. Shell Programming and Scripting

Renaming file and check for the renamed file existence

Hi Am trying to move a file from one name to another When I do "ls" to check for the moved filename I can see the file but when I try the same with a script am unable.. I think am doing some pretty silly error.. please help.. toMove=`ls | grep -E "partition.+"` mv $toMove partition._org... (7 Replies)
Discussion started by: Priya Amaresh
7 Replies

3. Shell Programming and Scripting

who renamed my executable

Hi All, I connected via rlogin in testing environment (ksh ) and placed an executable with -rwxr-xr-x permission. eg: from my own unix box used : rlogin host -l user But the exe was renamed by somebody. since it's only renaming none of the access time , modification time etc is altered.... (2 Replies)
Discussion started by: blackcat
2 Replies

4. UNIX for Advanced & Expert Users

Mistakenly renamed libdl.so: system got corrupted

Hi, I am using Ubuntu 8.04 64-bit (Hardy Heron LTS Desktop edition) OS on a 64-bit intel hardware (x86_64). I have wrongly renamed the /lib64/libdl-2.7.so shared library file and now hardly few commands are working. My Gnome UI display has gone and I could not establish any new connection via... (12 Replies)
Discussion started by: royalibrahim
12 Replies

5. Solaris

Renamed lib directory by mistake

Let's say someone accidentally renamed the lib directory in Solaris 8, and now they cannot get into the terminal or even rename the folder via file manager.What would one do? (37 Replies)
Discussion started by: jetjaguar
37 Replies

6. Red Hat

ls: /lib/libattr.so.1: no version information available (required by /lib/libacl.so.1)

Hello, I'm experimenting a problem on my rh server. Red Hat Enterprise Linux AS release 3 (Taroon Update 8) 2.4.21-47.ELsmp #1 SMP i686 i686 i386 GNU/Linux It started with a segmentation fault on #id root To resolve it, I've installed coreutils-4.5.3-28.4.i386.rpm But, I... (6 Replies)
Discussion started by: gogol_bordello
6 Replies

7. Shell Programming and Scripting

rsync - update file on backup when file renamed on source

hi all, Please help me with rsync. I configured rsync to preserve timestamps using the -a option. When i renamed fileA to fileB on source machine I have to copies at the backup server. The aim is to keep the most recent file. fileA & fileB has same contents. When i renamed fileB to... (2 Replies)
Discussion started by: coolatt
2 Replies

8. Shell Programming and Scripting

duplicate index names renamed

Hello everyone ! Please have a minute and see if you know how to script this I have a file like this: "create table .... ... create index n112 on ... ... create table ... .... create index n113 on... ... create table ... create index n112 on ...! duplicate ... (1 Reply)
Discussion started by: sotoc79
1 Replies

9. Shell Programming and Scripting

Very Critical

We have a batch job which runs and checks for certain files on a server and retrieves them to our server. But from last few hours the job is not running correctly. It gives msg file now found when there are files present on the server.. Nothing has been changed.................. (1 Reply)
Discussion started by: shikhakaul
1 Replies

10. UNIX for Dummies Questions & Answers

what is Critical section is all about?

what is a critical section?why multipleprocesses or multiplethreads cant be given a chance to access the critical section? please explain me with an example. thanks (3 Replies)
Discussion started by: compbug
3 Replies
Login or Register to Ask a Question