PDA

View Full Version : Avoding SSH access : Untar, Gunzip, Unzip in FileManager



netspace
04-26-2004, 03:54 PM
Ok I've tried to make the subject look smart :cool:

Most users ask for SSH access for 2 reasons...

# 1 Untar, Unzip, Gunzip archives of their site backups or an script they are installing. Also, for tarring and zipping their existing folders etc.

#2 Working with Mysql import/export and other mysql command-line stuff

2nd is unvaoidable - but the first (and most common) reason can be avoided by having archive compression and decompression built into the DA FileManager.

I really don't blame the user for asking for SSH for decompression - yesterday unzipped someone's image folder (for a russian mailorder bride site :D ) which was ~450 Mb while zip was around 170 Mb.

nobaloney
04-26-2004, 04:21 PM
1) you can allow your clients to run cron jobs (which they can set for two minutes from now) to untar, etc.

2) they can do this through phpmyadmin.

Jeff

netspace
04-26-2004, 04:26 PM
1] Hmm, possibly. Will see if it works -- but its kind of a dirty solution because users are not going to delete the crons. So 100 users unzip 2 tars each means 200 zombie processes running on the server in no time.

2] Of course not - phpmyadmin is no good for large databases. In fact, just now importing someone's 40mb db.

ClayRabbit
06-12-2004, 01:48 AM
I suggest that archive extraction is VERY USEFUL feature.
(We have several customers gone to CPanel host because of that.)

Of course, ability to pack any folder to tarball also could be useful, i think.

And maybe it's possible to add 'symlink creation' function to filemanager? :)

tomek1
06-13-2004, 11:13 AM
I vote for archive extraction in File Manager too.
It will be really nice feature.

Regards
Tomek

thoroughfare
06-13-2004, 01:15 PM
I vote for it too. Jeff has a point about setting up a cronjob, but the whole point of a control panel is to make things easier :)

Matt

jechilt
07-28-2004, 09:59 PM
I was about to start a new thread to ask for zip/unzip capability in the File Manager (similar to cPanel) but I see it is already here.

This is a huge issue since we don't allow SSH access to our users!

Please consider adding this feature soon :) DirectAdmin says???

Kind Regards...

dannygoh
07-28-2004, 10:51 PM
1 vote from me

redesb
07-29-2004, 12:45 AM
I vote also for this feature.

Peter Verrill
07-29-2004, 06:12 AM
I would also like to see this :)

jjma
07-29-2004, 08:16 AM
I would like this feature as well

Thanks

Jon

SlashChick
07-29-2004, 02:38 PM
Yep, agreed...this would be really useful (.zip, .tar, .tar.gz, and .bzip2 files would all be great.) We have also had customers request this.

interfasys
07-29-2004, 03:41 PM
Every filemanager should offer those basic functionalities. I can't imagine myself having to tell a customer to set up a cron for such a basic thing as unpacking a zip.

jmstacey
07-29-2004, 04:58 PM
Count me in :)

jechilt
08-23-2004, 12:42 PM
is this a dead subject? is DA going to look at integrating a zip feature?

rldev
08-23-2004, 08:13 PM
Haven't heard much from DA on the feature front. If you look at the next schedueled release, there isn't much happening.

jmstacey
08-23-2004, 08:56 PM
Maybe working on Debian?

Icheb
08-24-2004, 03:23 AM
C'mon John, notice this thread :D

Since the release of installatron most php versions created by the custom builder have that zip lib included. So it shouldn't be too hard to integrate it into DA itsself, as DA calls the PHP executable.

But the problem could be that it would take DA/PHP too long to complete an action, so it might be wiser to make some kind of module to queue it with dataskq, which is ran every minute.

A quick and dirty way could be to install the unzip executable and use system(); calls in the dataskq to execute it, but that really would be something dirty :D.

I hope the DA team will add a feature like this asap :).
Also perhaps a way to upload a .zip or .sql and go to the db screen and say something like, add the following .sql to database user_xxxx. That way SSH access wouldn't be needed anymore.
Also a job the dataskq could do.

California
08-24-2004, 09:10 AM
I will add my voice to the growing chorus! ;)

Compress/extract would be a great addition DA and eliminate one of the biggest reasons for ssh access.


One more vote!

rldev
08-24-2004, 11:08 AM
Count me in! Hsphere has the absolute best File Manager going for a cp. With "WebShell 4" there really is no need to give SSH.

dannygoh
08-26-2004, 06:39 PM
This will come in with version 1.225, Estimated on Sep 10 2004

Ability to compress/uncompress files in the Filemanager

http://www.directadmin.com/versions.php?version=1.225000

rldev
08-26-2004, 07:11 PM
A most excellent addition indeed along with a FrontPage Admin link.

ClayRabbit
09-26-2004, 12:05 AM
Feature added, fine! But why it supports only tar.gz extraction?
Why .zip extraction support not added, while it's a commonly used format for Windows users?

PS: And when directory copying will be supported also?

jmstacey
09-26-2004, 06:19 PM
Originally posted by ClayRabbit
Feature added, fine! But why it supports only tar.gz extraction?
Why .zip extraction support not added, while it's a commonly used format for Windows users?

DirectAdmin uses standard *nix commands. To my knowledge there is no compatibility for .zip files on a unix machine without installing additional software.

I don't see it being added unless DA was able to add a compressor and decompressor utility in with the DA binary. Although I don't know if it would be worth it.

l0rdphi1
09-26-2004, 06:31 PM
Originally posted by jmstacey
I don't see it being added unless DA was able to add a compressor and decompressor utility in with the DA binary. Although I don't know if it would be worth it.
DirectAdmin's customapache script installs zziplib.

Phi1.

jmstacey
09-26-2004, 07:08 PM
Oh yes, I forgot about that.
So I guess its only a matter of getting DA to add it :D

Daijoubu
10-31-2004, 01:46 PM
Seems like DA only recognise .tar.gz
Could .tgz also be added?

How about .tar.bz2? :D

interfasys
01-07-2005, 05:17 AM
To be really useful the filemanager should be able to uncompress all the aformentionned formats:
zip
tgz
tar.gz
bz2

Most customers will have zips
Most devs will use bz2

A lot of unix software or some backups are in tgz format.

Just make the extract page modular, detect what formats are available and support them.

jjma
01-07-2005, 05:21 AM
Agreed,

Jon

rldev
01-07-2005, 05:47 AM
Seems reasonable enough.

lexscripta
10-24-2005, 10:04 AM
To me this is a no brainer and we shouldn't have to ask for such an elementary feature. For this cause, I'll stick with hosting companies that thought situations such as this through enough to know how remedial the question is, and how remedial the solution should be.

Tsk, tsk, tsk. Away with Direct Admin, hello hosting companies that use cPanel.

interfasys
10-24-2005, 09:47 PM
Maybe DA could include the H-Sphere File manager. It's one of the best there is.

nobaloney
10-28-2005, 09:13 PM
H-Sphere is owned by Comodo.

Do you suggest that DA ask Comodo if they'd license the file manager to them?

Jeff

interfasys
10-29-2005, 02:23 AM
Well, why not. The file manager is a separate product called Webshell that can be run anywhere.

satu
11-14-2005, 01:54 AM
Noticed that this thread about unzip started in 2004 and now still running but is unzip in or not? Read DannyGoh's post about the addition for the tar.

I vote for the unzip too.

Lem0nHead
05-27-2006, 12:57 PM
I was going to open a new thread but... I vote for unzip on this one :)

rldev
05-27-2006, 03:56 PM
Ditto!

DamnSkippy
05-27-2006, 08:55 PM
Originally posted by interfasys
Maybe DA could include the H-Sphere File manager. It's one of the best there is.

I just have to jump in here and say that I agree completely.

I also just happen to have an hsphere cluster and I would give the DA guys an account to play with.

DirectAdmin Support
05-28-2006, 06:15 PM
Slight conflict of interest there ;)

As for zip in the filemanager, it's not too hard for me to add into DA. The only issue is that zip/unzip isn't as standard as tar is on linux boxes. I can always include a "zip.sh" install script if you want to have it. I'll keep it in mind when doing the next release.

John

DamnSkippy
05-28-2006, 06:31 PM
Excellent John, most users can make a zip file but most have no idea what a tar ball is :)

interfasys
05-29-2006, 03:20 AM
A uncompress.sh script would be better. Allowing us to enable unzip, bunzip2, unrar and tar.

kenlyle
07-20-2006, 11:48 AM
As a user, I like this feature in CPanel, and I think that HSphere has it, too.

K

DirectAdmin Support
07-08-2008, 01:34 PM
http://www.directadmin.com/features.php?id=895

John