Re: [WebDNA] How do I run a shell command as root?
This WebDNA talk-list message is from 2015
It keeps the original formatting.
numero = 111831
interpreted = N
texte = Thanks Dan, got it!Regards,Kenneth GromeWebDNA Solutionshttp://www.webdnasolutions.comWeb Database Systems and Linux Server ManagementOn 01/09/2015 08:55 PM, Dan Strong wrote:> Ken,> > On centos I added the webdna user (apache) to the sudoers file.> Obviously a major security risk so I mitigated by only allowing> apache user to run the specific script I needed it to run, in my> case it was to block an ip directly in the firewall.> > Hope that helps.> > ------------------------------------> Sent from phone> > -Dan Strong> http://DanStrong.com> > On Jan 9, 2015 3:05 PM, "Kenneth Grome"
> wrote:> > I think I've done this before but I cannot find my notes or code.> > San someone remind me how to become 'root' in a shell context in> order to do something that only root can do ... such as reboot?> > Regards,> Kenneth Grome> WebDNA Solutions> http://www.webdnasolutions.com> Web Database Systems and Linux Server Management> > ---------------------------------------------------------> This message is sent to you because you are subscribed to> the mailing list >.> To unsubscribe, E-mail to: >> archives: http://mail.webdna.us/list/talk@webdna.us> Bug Reporting: support@webdna.us > > --------------------------------------------------------- This> message is sent to you because you are subscribed to the mailing> list . To unsubscribe, E-mail to: archives:> http://mail.webdna.us/list/talk@webdna.us Bug Reporting:> support@webdna.us
Associated Messages, from the most recent to the oldest:
Thanks Dan, got it!Regards,Kenneth GromeWebDNA Solutionshttp://www.webdnasolutions.comWeb Database Systems and Linux Server ManagementOn 01/09/2015 08:55 PM, Dan Strong wrote:> Ken,> > On centos I added the webdna user (apache) to the sudoers file.> Obviously a major security risk so I mitigated by only allowing> apache user to run the specific script I needed it to run, in my> case it was to block an ip directly in the firewall.> > Hope that helps.> > ------------------------------------> Sent from phone> > -Dan Strong> http://DanStrong.com> > On Jan 9, 2015 3:05 PM, "Kenneth Grome" > wrote:> > I think I've done this before but I cannot find my notes or code.> > San someone remind me how to become 'root' in a shell context in> order to do something that only root can do ... such as reboot?> > Regards,> Kenneth Grome> WebDNA Solutions> http://www.webdnasolutions.com> Web Database Systems and Linux Server Management> > ---------------------------------------------------------> This message is sent to you because you are subscribed to> the mailing list >.> To unsubscribe, E-mail to: >> archives: http://mail.webdna.us/list/talk@webdna.us> Bug Reporting: support@webdna.us > > --------------------------------------------------------- This> message is sent to you because you are subscribed to the mailing> list . To unsubscribe, E-mail to: archives:> http://mail.webdna.us/list/talk@webdna.us Bug Reporting:> support@webdna.us
Kenneth Grome
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:
RE: Formulas.db + Users.db (1997)
Emailer setup (1997)
Associative lookup style? (1997)
Displaying photo attached to first record (1997)
[WebDNA] two ideas for running a cluster of WebDNA servers (2019)
applet example (1997)
Mac to Windows (2000)
Storebuilder-AutoCategory (2003)
WebCat2b13MacPlugin - [math][date][/math] problem (1997)
[WebDNA] WebDNA restart script (2015)
[url] (1997)
encryption in browser? (1998)
Whats going on? (2000)
Problems passing [SKU] with $Replace in 2.0 (1997)
Plugin or CGI or both (1997)
Problems with ^ could be solved with [REPLACE CHARACTERS] (1997)
taxRate is fine but taxTotal isn't (1997)
Re[3]: Problem with new formvariables (2000)
New commands in Final candidate (1997)
notification solutions (1997)