Re: Some shell fun

This WebDNA talk-list message is from

2004


It keeps the original formatting.
numero = 58342
interpreted = N
texte = Hmm :-) Well, I guess then it must be our system or maybe sudo is messed up= .. This is on MacOS X 10.2.8, maybe I just do a upgrade to 10.3.x now and see if that fixes things...... Nitai > From: Erol Guneri > Reply-To: "(WebDNA Talk)" > Date: Fri, 11 Jun 2004 14:41:43 +0100 > To: "(WebDNA Talk)" > Subject: Re: Some shell fun >=20 > I am confused too. >=20 > our site was tested using the following: >=20 > root ALL=3D(ALL) ALL > %admin ALL=3D(ALL) NOPASSWD: ALL > www ALL=3DNOPASSWD: ALL >=20 > Have you tried a shell script that sudo can call such as just creating a > directory in the folder with your .tpl file in? Then if it works creatin= g a > directory in /MyPath >=20 > Erol >=20 >=20 > ----- Original Message ----- > From: "Nitai @ ComputerOil" > To: "WebDNA Talk" > Sent: Friday, June 11, 2004 2:31 PM > Subject: Re: Some shell fun >=20 >=20 >> Yes, still no go. >>=20 >>> From: Erol Guneri >>> Reply-To: "(WebDNA Talk)" >>> Date: Fri, 11 Jun 2004 14:27:15 +0100 >>> To: "(WebDNA Talk)" >>> Subject: Re: Some shell fun >>>=20 >>> Have you tried it without the % as well >>>=20 >>>=20 >>> ----- Original Message ----- >>> From: "Nitai @ ComputerOil" >>> To: "WebDNA Talk" >>> Sent: Friday, June 11, 2004 2:16 PM >>> Subject: Re: Some shell fun >>>=20 >>>=20 >>>> Tried it now and nothing is happening. I am totally confused now :-( >>>>=20 >>>>=20 >>>>> 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 >>>>=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 >>=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 > ------------------------------------------------------------- > 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)
Hmm :-) Well, I guess then it must be our system or maybe sudo is messed up= .. This is on MacOS X 10.2.8, maybe I just do a upgrade to 10.3.x now and see if that fixes things...... Nitai > From: Erol Guneri > Reply-To: "(WebDNA Talk)" > Date: Fri, 11 Jun 2004 14:41:43 +0100 > To: "(WebDNA Talk)" > Subject: Re: Some shell fun >=20 > I am confused too. >=20 > our site was tested using the following: >=20 > root ALL=3D(ALL) ALL > %admin ALL=3D(ALL) NOPASSWD: ALL > www ALL=3DNOPASSWD: ALL >=20 > Have you tried a shell script that sudo can call such as just creating a > directory in the folder with your .tpl file in? Then if it works creatin= g a > directory in /MyPath >=20 > Erol >=20 >=20 > ----- Original Message ----- > From: "Nitai @ ComputerOil" > To: "WebDNA Talk" > Sent: Friday, June 11, 2004 2:31 PM > Subject: Re: Some shell fun >=20 >=20 >> Yes, still no go. >>=20 >>> From: Erol Guneri >>> Reply-To: "(WebDNA Talk)" >>> Date: Fri, 11 Jun 2004 14:27:15 +0100 >>> To: "(WebDNA Talk)" >>> Subject: Re: Some shell fun >>>=20 >>> Have you tried it without the % as well >>>=20 >>>=20 >>> ----- Original Message ----- >>> From: "Nitai @ ComputerOil" >>> To: "WebDNA Talk" >>> Sent: Friday, June 11, 2004 2:16 PM >>> Subject: Re: Some shell fun >>>=20 >>>=20 >>>> Tried it now and nothing is happening. I am totally confused now :-( >>>>=20 >>>>=20 >>>>> 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 >>>>=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 >>=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 > ------------------------------------------------------------- > 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:

Nav. 4 probs with cart - Serious problem (1997) WebCat2: Found Items syntax, etc. (1997) What is WebDNA (1997) SPAM (OT) (2004) Multiple Pulldowns (1997) WebCat2 - [include] tags (1997) change the number format (1997) sort without the or a (1998) ShowNext (1997) upgrade? (1997) RE: Can't get appendfile to work (1997) NT License trade for Mac (2000) duplicate cart numbers (2002) Emailer setup (1997) OT Pager notification of completed orders (1998) I give up!! (1997) Not really WebCat- (1997) [format xs] freeze (1997) Problems getting parameters passed into email. (1997) [math date]: Arrrggh! (2003)