Jump to content

PHP remove dir and sub, permissions.


mho

Recommended Posts

Hello.

 

I would be very happy if someone out there, could explain how the permissions on groups/users in linux works.

 

My little problem is:

 

I have my ftp system, which creates a directory when a new user logs in. Etc.

 

User test logs into my ftp - my script will make a home directory for the user test. This is done by the 'ftp' group/user on my Debian Etch.

 

But when the user test dosen't wan't space on my ftp - I have a little script, that cleares the database for user test  and removes the directory (empty or not), but the home directory is still there.

Etc. /home/test

 

I'd tried both rmdir and exec(rm -r -f path) - but it seems like my script on apache webserver dosen't have access to delete dirs in group/user ftp.

 

My thing is now, that everytime I run the script - nothing happens. Like the apache group dosen't have access to the ftp group.

 

I tried google it, but without any results

 

Please help me figure out this mess.

 

Have a nice day.

 

(yes, I suck at explaining this issue proberly .. english is not my best -) )

Link to comment
https://forums.phpfreaks.com/topic/88188-php-remove-dir-and-sub-permissions/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.