Welcome to Geeklog, Anonymous Thursday, November 28 2024 @ 12:47 am EST
Geeklog Forums
images set to what permission?
Anonymous
Anonymous
what must i set my permission to be for my images folder because i receive an eoor msg when i try to delete an image of an article saying to check my permission...which folder and what permission? meaning chmod to what number?
7
7
Quote
Status: offline
vinny
Site Admin
Admin
Registered: 06/24/02
Posts: 352
Location:Colorado, USA
Since the image file is created by the webserver, in order to delete it from the shell you must either be logged in as the owner (probably one of nobody, apache, or httpd depending on your config) or you must be root.
Alternatively you can write a quick php script that uses the unlink() php function to delete a file, then access that script from the web. i.e.
<?php
unlink(/path/to/file);
?>
-Vinny
10
8
Quote
All times are EST. The time is now 12:47 am.
- Normal Topic
- Sticky Topic
- Locked Topic
- New Post
- Sticky Topic W/ New Post
- Locked Topic W/ New Post
- View Anonymous Posts
- Able to post
- Filtered HTML Allowed
- Censored Content