Go Back   Trackpads Community > General Discussions > Computer and Technology > Web Design

Web Design Forums and discussions on webdesign

Web Design

Reply
 
LinkBack Thread Tools
Old 05-06-2005, 04:00   #1 (permalink)
Heidi
Civilians

 
Default Tricks up your sleeve? Re: Directory/File Permissions

I have this problem and I thought maybe I could get some answers here faster
than on the scripts help forum.

I have this directory and the files in it which I cannot change permissions
on, rename, delete etc.

I have tried via FTP and via Cpanel with no luck.

Anyone have any tricks up their sleeve for getting around this? I also want
to be able to upload an .htaccess file
to this directory but I can't do that either due to permission settings
which I can't change.

*grrrrrrrrrr*

Heidi


 
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Trackpads Information
Click to Visit
Old 05-06-2005, 04:00   #2 (permalink)
John Bokma
Civilians

 
Default Re: Tricks up your sleeve? Re: Directory/File Permissions

Heidi wrote:

> Viper wrote:
> : Your host will have to chnage the permissions back to you.
>
> I am my host :p
>
> heidi


You can get root (or similar priviledges)?, then it's easy, if not, they
you are not your host :-D

How did you create those files in the first place? It you did it with a CGI
(or PHP) script, you might be able to delete them using this CGI script (or
PHP).

Can you post the output of ls -al of the directory with the files?

--
John Perl SEO tools: http://johnbokma.com/perl/
Experienced (web) developer: http://castleamber.com/
Get a SEO report of your site for just 100 USD:
http://johnbokma.com/websitedesign/seo-expert-help.html
 
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 05-06-2005, 04:00   #3 (permalink)
Viper
Civilians

 
Default Re: Tricks up your sleeve? Re: Directory/File Permissions

Heidi wrote:
> Viper wrote:
>> Your host will have to chnage the permissions back to you.

>
> I am my host :p
>
> heidi


If you got root access.. and what John tells you doesnt work check this page
out..
http://www.computerhope.com/unix/uchown.htm


 
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 05-06-2005, 04:00   #4 (permalink)
Heidi
Civilians

 
Default Re: Tricks up your sleeve? Re: Directory/File Permissions

John Bokma wrote:
: How did you create those files in the first place? It you did it with
: a CGI (or PHP) script, you might be able to delete them using this CGI
: script (or PHP).

It was a PHP script that created that directory etc. for the upload of
files.
It is in use for the upload of files but there are some files that are not
in use
and I can't remove them because of permissions.

Heidi


 
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 05-06-2005, 04:00   #5 (permalink)
Rastus
Civilians

 
Default Re: Tricks up your sleeve? Re: Directory/File Permissions

Call me a newb but won't SSH'ing in as root enable you to delete, modify or
change any file?


 
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 05-06-2005, 04:00   #6 (permalink)
John Bokma
Civilians

 
Default Re: Tricks up your sleeve? Re: Directory/File Permissions

Heidi wrote:

> John Bokma wrote:
> : How did you create those files in the first place? It you did it
> : with a CGI (or PHP) script, you might be able to delete them using
> : this CGI script (or PHP).
>
> It was a PHP script that created that directory etc. for the upload of
> files.
> It is in use for the upload of files but there are some files that are
> not in use
> and I can't remove them because of permissions.


write a PHP script that deletes them:

<?php

unlink( "path/to/file" );

?>

make sure you remove such one time hacks, or at least make very sure you
are the only one that can use them...

--
John Perl SEO tools: http://johnbokma.com/perl/
Experienced (web) developer: http://castleamber.com/
Get a SEO report of your site for just 100 USD:
http://johnbokma.com/websitedesign/seo-expert-help.html
 
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 05-06-2005, 04:00   #7 (permalink)
Hywel Jenkins
Civilians

 
Default Re: Tricks up your sleeve? Re: Directory/File Permissions

In article <IfCee.40435$AE6.26432@tornado.texas.rr.com>,
blackcat2l@gmail.com says...
> John Bokma wrote:
> : How did you create those files in the first place? It you did it with
> : a CGI (or PHP) script, you might be able to delete them using this CGI
> : script (or PHP).
>
> It was a PHP script that created that directory etc. for the upload of
> files.
> It is in use for the upload of files but there are some files that are not
> in use
> and I can't remove them because of permissions.


There are functions in PHP that let you change the permissions: chmod,
chown, and chgrp.

--
Hywel
 
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply

Bookmarks

Thread Tools

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 On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
Re: cannot start copier due to missing file or directory Mike Glen Microsoft Applications 0 10-16-2005 10:05
BUG: CHM file parse failure due to # sign in directory name a non e mouse Web Design 1 09-08-2005 04:00
Server error: Cannot change permissions of file "usage_200505.html". Jon Web Design 0 06-14-2005 00:00
using current directory in the file path Marles Mcdonald Microsoft Applications 1 06-16-2004 02:57
Setting directory for file save in macro Jake Microsoft Applications 7 06-15-2004 17:19


Community Information
Options
Quick Options
Trackpads Non-Commercial Ad
Copyright Information Click to Visit
Time
Server Time
All times are GMT -4. The time now is 12:31.
Copyright
Copyright Information
The header is based off of work by Vipixel.com and modified by this site. Trackpads and the Trackpads Logo are both Registered Trademarks of Jason Edwards and cannot be used without prior written permission.  The only exception is as a link back to this site. Trackpads is a private website run by a small legion of volunteers, 3 dogs, 12.5 cats and an army of small, super smart, bio-engineered mice with pointy hats and tutu's. Search Engine Friendly URLs by vBSEO 3.2.0 RC7
Archive Links
Archive Links
Page generated in 2.18213 seconds with 19 queries