GoFuckYourself.com - Adult Webmaster Forum

GoFuckYourself.com - Adult Webmaster Forum (https://gfy.com/index.php)
-   Fucking Around & Business Discussion (https://gfy.com/forumdisplay.php?f=26)
-   -   System administrators please help (https://gfy.com/showthread.php?t=752250)

lucky482 07-17-2007 01:14 PM

System administrators please help
 
I have a php script installed and when it creates folders, the folders give me a 550 permission denied when I try to edit/delete that folder.
What do I need to do to be able to delete these folders?
Can anyone help?

Thanks

who 07-17-2007 01:16 PM

you need change the ownership of the folders after they're created.

lucky482 07-17-2007 01:18 PM

Quote:

Originally Posted by who (Post 12774587)
you need change the ownership of the folders after they're created.

How do you do that?

who 07-17-2007 01:21 PM

Quote:

Originally Posted by lucky482 (Post 12774600)
How do you do that?

http://www.php.net/chown

lucky482 07-17-2007 01:28 PM

Quote:

Originally Posted by who (Post 12774621)

O.K. so I have to have my programmer add chown code to the script which changes the ownership of the folders after it's created? Thanks I will talk to the programmer for that.

But how can I delete these folders right now? Either through ftp or ssh.

Masterchief 07-17-2007 01:29 PM

Quote:

Originally Posted by who (Post 12774621)

Probably wouldn't work since you would have to be nuts to allow sudo execution for nobody/www/etc

Masterchief 07-17-2007 01:30 PM

Quote:

Originally Posted by lucky482 (Post 12774667)
But how can I delete these folders right now? Either through ftp or ssh.

have a script that's running under the web server's context chmod them 777

lucky482 07-17-2007 01:32 PM

Quote:

Originally Posted by Masterchief (Post 12774684)
have a script that's running under the web server's context chmod them 777

I tried chmod the folders to 777 in ftp manually but it's still not allowing me to delete the folders. Keeps giving me 550 permission denied.

Masterchief 07-17-2007 01:36 PM

Quote:

Originally Posted by lucky482 (Post 12774690)
I tried chmod the folders to 777 in ftp manually but it's still not allowing me to delete the folders. Keeps giving me 550 permission denied.

you need to write a script that does it and run it under the web server's context, then you'll be able to delete using ftp. alternatively if you have root just SSH/SFTP in and delete them manually.

lucky482 07-17-2007 01:41 PM

ok thanks. I'll have the programmer write the script


All times are GMT -7. The time now is 05:10 AM.

Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc123