file permissions

I don't know if this is the right topic area, but,

What do if i do if i've set the permissions so that i can't delete them?
change the file permissions? I can't! cuteftp won't let me because, guess what, i don't have permissions,

please help folks.
Who is Participating?
LoisCConnect With a Mentor Commented:
You can either use a script to chmod the files to 777 and then you would have permission to delete them, or you
can use a script to delete them.

To chmod them you could do something like:

@files = </data1/*>;
chmod(0777, @files);
print "Content-type: text/html\n\n";
print "Done";

or to delete them:

unlink </data1/*>;
print "Content-type: text/html\n\n";
print "Done";

Note both are untested.
Well, it really is an offtopic... but let's go.
Can you log in the place where your files are stored (i.e., via telnet)? If so, and it's a unix file system, you can change the permissions using the chmod command (chmod ugo+r fileName.ext). If not, you should contact the administrator of the netowrk where your files are stored (or the support of your ISP), and they can inform you how to proceed.

overworked admins on ISPs might ignore you unless you keepit simple. Give them a quick wildcard action for the whole directory and a simple 2 line email like....

My error. Could you please have ROOT
cd /home/m/mydir
and do a
chmod o+rw *

THanks, Me

This question was awarded, but never cleared due to the JSP-500 errors of that time.  It was "stuck" against userID -1 versus the intended expert whom you awarded.  This is a manual correction, so that the expert will now receive the points you awarded, and I have verified that you were not charged points again for this adjustment.  
Community Support Moderator @ Experts Exchange
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.