Re: Some shell fun

This WebDNA talk-list message is from

2004


It keeps the original formatting.
numero = 58337
interpreted = N
texte = have you tried changing sudoers to: %www ALL=NOPASSWD: ALL This way you can be sure that WebDna is calling sudo correctly. Erol ----- Original Message ----- From: "Nitai @ ComputerOil" To: "WebDNA Talk" Sent: Friday, June 11, 2004 1:50 PM Subject: Re: Some shell fun > > I believe that means that all commands within the script must be listed on the > > sudoers file as well. > > All commands within the script are listed also in the sudoer file. Actually > all I am trying to do, is to mimick your CVS script (cvsnt) on MacOS X. I > want to export a directory from cvs. > > The script does the following: > > Cd /mypath > Cvs export -d "now" cvspath mypath > Chown www:wheel * > > The script runs fine from the terminal but not when called within WebDNA. > > > Alternatively, and more flexible, is to make the script itself suid, like > > this: > > > > # chown user_that_can_run_commands_but_not_root script > > Ok, that would be "www". > > > # chmod +S script > > > > which will mean that the script will be run as if by that user. > > The "+S" does not work under MacOS X, I guess since I get a "chmod: invalid > file mode: +S" message. > > Nitai > > > -- > Tools to energize your business > Web Content Management «Redakto» & eBusiness Systems > > ComputerOil® AG > Dammstrasse 7 > 5400 Baden / Switzerland > Telefon +41 (0)844 44 55 66 > > info@computeroil.com > http://computeroil.com > > > > > ------------------------------------------------------------- > 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/ > > ------------------------------------------------------------- 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: Some shell fun ( John Peacock 2004)
  2. Re: Some shell fun ( "Jesse Crofoot" 2004)
  3. Re: Some shell fun ( Joe D'Andrea 2004)
  4. Re: Some shell fun ( "Nitai @ ComputerOil" 2004)
  5. Re: Some shell fun ( John Peacock 2004)
  6. Re: Some shell fun ( "Nitai @ ComputerOil" 2004)
  7. Re: Some shell fun ( "Erol Guneri" 2004)
  8. Re: Some shell fun ( "Nitai @ ComputerOil" 2004)
  9. Re: Some shell fun ( "Erol Guneri" 2004)
  10. Re: Some shell fun ( "Nitai @ ComputerOil" 2004)
  11. Re: Some shell fun ( "Erol Guneri" 2004)
  12. Re: Some shell fun ( "Nitai @ ComputerOil" 2004)
  13. Re: Some shell fun ( "Nitai @ ComputerOil" 2004)
  14. Re: Some shell fun ( "Erol Guneri" 2004)
  15. Re: Some shell fun ( John Peacock 2004)
  16. Some shell fun ( "Nitai @ ComputerOil" 2004)
have you tried changing sudoers to: %www ALL=NOPASSWD: ALL This way you can be sure that WebDna is calling sudo correctly. Erol ----- Original Message ----- From: "Nitai @ ComputerOil" To: "WebDNA Talk" Sent: Friday, June 11, 2004 1:50 PM Subject: Re: Some shell fun > > I believe that means that all commands within the script must be listed on the > > sudoers file as well. > > All commands within the script are listed also in the sudoer file. Actually > all I am trying to do, is to mimick your CVS script (cvsnt) on MacOS X. I > want to export a directory from cvs. > > The script does the following: > > Cd /mypath > Cvs export -d "now" cvspath mypath > Chown www:wheel * > > The script runs fine from the terminal but not when called within WebDNA. > > > Alternatively, and more flexible, is to make the script itself suid, like > > this: > > > > # chown user_that_can_run_commands_but_not_root script > > Ok, that would be "www". > > > # chmod +S script > > > > which will mean that the script will be run as if by that user. > > The "+S" does not work under MacOS X, I guess since I get a "chmod: invalid > file mode: +S" message. > > Nitai > > > -- > Tools to energize your business > Web Content Management «Redakto» & eBusiness Systems > > ComputerOil® AG > Dammstrasse 7 > 5400 Baden / Switzerland > Telefon +41 (0)844 44 55 66 > > info@computeroil.com > http://computeroil.com > > > > > ------------------------------------------------------------- > 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/ > > ------------------------------------------------------------- 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/ "Erol Guneri"

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:

too many nested [xxx] (1997) emailer problem on OS X - unsent emails (2003) POST Datamissing? (1998) Webmerchant confirmation hooks? (1997) MASTER_STORE revision (2002) return missing item (was:WebCat Sales) (1997) [append] and SSL (1997) WebCat2b12plugin - [search] is broken ... not! (1997) Bug Report, maybe (1997) Search Context: How to set Max=N? (2000) Filemaker Pro Template for Orders (1999) showif math date (2002) more on my bbs (1997) Search Engine questions ... (2002) New WebCatalog Version !!! (1997) WebCat cannot handle compatible search parameters? (1997) Credit Card Number checking (1997) I'm having trouble using [url][interpret][math] together inlookup (1997) PCS Customer submissions ? (1997) Re:no [search] with NT (1997)