File manager for Webmin

344 posts / 0 new
Last post
Wed, 05/27/2015 - 10:08
NettSite
NettSite's picture

I installed this 5 minutes ago, and am already in file manager heaven. It is incomparably faster than the existing Java app.

Beautiful!

Wed, 05/27/2015 - 17:23
calderwood
calderwood's picture

I'm running CentOS Linux 6.6 and seems to be all working well.

Thanks for all the hard work - a vast improvement on the old java FM.

David Calderwood - Euro-Pacific Digital Media

Fri, 05/29/2015 - 06:47
RealGecko

Version 0.9.1 is out. Some fixes and improvements added. Full list of changes here: https://github.com/Real-Gecko/filemin/blob/master/CHANGELOG. Ready to install versions here: https://github.com/Real-Gecko/filemin/tree/master/install. PS: all users except root are still locked in $HOME, this issue requires some investigation to be implemented correctly.

Fri, 05/29/2015 - 07:07 (Reply to #54)
jvieille

What is the procedure to update? Thanks

Fri, 05/29/2015 - 08:13 (Reply to #55)
RealGecko

Automatic update procedure is not available yet.

You have two options

  1. Go to "Webmin - Webmin Configuration - Webmin Modules - Delete", find Filemin(v0.9) and delete it, then in "Install" select "From FTP or URL" and paste this link https://github.com/Real-Gecko/filemin/raw/master/install/filemin-0.9.1.w..., this whole procedure is needed to be sure that's module updated correctly, as there're some issues while updating module like this.
  2. If you're on Debian or Ubuntu you may download this https://github.com/Real-Gecko/filemin/raw/master/install/webmin-filemin_... to your server and install module with dpkg
Fri, 05/29/2015 - 08:21 (Reply to #56)
jonnybradley

Thanks! :D

Rename, chmod and chown now working with the jQuery-UI dialogs (although the chown one doesn't seem to get the current settings filled, but it's not a biggie ;)

Good work, thanks again!

jonny

Fri, 05/29/2015 - 12:46 (Reply to #57)
RealGecko

Almost all operations on right top toolbar are oriented on multiple entries, that means you can for example select ten folders and twenty files and "chown" them all in one go. In such scenario it is not obvious who might the default owner be, that's why "chown" and "chmod" look kinda dumb right now. Imagine that you have files belonging to Martin and files belonging to John and you want the new owner of all that bunch to be Lewis. Chown functionality can not even imagine what are you trying to do and who might the new owner be, so it is left empty. And "rename" functionality is single intry oriented, that's why we can set default while procedure initiated, there can not be file or folder with the same name anyway :)))

Sat, 05/30/2015 - 00:32 (Reply to #58)
jvieille

Very good! Thanks a lot

Sat, 05/30/2015 - 00:30 (Reply to #59)
jvieille

Thanks for the help. I did installed this new version, but icons have gone.

Sat, 05/30/2015 - 16:17 (Reply to #60)
RealGecko

If you use authentic theme update it to latest, it is a theme issue :)

Or just refresh page few times, it must help :)

Sun, 05/31/2015 - 02:38 (Reply to #61)
jvieille

That was the problem. Thanks!

Sat, 05/30/2015 - 04:46
fakemoth
fakemoth's picture

Thanks, nice update! A small issue: in my case, some of the directory icons are not there, and I get an icon with a question mark...

For the Webmin/Virtualmin team: can we move this file manager to a more convenient location? I mean you really need it everywhere so it's not cool, nor very ergonomic to click Webmin > Others > Filemin every time you try to get to it...

Or maybe we should talk to Ilia to get a link down (where info, logout and stuff are) in his Authentic theme? In the previous versions we had a shortcut menu, now gone.

Any ideas how can we ease access and highlight this important feature, where exactly can you put the link? At least for my Virtualmin clients is a very important one. For this reason I still think a tree panel with the folders on the left side (in the page, the right frame) of Filemin might be important. But it is of course your decision.

Don't take the name of root in vain...

Sat, 05/30/2015 - 16:25 (Reply to #63)
RealGecko

There's issue I cannot resolve. If I add Filemin to list of availavle modules For Virtualmin users it is accessible, but not shown under Virtualmin's "Webmin Modules" category. I'll try to resolve it shortly.

Mon, 06/01/2015 - 01:06
Purple Edge

The link posted above Posted: Fri, 2015-05-29 08:13 is the first that has worked for me, I look forward to giving it a try!

Mon, 06/01/2015 - 01:22
Purple Edge

Is there any problem deleting the old filemanager module. I've already deleted it as it was only throwing up a security warning for me anyway?

Mon, 06/01/2015 - 01:25 (Reply to #66)
RealGecko

Well, if you already deleted it and everything works fine, then no problems at all :D

Mon, 06/01/2015 - 02:03 (Reply to #67)
Purple Edge

I normally don't shoot first and ask questions later! :-)

I'm new to Virtualmin/Webmin so not sure if I'm missing anything by deleting the old filemanager, I guess I'll find out soon enough!?

Mon, 06/01/2015 - 02:13 (Reply to #68)
RealGecko

Actually AFAIK no module depends on File Manager as on Filemin too. So deleting one of theese leads to only one thing: you lose functionality provided by this module. That's good thing about modular design :)

Tue, 06/02/2015 - 18:46
Purple Edge

I've just received 4 updates about new comments to this thread and have to say it is impossible to find them unless they have been posted at the bottom! Is it possible to link the email directly to the referenced comment?

Thu, 06/04/2015 - 21:22
Purple Edge

I edited my etc/.bash_profile file in filemin and when I subsequently logged in via SSH I received an error that '\r' was found, unexpected end of file.

I was able to fix it with dos2unix, but wonder if filemin caused the problem and if so should it be using unix eol characters?

* Might have been caused by cut and paste? *

Thu, 06/04/2015 - 23:38 (Reply to #71)
RealGecko

Yes, I've encountered this once too, while saved file from winduz PC. Can you, please, create a new issue here https://github.com/Real-Gecko/filemin/issues? I will try to fix it in next minor release.

Tue, 06/09/2015 - 00:00
Purple Edge

I created a ~/.ssh directory from ssh, using...

mkdir ${HOME}/.ssh
chmod 700 ~/.ssh

... but can't see it in FileMin.

Should I be able to see it?

Tue, 06/09/2015 - 01:59 (Reply to #73)
RealGecko

Yes, you must see it Filemin. Who's the owner of the folder?

Tue, 06/09/2015 - 02:12
Purple Edge

Thanks, I think you can ignore this. I was logged in as root via ssh, and executed the above commands. I thought it created the folder in the parent folder for root, but maybe it didn't?

Tue, 06/09/2015 - 03:33 (Reply to #75)
RealGecko

Well, I can't tell you, what exactly happened, you're the master of your server :-) But I see my /root/.ssh folder with 700 permissions ;-)

Tue, 06/09/2015 - 03:14
Purple Edge

Yeah, so do I!

Mon, 06/15/2015 - 04:45
fakemoth
fakemoth's picture

Feature request:

Would you consider implementing a "Compress & Download" feature, with an nice icon, for the folders? It would save us from writing huge scp commands (my usual paths are between 5 to 10 folders deep omg, why am I doing that?), and the users to quickly download whole directories. The old File Manager was sporting this one :) and no one will ever be able to tell you there is something missing from that dreadful Java applet :)

Thanks?

Don't take the name of root in vain...

Mon, 06/15/2015 - 05:33 (Reply to #78)
RealGecko
Mon, 06/15/2015 - 06:16
Purple Edge

Hello,

I created a new user, and converted them to a linux user, as per this link...

http://lowendtalk.com/discussion/18133/virtualmin-security-guide-part-on...

...and found in Filemin that I couldn't go to their parent folder/s. If I connect to FTP as this user I can visit their parent folder/s.

If I change the configuration in Webmin for this user so their parent folder is / then I can see parent folders in Filemin, but I think this now prevents me logging in with SSH keys.

Is there an easy way for new users to browse to parent folder in Filemin?

Thanks.

Mon, 06/15/2015 - 06:50 (Reply to #80)
RealGecko

What's "parent folder"?

Mon, 06/15/2015 - 09:05
Purple Edge

../home/userfolder

...anything above userfolder

Mon, 06/15/2015 - 23:40 (Reply to #82)
RealGecko

ACL is coming in next minor release, this will solve your problem ;-)

Mon, 06/15/2015 - 23:54 (Reply to #83)
Purple Edge

Thanks, much appreciated - it is a great add-on for Webmin!

Tue, 06/16/2015 - 06:24
chiareu

Great indeed, but can't navigate outside the my user folder :))

Tue, 06/16/2015 - 06:47 (Reply to #85)
RealGecko

It was dicussed several times. ACL will fix that.

Tue, 06/16/2015 - 08:40 (Reply to #86)
Purple Edge

Well you can if you configure your user's home folder to be /

(But for me that screwed up ssh login with keys, otherwise it worked well!)

Fri, 06/19/2015 - 06:27 (Reply to #87)
chiareu

You can not move your home directory to /

Thu, 06/18/2015 - 07:11
RealGecko

Version 0.9.2 is out.

THE LONG WAITED! THE MOST WANTED! THE ONE AND ONLY - ACL IS HERE!!! Go grab it :D

Full list of changes:

  • Switched to Webmin functions for HTTP/FTP Download, so download progress is shown now. Got rid of File::Fetch dependecy in module code.
  • HTTP/FTP Download now prompts for username and password on remote server, if any required user can provide it.
  • Removed "openlayers" folder. How did it get in here???? :D
  • Completely rewrote upload.cgi. Now upload progress is shown with Webmin`s upload tracker. Memory usage is low due to direct HD write, even with REALLY big uploads(tested with 3 files totalling 1.61 GB). BEWARE: if user reaches his/her disk quota then Webmin simply resets connection with no errors, can do nothing with it right now.
  • Fixed "select-unselect" checkbox behavior for old themes.
  • Updated russian translation.
  • THE LONG WAITED! THE MOST WANTED! THE ONE AND ONLY - ACL!!! Default ACL behavior sets only one ACL entry '$HOME' for each user. This locks user in $HOME directory. To grant full FS access to user replace '$HOME' with '$ROOT' in user's ACL. If there's only one entry in ACL then it counts as "home" or "chroot", otherwise user will see accessible dirs relative to "/", just like it is in old FM. Avoid trailing slash in ACL entries: "/usr/share/webmin" - gooooood, "/home/test/" - baaaaad. Root bypasses ACL completely. Note that even though user can be granted full FS access, he still works with his own privileges. So anything that requires "root" permissions or "sudo" won't work.
  • Folders go first. Rewrote directory listing procedure, now folders appear before files in list as in any other adequate file manager. As a result first and second entry in '/' are now visible :) Note that sorting table with javascript under Authentic or Framed themes will mix everything again until page reload ;-)
  • Major code cleanup of rendering procedure.
  • Fixed copy/cut/paste functionality.
  • FreeBSD support added. Module uses Regexp::Common and URI packages to validate URIs in HTTP/FTP download functionality. Be sure to install theese to make functionality work. Admin user created during Webmin installation is not UNIX user, so module won't work for him. If you want to provide some "system" file operations then convert "root" to Webmin user.
Thu, 06/18/2015 - 08:38
chiareu

Downloading https://github.com/Real-Gecko/filemin/blob/master/distrib/filemin-0.9.2.... .. .. download complete. Failed to install module from https://github.com/Real-Gecko/filemin/blob/master/distrib/filemin-0.9.2.... : Not a valid module file : gzip: stdin: not in gzip format tar: Child returned status 1 tar: Error is not recoverable: exiting now

Thu, 06/18/2015 - 09:57 (Reply to #90)
eldk

Hello,

Get the same message as above.

Thanks for sharing this module.

Greatings,

Eric

Thu, 06/18/2015 - 10:09 (Reply to #91)
jonnybradley

Try https://github.com/Real-Gecko/filemin/raw/master/distrib/filemin-0.9.2.l...

I decided to uninstall the wbm mode one and installed the debian package using this link

https://github.com/Real-Gecko/filemin/raw/master/distrib/webmin-filemin_0.9.2_all.deb

so hopefully updates in the future will be easier.

Seems to work fine - thanks again (sorry, not had a chance to test it much but looks good!)

jonny

p.s. Can't wait for this to become a standard part of the webmin distribution - any chance? :)

Thu, 06/18/2015 - 10:34 (Reply to #92)
eldk

Hello,

It's OK with this link : https://github.com/Real-Gecko/filemin/blob/master/distrib/filemin-0.9.2....

download the package, then install from local file.

Thank you,

Eric

Thu, 06/18/2015 - 23:59 (Reply to #93)
RealGecko

If you want to install module directly from Webmin interface with direct link you must provide this URL

https://github.com/Real-Gecko/filemin/raw/master/distrib/filemin-0.9.2.l...

FreeBSD users from

https://github.com/Real-Gecko/filemin/raw/master/distrib/filemin-0.9.2.f...

Fri, 06/19/2015 - 06:29
chiareu

Unfortunately, the problem persist. Installed the latest update and I'm still stuck to the my_user home directory.

Ubuntu 12.04, My user are the Webmin admin user. and in sudo group.

Fri, 06/19/2015 - 07:01 (Reply to #95)
RealGecko

Go to Webmin->Webmin Users->$YOUR_USERN_NAME->Available Webmin modules (in addition to those from group) and click Filemin. You will see "Filemin access control options", input desired paths here, like /usr/share/webmin etc, one per line. If you want a full FS access then input only one option "$ROOT" there, and you'll be happy ;-)

Fri, 06/19/2015 - 07:47
chiareu

Thanks, managed to access all server files. Still one problem. Folders who belong users, eg. home/username/ are not accessible.

Following errors occured while performing operation Error openind directory /backup Permission denied

Fri, 06/19/2015 - 07:52 (Reply to #97)
RealGecko

Yes, I mentioned that in changelog. Your user works with his own privileges and listing other users' home is not one of them :)

If you want to use Filemin for administrative tasks, then unlock "root" user, he has no restrictions ;-)

Fri, 06/19/2015 - 08:05
chiareu

I hoped that user who has the administrative privileges for Webmin/Virtualmin (and sudo) can have the same privileges to to access files too. As the Java File Manager has. Practically I can access all root files and folders only folders belonging to other users and 0750 are locked now.

From my position, the root unlocking it's not an option for production servers.

Sat, 06/20/2015 - 15:22 (Reply to #99)
RealGecko

And from my positon, accessing file system with root privileges or sudo from web interface is not an option for production servers ;-)

Let me explain initial idea behind Filemin: it was created to grant Virtualmin domain owners access to their $HOME and espcecially to "public_html". FTP sucks, it is my opinion I'm not going to discuss. But domain owners want to download/upload/compress/decompress/chmod/chown/etc files and folders located in their public_html. They deploy their sites, they install new modules, they backup folders, they even edit their CSS files online :D That's why Filemin was created and why it has such a restrictive permission model. If domain owner completely destroys his/her $HOME - I don't care, the system will continue to work, that's the most important.

But this forum thread shows that even sysadmins with root privileges want to edit files online, they want to download/upload/chmod/chown/etc, all that stuff those domain owners have with Filemin. And now I'm working on extending Filemin to make sysadmins happy too. However it is not as trivial as it seems, for example under FreeBSD there is user "admin" who may act as "root" in Webmin, but not a UNIX user at all, pure virtual, pure Webmin. I'll do my best to solve "admin" user issues, but for now it is as it is.

I think it will be a better option to fork Filemin, I'm already working on creating pure Virtualmin version of Filemin, that will act as Virtualmin plugin with simplified privileges, while developing more complex security model for original Filemin.

Sat, 06/20/2015 - 13:23
jdhatch

I looked for an answer to this before I posted but found none.

I am not sure how to download a file.

I though it would be just clicking on the file name. But it returns this,

"Error - Perl execution failed

Can't locate CGI.pm in @INC (@INC contains: ./lib /usr/libexec/webmin /usr/local/lib64/perl5 /usr/local/share/perl5 /usr/lib64/perl5/vendor_perl /usr/share/perl5/vendor_perl /usr/lib64/perl5 /usr/share/perl5 . /usr/libexec/webmin/) at /usr/libexec/webmin/filemin/download.cgi line 6. BEGIN failed--compilation aborted at /usr/libexec/webmin/filemin/download.cgi line 6."

Am I missing a module??

Thanks, Jason

Pages

Topic locked