Here is a quick description of what I have done: I have a chrooted user (username: clientdev) which I have jailed inside their home directory. This chroot directory is /home/clientdev/ which is owned by root.Now I need this clientdev user to be able access the tomcat web application folder which is residing under /mnt/datadrive/tomcat/webapps.What I have done is :chroot the user with a public key of their own to the homedirectory.Create a folder under /home/clientdev called tomcat_ROOT and gavethe ownership to clientdev.Now when I run the command : mount --bind /mnt/datadrive/tomcat/webapps /home/clientdev/tomcat_ROOTThe folder disappears from the directory listing inside /home/clientdev if I login with clientdev. My root user can see it but not the desired user.Output of ls -l /home/clientdev/tomcat_ROOT:drwxr-xr-x.  6 root   root    4096 Apr 11 15:07 .   drwxrwxr-x. 12 root   root    4096 Apr 11 15:07 .. drwxr-xr-x.  3 root   root    4096 Apr  9 22:10 webapp1 drwxr-xr-x.  4 root   root    4096 Mar 18 18:43 webapp2 drwxr-xr-x.  3 root   root    4096 Apr  9 22:11 webapp3 drwxrwxr-x. 10 root   root    4096 Apr 11 15:20 ROOTOutput of ls -l /home/clientdev/: drwx------. 4 clientdev clientdev 4096 Apr 10 21:36 . drwxr-xr-x. 7 root      root      4096 Apr 10 22:07 .. -rw-------. 1 clientdev clientdev  664 Apr 10 21:43 .bash_history -rw-r--r--. 1 clientdev clientdev   18 Apr 23  2012 .bash_logout -rw-r--r--. 1 clientdev clientdev  176 Apr 23  2012 .bash_profile -rw-r--r--. 1 clientdev clientdev  124 Apr 23  2012 .bashrc drwx------. 2 clientdev clientdev 4096 Apr 10 19:20 .sshdrwxr-xr-x. 2 clientdev clientdev 4096 Apr 10 21:34 tomcat_ROOTThe issue I am having is that when the jailed user uses winscp to connect the the server, they are not able to view the mounted folders.
Unable to view mounted directories in a chroot
linux;mount;chroot;bind