Gossamer Forum
Quote Reply
CHMOD ???
I am unable to delete the HTML files generated by the LinksSQL script, even though I set the variables
build_file_per and build_dir_per to 0777.... How do I pull this off?
If I tried using "rm index.html" thru telnet I get the message "cannot unlink `index.html': Permission denied"...
How do I solve this?

Quote Reply
Re: CHMOD ??? In reply to
Delete the files via FTP.

Regards,

Eliot Lee
Quote Reply
Re: CHMOD ??? In reply to
Or failing that, log-in as su to give yourself complete permissions to remove files from telenet.

- Eraser

Quote Reply
Re: CHMOD ??? In reply to
Not everyone can su to root.

Paul
Installations:http://wiredon.net/gt/
Support: http://wiredon.net/forum/

Quote Reply
Re: CHMOD ??? In reply to
Not saying he could, but if he can, doing so usually solves the problem of permission deleting.

- Eraser.

Quote Reply
Re: CHMOD ??? In reply to
Oh yeah I know - I assumed he didn't have root access....that's all....

Paul
Installations:http://wiredon.net/gt/
Support: http://wiredon.net/forum/

Quote Reply
Re: CHMOD ??? In reply to
You can use the following codes to delete all files and directories (generated by the LinksSQL) at a time.
1. Save the following codes as "delete.cgi".
2. upload "delete.cgi" to another directory (a directory which is password protected is recommended).
3. run "delete.cgi" from the web.
4. delete "delete.cgi" from your server.-->important

#!/usr/local/bin/perl
# Caution: Be careful to set $directory right.
# Caution: It will delete everything in that directory.

$directory = "/path/to/LinksSQL";

use File::Path
print "Content-type: text/html\n\n";
print "Deleting All Files in $directory:<BR><BR>\n";
rmtree([$directory], 1, 1);
print "<BR><BR>All Done!\n";


Quote Reply
Re: CHMOD ??? In reply to
Damn... that worked!
Thanks a zillion bro...

By the way, I do not have a root access.