Skip to content
Advertisement

Tag: chroot

Differentiate each apache user and give permissions

In a web application, I want to create a folder for each www-data user and give write permissions just on that folder, and just to that user. AFTER VALIDATION I can do: This will create a new directory with a random name, in the path $file->getPath() with all permissions to the owner user. But it would give permissions to all

Advertisement