Hi there,
Due to some locked down file permissions on my hosting server (711 on / and /home), the default “File Manager (home directory only)” setting produces a couple error messages because it tries to display the users home folder starting from / in a tree. The Webmin file manager already has a “Chroot directory for entire file manager” option so I’ve made a small change to feature-webmin.pl that chroot’s the file manager to the user’s home folder (and avoids the error). This is similar to how I have the ftp server configured (chroot to home) so it also provides a more consistent interface. Below is a patch for the current version of Virtualmin GPL (3.26) in case anyone is interested in it. I think it would also make a nice option in future versions (hence the posting in this forum rather than hacks).
— feature-webmin.pl.orig 2006-10-19 10:55:53.000000000 -0600
+++ feature-webmin.pl 2006-10-27 20:36:36.000000000 -0600
@@ -428,7 +428,8 @@ if ($extramods{‘file’} && $[[0]]->{‘unix’
local %acl = ( ‘noconfig’ => 1,
‘uid’ => $[[0]]->{‘uid’},
‘follow’ => 0,
-
'root' => $_[[0]]->{'home'},
-
'chroot' => $_[[0]]->{'home'},
-
'root' => '/', 'home' => 0, 'goto' => 1 ); &save_module_acl_logged(%acl, $_[[1]]->{'name'}, "file")