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: ALLThis 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 PMSubject: Re: Some shell fun> > I believe that means that all commands within the script must be listedon 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:
have you tried changing sudoers to:%www ALL=NOPASSWD: ALLThis 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 PMSubject: Re: Some shell fun> > I believe that means that all commands within the script must be listedon 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:
Bug in WebCat, (2000)
New Command prefs ... (1997)
WC2.0 Memory Requirements (1997)
serial number generation (1997)
WebCat editing, SiteGuard & SiteEdit (1997)
[WebDNA] Small Parsing Problem (2009)
Summing fields (1997)
WC2b15 File Corruption (1997)
change the number format (1997)
[WebDNA] PayPal Integration (2017)
target=_blank and form variables (1997)
[REPLACE] inside [FOUNDITEMS] (1998)
[WebDNA] The phone home system is undesirable ... (2008)
Re:E-Mailer (WebCatb15acgiMac) (1997)
WebCat2b15MacPlugin - showing [math] (1997)
Shopping Cart Problem (1998)
RequiredFields template (1997)
Editing the search string (1997)
timing out? (1997)
Can you do this??? and other stuff (1997)