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

in your mod_exec configuration, to execute the commands/scripts you need.

Hope this helps,
TJ

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

   It is not our purpose to become each other; it is to recognize
   each other, to learn to see the other and honor him for what
   he is.

        -Hermann Hesse

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

------------------------------------------------------------------------------
This SF.net email is sponsored by Windows:

Build for Windows Store.

http://p.sf.net/sfu/windows-dev2dev
_______________________________________________
ProFTPD Developers List
<proftpd-de...@proftpd.org>
https://lists.sourceforge.net/lists/listinfo/proftp-devel

Reply via email to