CPUG

The Check Point User Group

A Resource For The Check Point Community.  Fast.  Useful.  Independent.

1. CCSA/CCSE One-Week Dual-Certification Training Course with CPUG in San Francisco!
    Courses Starting 12/8, (2009) 1/19, 2/9, 3/9, 4/6, 5/4, 6/8, 7/6, 8/3.
2. Join Us On LinkedIn - We now have a CPUG group.


Go Back   CPUG: The Check Point User Group > Check Point Firewall-1/VPN-1 And Related Products > Miscellaneous
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 2006-11-04
Member
 
Join Date: 2005-10-20
Posts: 47
Rep Power: 0
AndyB has an average reputation (10+)
Default Cannot delete files with strange characters

Guys,

I have accidently unpacked a R55_wrapper tgz package into my /var/admin folder. This folder is now full of strange files and folders which I cannot either move or delete.

Does anyone know how to get rid of these files or is going to require a fresh install on the Nokia box.

regards
Reply With Quote
  #2 (permalink)  
Old 2006-11-04
Senior Member
 
Join Date: 2006-10-05
Location: Belgium
Posts: 108
Rep Power: 3
Robby Cauwerts has an average reputation (10+)
Default Re: Cannot delete files with strange characters

Then you should have a /var/admin/IPSO_wrapper_R55 (name may be different) folder.
rm -r /var/admin/IPSO_wrapper_R55 should delete this folder.

And could you give an example of a "strange" file name?

Last edited by Robby Cauwerts; 2006-11-04 at 14:51.
Reply With Quote
  #3 (permalink)  
Old 2006-11-04
Member
 
Join Date: 2005-10-20
Posts: 47
Rep Power: 0
AndyB has an average reputation (10+)
Default Re: Cannot delete files with strange characters

This is what I am seeing in the /var/admin folder. I have already removed the R55 wrapper file but the others will not move or be deleted. I am not sure if they will cause a problem if I continue with the installation of this firewall.


login as: admin
admin@218.185.10.206's password:
Last login: Sat Nov 4 18:17:18 2006 from 82.20.252.189
IPSO 3.9-BUILD045 #1515: 11.28.2005 222501
Terminal type? [xterm]
FWL01MEL1AU[admin]# ls
??????Bm?y??n?WS?]??mc??VVf?pLIm??????MM:?n?lS?R?????C???SK0?Rq1??M5 ??}n??;??[e? \????#??W?o\*Vd?c[?
?X-?<lK???I?????2??K??g!???!?Z\,??*\?MM????(??Y?ei$?0 ??"I1???M8??G?t?*8?v??4???? h?????]Vm????E??<?e
?;?@?0n?T?{9?#?g?C???_??????T??-7????#2?[^1??ID??j?????9????sf??y???I?J?`!]T??if ???aA??\"?.x~!m?Y?O
.cshrc
.history
.login
.profile
\??S??JG????????{?:??????????{??p?gSQ_CQ=??W??e??? A??n?&???$???CY?22??????????Gt ???_????M1v??N?????
oldfiles
???L?H\?[??@!???5? ?&?ae???R?(c&?????LWB&?????Q?;#?+????8????2?G.?
?se\*?32?8F+?c??Ht?u?C
?????h?N?iC??\??31???dL??w4?(?-;????j=?v?|????dM!W????s????\????!???Se?E??????^? }?O?????v??????2???
?????C6?b'?~??&???Cd??J?????Xm?v?????????R?4s????k f???????|7???????????R?f?:?A?p _?h?\\+??2???n?????
??@?uCG???!n?????p`m?(??-?8o??s???Z\V??????????????#?{?qW????8?K?.wd??????A ????| ]???YIl????????BE??
Reply With Quote
  #4 (permalink)  
Old 2006-11-04
Senior Member
 
Join Date: 2006-10-05
Location: Belgium
Posts: 108
Rep Power: 3
Robby Cauwerts has an average reputation (10+)
Default Re: Cannot delete files with strange characters

can you post the output of "ls -ail /var/admin" ?

This will also print the inode number.
To delete a file based on its inode nr:
cd /var/admin
find . -inum the_inode_number -exec rm -i {} \;
y

Last edited by Robby Cauwerts; 2006-11-04 at 15:19.
Reply With Quote
  #5 (permalink)  
Old 2006-11-04
Member
 
Join Date: 2005-10-20
Posts: 47
Rep Power: 0
AndyB has an average reputation (10+)
Default Re: Cannot delete files with strange characters

Please find output of requested command.



login as: admin
admin@218.185.10.206's password:
Last login: Sun Nov 5 07:32:01 2006 from 82.20.252.189
IPSO 3.9-BUILD045 #1515: 11.28.2005 222501
Terminal type? [xterm]
FWL01MEL1AU[admin]# ls -ail /var/admin
total 371
161286 -rwsrwsr-t 1 root wheel 0 Nov 4 10:30 ??????Bm?y??n?WS?]??mc??VVf?pLIm??????MM:?n?lS?R?????C???SK0?Rq1??M5 ??}n??;??[e?\????#??W?o\*Vd?c[?
161299 crwsrwsr-t 1 root wheel 0, 0 Nov 4 10:30 ?X-?<lK???I?????2??K??g!???!?Z\,??*\?MM????(??Y?ei$?0 ??"I1???M8??G?t?*8?v??4????h?????]Vm????E??<?e
161298 -rwsrwsr-t 1 root wheel 0 Nov 4 10:30 ?;?@?0n?T?{9?#?g?C???_??????T??-7????#2?[^1??ID??j?????9????sf??y???I?J?`!]T??if???aA??\"?.x~!m?Y?O
161280 drwxr-xr-x 3 root wheel 2560 Nov 5 08:03 .
2 drwxr-xr-x 18 root wheel 512 Nov 4 12:54 ..
161282 -rwxr-xr-x 1 root wheel 701 Nov 4 03:01 .cshrc
161284 -rw------- 1 root wheel 1215 Nov 5 08:09 .history
161283 -rwxr-xr-x 1 root wheel 114 Nov 4 03:01 .login
161281 -rwxr-xr-x 1 root wheel 304 Nov 4 03:01 .profile
161287 -rwsrwsr-t 1 root wheel 0 Nov 4 10:30 \??S??JG????????{?:??????????{??p?gSQ_CQ=??W??e??? A??n?&???$???CY?22??????????Gt???_????M1v??N?????
161285 -rw------- 1 root wheel 360448 Nov 5 08:02 ftpd.core
798720 drwxr-xr-x 4 root wheel 1536 Nov 5 07:49 oldfiles
161297 -rwsrwsr-t 1 root wheel 0 Nov 4 10:30 ???L?H\?[??@!???5? ?&?ae???R?(c&?????LWB&?????Q?;#?+????8????2?G.?
161302 -rwsrwsr-t 1 root wheel 0 Nov 4 10:30 ?se\*?32?8F+?c??Ht?u?C
161292 -rwsrwsr-t 1 root wheel 0 Nov 4 10:30 ?????h?N?iC??\??31???dL??w4?(?-;????j=?v?|????dM!W????s????\????!???Se?E??????^?} ?O?????v??????2???
161294 -rwsrwsr-t 1 root wheel 0 Nov 4 10:30 ?????C6?b'?~??&???Cd??J?????Xm?v?????????R?4s????k f???????|7???????????R?f?:?A?p_?h?\\+??2???n?????
161303 -rwsrwsr-t 1 root wheel 0 Nov 4 10:30 ??@?uCG???!n?????p`m?(??-?8o??s???Z\V??????????????#?{?qW????8?K?.wd??????A ????|]???YIl????????BE??
Reply With Quote
  #6 (permalink)  
Old 2006-11-04
Senior Member
 
Join Date: 2006-10-05
Location: Belgium
Posts: 108
Rep Power: 3
Robby Cauwerts has an average reputation (10+)
Default Re: Cannot delete files with strange characters

What command did you use to extract the wrapper?

To delete the first file:
161286 -rwsrwsr-t 1 root wheel 0 Nov 4 10:30 ??????Bm?y??n?WS?]??mc??VVf?pLIm??????MM:?n?lS?R?????C???SK0?Rq1??M5 ??}n??;??[e?\????#??W?o\*Vd?c[?

cd /var/admin
find . -inum 161286 -exec rm -i {} \;
y
Reply With Quote
  #7 (permalink)  
Old 2006-11-04
Member
 
Join Date: 2005-10-20
Posts: 47
Rep Power: 0
AndyB has an average reputation (10+)
Default Re: Cannot delete files with strange characters

Robby,

Cheers that has worked a treat. But I do have one more question what command can I use to delete directories? I have several directories that I managed to hide away in the folder 'oldfiles'

Once I can get rid of these folders and I finish off the build of this gateway

Again thanks a million for you help so far.

Andy
Reply With Quote
  #8 (permalink)  
Old 2006-11-05
Senior Member
 
Join Date: 2006-10-05
Location: Belgium
Posts: 108
Rep Power: 3
Robby Cauwerts has an average reputation (10+)
Default Re: Cannot delete files with strange characters

same as above but use
rm -ri {} \;
instead of
rm -i {} \;

for the directory
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


All times are GMT -7. The time now is 12:57.


Powered by vBulletin® Version 3.7.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.2.0