Re: Some shell fun

This WebDNA talk-list message is from

2004


It keeps the original formatting.
numero = 58338
interpreted = N
texte = Tried it now and nothing is happening. I am totally confused now :-( > From: Erol Guneri > Reply-To: "(WebDNA Talk)" > Date: Fri, 11 Jun 2004 13:58:48 +0100 > To: "(WebDNA Talk)" > Subject: Re: Some shell fun >=20 > have you tried changing sudoers to: >=20 > %www ALL=3DNOPASSWD: ALL >=20 > This way you can be sure that WebDna is calling sudo correctly. >=20 > Erol >=20 >=20 > ----- Original Message ----- > From: "Nitai @ ComputerOil" > To: "WebDNA Talk" > Sent: Friday, June 11, 2004 1:50 PM > Subject: Re: Some shell fun >=20 >=20 >>> I believe that means that all commands within the script must be listed > on the >>> sudoers file as well. >>=20 >> 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. >>=20 >> The script does the following: >>=20 >> Cd /mypath >> Cvs export -d "now" cvspath mypath >> Chown www:wheel * >>=20 >> The script runs fine from the terminal but not when called within WebDNA= .. >>=20 >>> Alternatively, and more flexible, is to make the script itself suid, > like >>> this: >>>=20 >>> # chown user_that_can_run_commands_but_not_root script >>=20 >> Ok, that would be "www". >>=20 >>> # chmod +S script >>>=20 >>> which will mean that the script will be run as if by that user. >>=20 >> The "+S" does not work under MacOS X, I guess since I get a "chmod: > invalid >> file mode: +S" message. >>=20 >> Nitai >>=20 >>=20 >> -- >> Tools to energize your business >> Web Content Management =ABRedakto=BB & eBusiness Systems >>=20 >> ComputerOil=AE AG >> Dammstrasse 7 >> 5400 Baden / Switzerland >> Telefon +41 (0)844 44 55 66 >>=20 >> info@computeroil.com >> http://computeroil.com >>=20 >>=20 >>=20 >>=20 >> ------------------------------------------------------------- >> 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/ >>=20 >>=20 >=20 >=20 >=20 > ------------------------------------------------------------- > 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/ >=20 ------------------------------------------------------------- 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)
Tried it now and nothing is happening. I am totally confused now :-( > From: Erol Guneri > Reply-To: "(WebDNA Talk)" > Date: Fri, 11 Jun 2004 13:58:48 +0100 > To: "(WebDNA Talk)" > Subject: Re: Some shell fun >=20 > have you tried changing sudoers to: >=20 > %www ALL=3DNOPASSWD: ALL >=20 > This way you can be sure that WebDna is calling sudo correctly. >=20 > Erol >=20 >=20 > ----- Original Message ----- > From: "Nitai @ ComputerOil" > To: "WebDNA Talk" > Sent: Friday, June 11, 2004 1:50 PM > Subject: Re: Some shell fun >=20 >=20 >>> I believe that means that all commands within the script must be listed > on the >>> sudoers file as well. >>=20 >> 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. >>=20 >> The script does the following: >>=20 >> Cd /mypath >> Cvs export -d "now" cvspath mypath >> Chown www:wheel * >>=20 >> The script runs fine from the terminal but not when called within WebDNA= .. >>=20 >>> Alternatively, and more flexible, is to make the script itself suid, > like >>> this: >>>=20 >>> # chown user_that_can_run_commands_but_not_root script >>=20 >> Ok, that would be "www". >>=20 >>> # chmod +S script >>>=20 >>> which will mean that the script will be run as if by that user. >>=20 >> The "+S" does not work under MacOS X, I guess since I get a "chmod: > invalid >> file mode: +S" message. >>=20 >> Nitai >>=20 >>=20 >> -- >> Tools to energize your business >> Web Content Management =ABRedakto=BB & eBusiness Systems >>=20 >> ComputerOil=AE AG >> Dammstrasse 7 >> 5400 Baden / Switzerland >> Telefon +41 (0)844 44 55 66 >>=20 >> info@computeroil.com >> http://computeroil.com >>=20 >>=20 >>=20 >>=20 >> ------------------------------------------------------------- >> 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/ >>=20 >>=20 >=20 >=20 >=20 > ------------------------------------------------------------- > 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/ >=20 ------------------------------------------------------------- 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/ "Nitai @ ComputerOil"

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:

Looking up two prices in database? (1997) autosensing lanague selection (1997) CommandSecurity? (1997) Purchase *file=* Solved (and *SCOTT* notice pls - Feature (2003) taxTotal (1997) Hiding HTML and page breaks (1997) japanese characters (1997) Help! WebCat2 bug (1997) A better way to do this?? (2005) 5.0 Pricing (2003) State Coalition Approves Internet Sales Tax Plan (2002) quantity minimum problem (1997) [WebDNA] I'm back! (2008) thread discussion solution (2000) Purchae error - Fixed to a degree (1997) Final invoice problems (1998) absolute paths for databases? (1997) Clearly.home (1998) [ListFiles] & [loop] (1998) Problems adding stuff to the shopping cart. (1997)