Re: Unzip

This WebDNA talk-list message is from

2005


It keeps the original formatting.
numero = 60761
interpreted = N
texte = Bob Minor wrote: > well you edit the sudoers file so www can execute the unzip command. I > did that yes I have verified the perms. it all looks good > > Here is the webdna > > [shell]/usr/bin/unzip -uXo ../modules/Intro2CSV.zip -d ../modules/temp/ > [/shell] > 1) become root via su 2) go to the directory where you intend to run this and type su www [your command from above] and see if that works. I suspect it is your -X command that is funky. What this is likely doing is creating a directory that is owned by a user other than www (which is possible), and thus it becomes impossible to write any files into that directory. You may not be aware of this, but the ownership information is normally stored as the uid (number) not the name, so if this zipfile was created on some other system (even as the user www) it is likely that the uid is not the same number. In addition, it is not normally a good idea to use relative addressing within a [shell] command like this since you don't always know for sure where it is going to be executed. There is no reason not to use an absolute path here, AFAICT. John -- John Peacock Director of Information Research and Technology Rowman & Littlefield Publishing Group 4501 Forbes Boulevard Suite H Lanham, MD 20706 301-459-3366 x.5010 fax 301-429-5748 ------------------------------------------------------------- This message is sent to you because you are subscribed to the mailing list . To unsubscribe, E-mail to: To switch to the DIGEST mode, E-mail to Web Archive of this list is at: http://webdna.smithmicro.com/ Associated Messages, from the most recent to the oldest:

    
  1. Re: Unzip + ddos attack?? ( William DeVaul 2005)
  2. Re: [ot] authorize.net was re: unzip ( Jesse Proudman 2005)
  3. Re: Unzip + ddos attack?? ( Phil Herring 2005)
  4. Re: Unzip + ddos attack?? ( Bob Minor 2005)
  5. Re: Unzip ( John Peacock 2005)
  6. Re: Unzip ( Bob Minor 2005)
  7. Re: Unzip ( Bob Minor 2005)
  8. Re: Unzip ( John Peacock 2005)
  9. Re: Unzip ( Bob Minor 2005)
  10. Re: Unzip ( Bob Minor 2005)
  11. Re: Unzip ( devaulw@onebox.com 2005)
  12. Re: Unzip ( "Nitai @ ComputerOil" 2005)
  13. Re: Unzip ( Bob Minor 2005)
  14. Re: Unzip ( "Nitai @ ComputerOil" 2005)
  15. Unzip ( Bob Minor 2005)
  16. Unzip ever solved? ( Bob Minor 2005)
Bob Minor wrote: > well you edit the sudoers file so www can execute the unzip command. I > did that yes I have verified the perms. it all looks good > > Here is the webdna > > [shell]/usr/bin/unzip -uXo ../modules/Intro2CSV.zip -d ../modules/temp/ > [/shell] > 1) become root via su 2) go to the directory where you intend to run this and type su www [your command from above] and see if that works. I suspect it is your -X command that is funky. What this is likely doing is creating a directory that is owned by a user other than www (which is possible), and thus it becomes impossible to write any files into that directory. You may not be aware of this, but the ownership information is normally stored as the uid (number) not the name, so if this zipfile was created on some other system (even as the user www) it is likely that the uid is not the same number. In addition, it is not normally a good idea to use relative addressing within a [shell] command like this since you don't always know for sure where it is going to be executed. There is no reason not to use an absolute path here, AFAICT. John -- John Peacock Director of Information Research and Technology Rowman & Littlefield Publishing Group 4501 Forbes Boulevard Suite H Lanham, MD 20706 301-459-3366 x.5010 fax 301-429-5748 ------------------------------------------------------------- This message is sent to you because you are subscribed to the mailing list . To unsubscribe, E-mail to: To switch to the DIGEST mode, E-mail to Web Archive of this list is at: http://webdna.smithmicro.com/ John Peacock

DOWNLOAD WEBDNA NOW!

Top Articles:

Talk List

The WebDNA community talk-list is the best place to get some help: several hundred extremely proficient programmers with an excellent knowledge of WebDNA and an excellent spirit will deliver all the tips and tricks you can imagine...

Related Readings:

WebCat 5 Intranet Question (Redakto CMS) (2003) Sorting Date (2004) SQL Error 22003 (2001) Multiple shipping databases (1997) Sort Order on a page search (1997) [OT] ISP Windows program (2005) Mac Scheduling (1998) Subject: Authenticating users without dialog box (1997) Logging purchases (1997) Webcat2, WebCommerce, Mod 10 etc. (1997) Nesting FoundItem Context (1997) listfiles shows invisible files ... (1999) Date Comparison (1998) Dummy Credit Card Number for debug? (1997) Sku numbers (1997) Nested search (1997) WebCat2b14MacPlugIn - [include] doesn't hide the search string (1997) Problems passing [SKU] with $Replace in 2.0 (1997) New index for docs (1997) Security hole in WebCat? (1999)