Jump to content

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

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.