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 = 111830
interpreted = N
texte = --001a1136400a7a437d050c4368b8 Content-Type: text/plain; charset=UTF-8 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 > --001a1136400a7a437d050c4368b8 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable

Ken,

On centos I added the webdna user (apache) to the sudoers fi= le. 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 bl= ock 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"= ; <ken@webdnasolutions.com> 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.web= dnasolutions.com
Web Database Systems and Linux Server Management

---------------------------------------------------------
This message is sent to you because you are subscribed to
the mailing list <talk@webdna.us&g= t;.
To unsubscribe, E-mail to: <talk= -leave@webdna.us>
archives: http://mail.webdna.us/list/talk@webdna.us
Bug Reporting: support@webdna.us
--001a1136400a7a437d050c4368b8-- Associated Messages, from the most recent to the oldest:

    
  1. Re: [WebDNA] How do I run a shell command as root? (Kenneth Grome 2015)
  2. Re: [WebDNA] How do I run a shell command as root? (Dan Strong 2015)
  3. [WebDNA] How do I run a shell command as root? (Kenneth Grome 2015)
--001a1136400a7a437d050c4368b8 Content-Type: text/plain; charset=UTF-8 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 > --001a1136400a7a437d050c4368b8 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable

Ken,

On centos I added the webdna user (apache) to the sudoers fi= le. 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 bl= ock 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"= ; <ken@webdnasolutions.com> 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.web= dnasolutions.com
Web Database Systems and Linux Server Management

---------------------------------------------------------
This message is sent to you because you are subscribed to
the mailing list <talk@webdna.us&g= t;.
To unsubscribe, E-mail to: <talk= -leave@webdna.us>
archives: http://mail.webdna.us/list/talk@webdna.us
Bug Reporting: support@webdna.us
--001a1136400a7a437d050c4368b8-- Dan Strong

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:

[redirect] not working on NT? (1999) Major problem (1999) 09:45:00 -> 9.75 (2001) javascript newPopwin and webcat (1998) stripping extra spaces from form fields (2000) Maybe minor bug report (1997) Multi-processor Mac info ... (1997) Only charge card when product shipped ? (1997) WebCommerce: Folder organization ? (1997) Associative lookup style? + bit more (1997) Location of Webcat site in folder hierarchy (1997) Freeze (2003) More Applescript (1997) possible bug in unix version? (2000) Backwards list behavior ... (1997) WebTen and WebCat (1997) WebCat2b13MacPlugIn - syntax to convert date (1997) New Featured Site (1999) Secure server question (1997) inetinfo.exe (1999)