Dave Smith
On Fri, Nov 14, 2003 at 01:25:07AM +1100, blchupin@tpg.com.au wrote:
I have a partition (/data1) formatted in reiserfs on the second HD where I store backups of various files.
I just installed SUSE 9 and whether this caused the problem I don't know - and I don't really care so long as I can delete some files. ----<text deleted>----
Have you tried
rm \?<filename>
(without the '<>')?
The shell might be trying to expand the ?.
Also, you don't need permission on the file itself to delete it, but the directory in which it resides. Run an 'ls -ld /data1', and check the permissions....
Basil, on the "suse-security list" a similar problem was reported in a thread entitled "Bug or Cracker" on how to delete files with meta characters such as "?" http://lists.suse.com/archive/suse-security/2003-Nov/0043.html Assuming it is not a permission problem (read-only file), suggestions for for deleting the file "?$2@",are as follows: Files with meta-chars in them can be hard to delete. Either escape the troublesome chars with a "\" (as Dave suggested above) or surround the whole filename with single quotes. For example: rm \?\$2@ or rm '?#2@' Of course, hidden chars (like control chars) will make those fail. You can always do: rm -i *2* putting any <normal> char between the stars and then give "y" to the one to go away and n to the others to keep. or if you are willing to live dangerously, rm -i * to remove some stuborn files. But you need to be VERY carefull. (or could delete a lot more than you expect) For files that start with a leading "-", be sure to make the pattern "./*something*". Hope this helps, Gar __________________________________________________________________ McAfee VirusScan Online from the Netscape Network. Comprehensive protection for your entire computer. Get your free trial today! http://channels.netscape.com/ns/computing/mcafee/index.jsp?promo=393397 Get AOL Instant Messenger 5.1 free of charge. Download Now! http://aim.aol.com/aimnew/Aim/register.adp?promo=380455