Slashdot is powered by your submissions, so send in your scoop

 



Forgot your password?
typodupeerror

Comment Re:How about: less douchebaggery? (Score 1) 904

sudo vi /etc/httpd/httpd.conf
Password: :sh
sh#

An excerpt from sudoers(5):

NOEXEC and EXEC

If sudo has been compiled with noexec support and the underlying operating
system supports it, the NOEXEC tag can be used to prevent a dynamically-
linked executable from running further commands itself.

In the following example, user aaron may run /usr/bin/more and /usr/bin/vi
but shell escapes will be disabled.

aaron shanty = NOEXEC: /usr/bin/more, /usr/bin/vi

See the "PREVENTING SHELL ESCAPES" section below for more details on how
NOEXEC works and whether or not it will work on your system.

Slashdot Top Deals

Entropy requires no maintenance. -- Markoff Chaney

Working...