mho Posted January 28, 2008 Share Posted January 28, 2008 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 -) ) Quote Link to comment https://forums.phpfreaks.com/topic/88188-php-remove-dir-and-sub-permissions/ Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.