zEitEr
Super Moderator
Hello
As for now: an uploaded file (through a web form of a directadmin plugin) is owned by user "nobody" and has permissions of 0600. And since we (usually) are running a plugin from admin or another user (not "nobody") we can not even access it. Thus we need to run the plugin as root (via a suid wrapper). Even if to use this new feature http://www.directadmin.com/features.php?id=1594 and run a plugin as nobody we'll still need to run the plugin via a wrapper to be able to copy such a file to /home/* or /usr/local/directadmin/*
And here a question coming. Is that designed so that a file owner is nobody or is it a bug? Could it be fixed so uploaded file will be owned by an user who was uploading it in a plugin?
Discussion is here: http://forum.directadmin.com/showthread.php?t=49240
As for now: an uploaded file (through a web form of a directadmin plugin) is owned by user "nobody" and has permissions of 0600. And since we (usually) are running a plugin from admin or another user (not "nobody") we can not even access it. Thus we need to run the plugin as root (via a suid wrapper). Even if to use this new feature http://www.directadmin.com/features.php?id=1594 and run a plugin as nobody we'll still need to run the plugin via a wrapper to be able to copy such a file to /home/* or /usr/local/directadmin/*
And here a question coming. Is that designed so that a file owner is nobody or is it a bug? Could it be fixed so uploaded file will be owned by an user who was uploading it in a plugin?
Discussion is here: http://forum.directadmin.com/showthread.php?t=49240