- Name: SWeidner
- Location: Elk Point, South Dakota, United States
My Blogger Code
B5 d+ t k s u- f- i- o- x-- e l- c (decode it!)
My Geek Code
GAT/IT d-(+) s+(): a C+++$ ULC+++>$ P++>++++ L++$>++++ !E W++>$ N+ !o !K w+()@ !O !M- !V PS-(--)@>--- PE+ Y-- PGP>++ t+ !5(-) X+ !R- tv-(+)? b+ DI++++ D++>$ G e+>++ h----(-) r+++ y++++
Steve's random ramblings and technical notes
Tuesday, December 07, 2004
Running Linux Apps w/o becoming Root
|Q. How can I run ntop without being root?
A. A very simple way of doing this is:
Do not forget to use the -u flag so that ntop changes user as soon as it is started.
Understand that setting the Setuid and Setguid bits allows ANY user to run ntop and it will run with ROOT privledges. This is very powerful, and often a source of security exposure - many system hardening scripts and recomendations tell you to look for and remove the setuid and setguid bits.
DO NOT suid UNLESS YOU UNDERSTAND THE RISKS!