my first post here. I am trying to achieve the following: I have many users and they belong to different groups. Based on group membership I want to create appropriate virtual directories (symlinks that would point out of jail) in the user's home (jail).
I made a script that checks users home directories and their groups and based on the groups creates those symlinks. Proftpd allows to follow those symlinks even if they are outside of the DefaultRoot (~). I would like, however, to do it differently.
With mod_vroot and mod_ifsession I can use IfGroup and VRootAlias:
VRootAlias /Data/camera ~/camera
What I want to achieve with this is to create a virtual directory "camera" within user's home directory (pointing to /Data/camera) if a user belongs to group "camera". Is it a good way to go? If not what's the solution here? Currently I get the following error:
proftpd - Fatal: VRootAlias: source path '~/camera' is not an absolute path on line 3 of '/etc/proftpd/virtuals.conf'.
And to tell truth I do not understand it, because that is exactly what they do in the manual (http://www.castaglia.org/proftpd/modules/mod_vroot.html#VRootAlias
VRootAlias /var/ftp/upload ~/upload
Why doesn't this work for me?
Thank in advance for your response,