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:

Add to a field (1998) Cool new site (1996) 2.0 Info (1997) Help with (2003) quantity minimum problem (1997) Protect (1997) MasterCounter and capitalization (1997) ShowIf Question (1998) Not really WebCat (1997) Extended [ConvertChars] (1997) Nested tags count question (1997) Webcat memory usage Q (2002) check out page (SSL) not loading on Netscape 4.0+ - fixed? (1999) Great product and great job ! (1997) unix permissions for 4.0 (2000) Showif, Hideif reverse logic ? (1997) Make sure I understand this??? (1997) WebCatalog for guestbook ? (1997) Erotic Sites (1997) DNS Lookup 2 (2000)