PDA

View Full Version : When Perl goes wrong - how to delete if you don't have permission?


sarah_anne
10-31-2002, 12:16 PM
A script I was testing out (not my own) went haywire on some of my webspace's files (around fifty of them agh), and now whenever i try to delete them it says i don't have permission or operation not permitted.... i've tried manually changing permissions through Transmit on my Mac but no luck.

I once saw someone one a forum having the same problem. Unfortunatly, the website has shut down, so the solution is gone; i remember that it was some sort of cgi script that you got to run and it would sort things out so you could delete the messed up files.

Can someone help me out here? :)

toolkit
10-31-2002, 12:41 PM
Do you have telnet access to the server?

Another way would be to contact your tech support and have them do it for you.

sarah_anne
10-31-2002, 01:06 PM
No, no telnet, and emailing tech support isn't an option (complicated - the user email i'm registered with is someone else's account i don't know the password for, and they require email confirmation when you register for the support section of the site...)

I was just wondering if someone had a copy of the script i'd i'd seen in the forum, or a version of it.... it was dead small, like three lines long or something silly like that?

toolkit
10-31-2002, 02:13 PM
Maybe something like this would work?

$myfile = '/path/to/file';
$mode = '0755';
chmod $mode, $myfile;...changing 0755 to whatever permissions you want.

sarah_anne
10-31-2002, 05:57 PM
It gives a 500 ISE?