Re: Some shell fun
This WebDNA talk-list message is from 2004
It keeps the original formatting.
numero = 58340
interpreted = N
texte = Yes, still no go.> 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-------------------------------------------------------------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:
Yes, still no go.> 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-------------------------------------------------------------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:
really wierd browser truncating (1997)
grouping fields (1999)
Requiring that certain fields be completed (1997)
Emailer (WebCat2) (1997)
Sorting by SKU Not Working (1998)
[WriteFile] problems (1997)
WebCat editing, SiteGuard & SiteEdit (1997)
tcpsend (2001)
WebCat & WebTen (1997)
MasterCounter Weirdness (1997)
OT: Limit on # of Pulldown entries (1997)
RAM variables (1997)
Nested vs conditional (1997)
expired beta (1997)
Emailer problem (1998)
updating a series of records via a text file? (1999)
Hiding Contexts (2000)
Re:Random Command (1997)
Sku numbers (1997)
[date] problem with %d%m%Y (1998)