The only thing I can run is shell buildin since I have a shell window open for
root login. I cannot create a new login session, nor can I ftp or telnet into
the machine.
Is there any way to recover the file?
Thanks,
Winter
-----------== Posted via Deja News, The Discussion Network ==----------
http://www.dejanews.com/ Search, Read, Discuss, or Start Your Own
Boot from cd-rom, mount the file system, and rename it.
--
Barry Margolin, bar...@bbnplanet.com
GTE Internetworking, Powered by BBN, Burlington, MA
*** DON'T SEND TECHNICAL QUESTIONS DIRECTLY TO ME, post them to newsgroups.
Please DON'T copy followups to me -- I'll assume it wasn't posted to the group.
I think /usr/sbin/static/mv exists for this purpose.
Peter
--
Peter Wittich
Dept. of Physics, U.Penn There's no small talk on walkie-talkies.
wit...@upenn5.hep.upenn.edu
------------------------------------------------------------------
There are a few commands in /usr/sbin/static, including mv and cp,
that might save the day.
--
Jim Davis | "Professor! You turned it down again!!"
jda...@CS.Arizona.EDU | -- Bubbles
I thought there might be some static linked program there, and even looked
into /usr/sbin (using echo *, of course :), but never noticed the static
subdirectory.
One interesting point I'd like to share. In an effort to assembly a "cp"
command with shell buildin, I tried the following, but it did not succeed in
copying all the bytes.
while read -r save
do
print -R $save >> ld.so.1
done < ld.so.1.old
Winter
In article <7gt3mv$8no$1...@netnews.upenn.edu>,
Peter Wittich <wit...@higgs.hep.upenn.edu> wrote:
> In comp.unix.solaris winter_of...@my-dejanews.com wrote:
> > I accidentally moved ld.so.1 under /usr/lib to ld.so.1.old. Now I cannot
run
> > any UNIX command in my shell session. They all came back with the error
> > message Cannot find /usr/lib/ld.so.1 Even with mv and cp command.
> > [...]
> > Is there any way to recover the file?
>
> I think /usr/sbin/static/mv exists for this purpose.
>
> Peter
>
> --
> Peter Wittich
> Dept. of Physics, U.Penn There's no small talk on walkie-talkies.
> wit...@upenn5.hep.upenn.edu
> ------------------------------------------------------------------
>
-----------== Posted via Deja News, The Discussion Network ==----------
winter_of...@my-dejanews.com writes:
>I accidentally moved ld.so.1 under /usr/lib to ld.so.1.old. Now I cannot run
>any UNIX command in my shell session. They all came back with the error
>message Cannot find /usr/lib/ld.so.1 Even with mv and cp command.
>The only thing I can run is shell buildin since I have a shell window open for
>root login. I cannot create a new login session, nor can I ftp or telnet into
>the machine.
Try /usr/sbin/static/mv (may not exist)
Casper
--
Expressed in this posting are my opinions. They are in no way related
to opinions held by my employer, Sun Microsystems.
Statements on Sun products included here are not gospel and may
be fiction rather than truth.
That will work for text files, but almost certainly can't deal with the
null bytes that exist in binary files. Most commands that ordinarily deal
with text use C's string functions, which treat a null byte as the end of
string marker, and thus ignore anything on the line after the null.
Specifically, the /usr/sbin/static contents are in package SUNWsutl. This is
included in the SUNWCall cluster, but not (for example) in the SUNWCprog one.
Chris Thompson
Email: cet1 [at] cam.ac.uk
--
ChrisHo
On 6 May 1999 22:05:19 GMT, Peter Wittich
<wit...@higgs.hep.upenn.edu> wrote:
>In comp.unix.solaris winter_of...@my-dejanews.com wrote:
>> I accidentally moved ld.so.1 under /usr/lib to ld.so.1.old. Now I cannot run
>> any UNIX command in my shell session. They all came back with the error
>> message Cannot find /usr/lib/ld.so.1 Even with mv and cp command.