From: AZ 9. <az...@gm...> - 2013-07-28 18:31:39
|
>>>>> The command would then be executed with the logged-in user permissions >>>>> (UID, GID), but just before it is chrooted to its home directory. >>>> >>>> What sort of command/script do you need to execute that requires the >>>> logged-in user permissions? >>> >>> Thank you very much for your answer / interest ! >>> >>> I need to run a command which mounts the user's filesystem right to its >>> DefaultRoot. This filesystem is a FUSE filesystem (a fully functional >>> filesystem in a userspace program). >>> >>> So I need to mount it with the logged-in user's permissions, and just >>> before the chroot to have required commands and so that chroot is then >>> done in the mounted filesystem. >> >> OK. Starting with proftpd-1.3.4, there is a 'core.chroot' event generated >> just before chroot happens; this means that you should be able to use: >> >> ExecOnEvent core.chroot ... > > Thank you very much ! > I just tried this event, it works, command is executed, however is it with ProFTPd daemon permissions, not with the logged-in user's permissions. > > Could it be possible to make the command executed with logged-in user's permissions ? Hello, Do you have any news on this subject ? Thank you very much ! Best regards, Ben |