Want to read Slashdot from your mobile device? Point it at m.slashdot.org and keep reading!

 



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

Think lucky. If you fall in a pond, check your pockets for fish. -- Darrell Royal

Working...