FTP troubles - help please
Been trying to delete an html file with no luck. I continue getting a message that it's chmod'ed so that I can't delete it. I've gotten around this before, but for how I did it. Anyone care to refresh my memory?
----------
Isn't it time you started making money with your site!
http://www.birminghamnet.com/cgi-bin/links/pages/WebmasterResources/MakingMoney
Traffic-Website.com free traffic, affiliate programs, hosting, & domain names.
My Site got hacked, but i'm coming back?
JP Stones posted this at 00:17 — 3rd June 1999.
They have: 2,390 posts
Joined: Nov 1998
Well I have never had this trouble but you could re-CHMOD it to say 755, and then delete.
JP
----------
The Webmaster Promotion and Resource Center.
http://www.what-next.com
Anonymous posted this at 01:05 — 3rd June 1999.
They have: 5,633 posts
Joined: Jan 1970
i guess i know about your problem.
a script has changed the permission, right?
just write another script that chmods the file to 777 or 755 and you'll be able to delete, or simply let the script do this for ya.
cu
patrick
fairhousing posted this at 22:13 — 9th June 1999.
They have: 1,587 posts
Joined: Mar 1999
Yes, a script chmod'ed the file so that I can't do anything with it. I went to www.cgi-resources.com and looked for such a script as described above but couldn't find one. Any suggestions?
----------
Isn't it time you started making money with your site!
http://www.birminghamnet.com/cgi-bin/links/pages/WebmasterResources/MakingMoney
Traffic-Website.com free traffic, affiliate programs, hosting, & domain names.
My Site got hacked, but i'm coming back?
John Pollock posted this at 19:57 — 10th June 1999.
He has: 628 posts
Joined: Mar 1999
Patrick knows more along this line, but I think all you need to do is write a little Perl Script on your own. It would be pretty short, something like this (Patrick, coreect me if I mess up here ):
#!/usr/bin/perl
chmod (0755, "/your/path/filename.html");
Save it and run the program from the command line through telnet. It should fix the chmod permissions for you.
----------
John Pollock
http://www.pageresource.com
Java Script: A Beginner's Guide
Page Resource
fairhousing posted this at 20:23 — 10th June 1999.
They have: 1,587 posts
Joined: Mar 1999
Hmm, sounds simple enough, I'll have to try it. I don't have telnet though, so I'll use as a simple cgi function.
----------
Isn't it time you started making money with your site!
http://www.birminghamnet.com/cgi-bin/links/pages/WebmasterResources/MakingMoney
Traffic-Website.com free traffic, affiliate programs, hosting, & domain names.
My Site got hacked, but i'm coming back?
fairhousing posted this at 21:47 — 10th June 1999.
They have: 1,587 posts
Joined: Mar 1999
I tried this and got a 500 error:
#!/usr/local/bin/perl
chmod (0777, "/data1/myserver/domain/directory");
Hmmm, that smiley face is supposed to be an )
I named it as a cgi file tried to execute it by typing in the url. Any ideas of what I need to do to get it to work.
Thanks
----------
Isn't it time you started making money with your site!
http://www.birminghamnet.com/cgi-bin/links/pages/WebmasterResources/MakingMoney
Traffic-Website.com free traffic, affiliate programs, hosting, & domain names.
My Site got hacked, but i'm coming back?
John Pollock posted this at 16:03 — 11th June 1999.
He has: 628 posts
Joined: Mar 1999
Hmm...
Maybe I have the format wrong, or left something out. We'll have to get Patrick when he gets back in.
----------
John Pollock
http://www.pageresource.com
Java Script: A Beginner's Guide
Page Resource
Anonymous posted this at 16:19 — 11th June 1999.
They have: 5,633 posts
Joined: Jan 1970
Try this:
#!/usr/local/bin/perl
unlink ("/path/to/file.html");
print "content-type: text/plain\n\n";
print "The file was successfully deleted";
This script should delete the file.
----------
wdresources
http://www.wdresources.com
John Pollock posted this at 16:21 — 11th June 1999.
He has: 628 posts
Joined: Mar 1999
Thanks for the help polpus, I hadn't thought of that.
----------
John Pollock
http://www.pageresource.com
fairhousing posted this at 16:54 — 11th June 1999.
They have: 1,587 posts
Joined: Mar 1999
Works like a charm! Thanks a lot polpus and John.
----------
Isn't it time you started making money with your site!
http://www.birminghamnet.com/cgi-bin/links/pages/WebmasterResources/MakingMoney
Traffic-Website.com free traffic, affiliate programs, hosting, & domain names.
My Site got hacked, but i'm coming back?
fairhousing posted this at 22:56 — 11th June 1999.
They have: 1,587 posts
Joined: Mar 1999
Well, actually it works great on files, not directories. Any idea how I can get rid of the directories?
----------
Isn't it time you started making money with your site!
http://www.birminghamnet.com/cgi-bin/links/pages/WebmasterResources/MakingMoney
Traffic-Website.com free traffic, affiliate programs, hosting, & domain names.
My Site got hacked, but i'm coming back?
fairhousing posted this at 23:17 — 11th June 1999.
They have: 1,587 posts
Joined: Mar 1999
OK, I figured it out with the rmdir command. All is good now, thanks again for the help.
----------
Isn't it time you started making money with your site!
http://www.birminghamnet.com/cgi-bin/links/pages/WebmasterResources/MakingMoney
Traffic-Website.com free traffic, affiliate programs, hosting, & domain names.
My Site got hacked, but i'm coming back?
Want to join the discussion? Create an account or log in if you already have one. Joining is fast, free and painless! We’ll even whisk you back here when you’ve finished.