Sponsored Content
Full Discussion: Critical lib renamed
Top Forums UNIX for Advanced & Expert Users Critical lib renamed Post 302460948 by remi75 on Friday 8th of October 2010 04:24:17 AM
Old 10-08-2010
Quote:
Originally Posted by methyl
Ideas:

Does the computer respond to external "ftp". I wonder if you can rename the file from a ftp session?

Does the computer respond to external rcp? I wonder if you could copy the library to another computer, rename it and copy it back?

bash (but not ksh) has a character-by-character raw read feature (read -r -n1). Maybe someone better with bash than me could use this feature to create a script to binary copy a file?
With umask it might even be possible to get the permissions correct enough to run real commands to fix the problem.
thnx for reading us, unfortunatly no service/deamon will get triggered by a remote connection, as they are linked to libc ...

hmm i will try that read -r -n1 ... Smilie

regards

---------- Post updated at 10:24 AM ---------- Previous update was at 10:05 AM ----------

Quote:
Originally Posted by methyl
@jlliagre
This is verifiable fact.



The O/P states that bash is still working. I picked up the bash "read" idea from the IBM website after googling the library filename (which we finally got accurately in post #15). Found a thread where they were responding to someone in a similar situation. Renaming this library is a technique to get certain software such as Apache running on AIX when a replacement library is installed further down the library search path. However you have to do things in precisely the right order or you are in a mess.
Unfortunately the promising thread petered out when that O/P rebooted the computer and an unrelated can of worms opened due to having two system discs at different releases of AIX with the wrong one as the default boot.

I picked on "ftp" and "rcp" as ideas because they were not on a list I found of dependencies for the high level library. This does not mean that it will work, but it is worth a try. Given access to the O/S we could find out what libraries each binary requires and look for a loophole.

On the permissions front we won't need execute permissions but we could need world read. Depends on what the default umask is in the first place.

Overall this would be much easier if you or I had a running copy of this AIX complete with the unusual addition of "bash".

I'd still be interested if there is someone out there who can write a binary file copy in "bash".

As you hinted in an earlier post, I too am surprised that this computer stayed running for any length of time.

There are still many options available almost all of which involve booting an alternative system to carry out a repair. Depends on local conditions and whether they have a full release kit and a fully documented system (it's a bit too late to do a hardware and software inventory).
thanx for yout time too Smilie

yup the server was up for a week Smilie in that state, i personally (sorry) am not surprised, as the necessary binaries for a session (kernel, TheLogin and shells and other binaries were already on RAM ,
what happend in this case is that every NEW process/programm that we try to lunch ... wont lunch ...

Reparing the thing is not an issue at all, the challenge was to do it , the Unix Smilie way
not the crosoft way -- i just hate rebooting machines Smilie reinstalling is even more dishonoring to me Smilie

yup its a matter of a few minutes rebooting a different media, mount the root partition manually somewhere and i throw in that cp lib.a.old lib.a

now the server got fixed ... but not to flatter my self I think this is a good subject and very pedagogic, as we have seen many nifty things about unix ...and i have learned things in here Smilie

thnx to all, I will recheck this thread daily , as if someone finds a solution I will be a little bit more litterate after reading it Smilie

Have a great one

Last edited by remi75; 10-08-2010 at 05:32 AM..
 

10 More Discussions You Might Find Interesting

1. 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

2. 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

3. 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

4. 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

5. 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

6. 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

7. 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

8. 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

9. 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

10. 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
All times are GMT -4. The time now is 03:55 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy