for dirname in $(ls -1 <path to bad dir>); do echo ">>${dirname}<<"; done<br>That will put the >><< around the name. A simple space will cause mayhem.<br><br><div class="gmail_quote">
On Wed, Mar 21, 2012 at 5:36 PM, <a href="mailto:burke@thealmquists.net">burke@thealmquists.net</a> <span dir="ltr"><<a href="mailto:burke@thealmquists.net">burke@thealmquists.net</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
You may be able to use tab completion to get the correct file or folder name.<br>
<div class="HOEnZb"><div class="h5"><br>
Jim Kinney <<a href="mailto:jim.kinney@gmail.com">jim.kinney@gmail.com</a>> wrote:<br>
<br>
>I missed the part about these were dirs and not files.<br>
>The dir names may have nonprinting characters so your work to change things<br>
>is failing on wrong name.<br>
>At this point you need to replace the drive or it's contents. Unless you<br>
>can work at the inode level to wipe very specific bits, the level of effort<br>
>exceeds realistic time frames. As long as those dirs exist, you're running<br>
>a compromised system.<br>
>On Mar 21, 2012 8:28 AM, "Barry Cisna" <<a href="mailto:cisna-barry@wc235.k12.il.us">cisna-barry@wc235.k12.il.us</a>> wrote:<br>
><br>
>> Hello All,<br>
>><br>
>> I did try the dd if,,,   of  as suggested in a post to change file<br>
>> size,,etc. After doing this routine i still get 'permission denied,,when<br>
>> trying to delete each file after the convert.<br>
>> SELinux is still disabled as before.<br>
>> Nothing is ever shown in any logs ,either system or secure,,,when trying<br>
>> to rm a file.<br>
>><br>
>> It seems the key in this is, when I try and create a blank text file and<br>
>> save to either of the libsh(rootkit) dirs I get 'bad file descriptor',<br>
>> thrown.<br>
>> very odd?<br>
>><br>
>> Not that it makes any diff,,but of course in searching the logs I did<br>
>> find the ip address that dropped in this rootkit was from China,<br>
>> surprise,,surprise,,,.<br>
>><br>
>><br>
>> Thanks again,<br>
>> Barry<br>
>><br>
>><br>
>><br>
>> _______________________________________________<br>
>> K12OSN mailing list<br>
>> <a href="mailto:K12OSN@redhat.com">K12OSN@redhat.com</a><br>
>> <a href="https://www.redhat.com/mailman/listinfo/k12osn" target="_blank">https://www.redhat.com/mailman/listinfo/k12osn</a><br>
>> For more info see <<a href="http://www.k12os.org" target="_blank">http://www.k12os.org</a>><br>
>><br>
><br>
>_______________________________________________<br>
>K12OSN mailing list<br>
><a href="mailto:K12OSN@redhat.com">K12OSN@redhat.com</a><br>
><a href="https://www.redhat.com/mailman/listinfo/k12osn" target="_blank">https://www.redhat.com/mailman/listinfo/k12osn</a><br>
>For more info see <<a href="http://www.k12os.org" target="_blank">http://www.k12os.org</a>><br>
<br>
_______________________________________________<br>
K12OSN mailing list<br>
<a href="mailto:K12OSN@redhat.com">K12OSN@redhat.com</a><br>
<a href="https://www.redhat.com/mailman/listinfo/k12osn" target="_blank">https://www.redhat.com/mailman/listinfo/k12osn</a><br>
For more info see <<a href="http://www.k12os.org" target="_blank">http://www.k12os.org</a>><br>
</div></div></blockquote></div><br><br clear="all"><br>-- <br>-- <br>James P. Kinney III<br><br>As long as the general population is passive, apathetic, diverted to 
consumerism or hatred of the vulnerable, then the powerful can do as 
they please, and those who survive will be left to contemplate the 
outcome.<br>- <i><i><i><i>2011 Noam Chomsky<br><br><a href="http://heretothereideas.blogspot.com/" target="_blank">http://heretothereideas.blogspot.com/</a><br></i></i></i></i><br>