[Nfsen-discuss] two problems with starting/stopping nfsen 1.2.4 as a normal (non root user)
Netflow visualisation and investigation tool
Brought to you by:
phaag
|
From: Maurizio M. <mau...@da...> - 2006-03-24 18:29:17
|
Hi,
I wanted to report two problems with starting/stopping nfsen as a normal
(non root user)
********** starting *************
In the file install.pl , I still had to comment out the following line
in order to run the command as an ordinary user.
# need to run as root
#if ( !NfSen::root_process() ) {
# die "nfsen setup wants to run as root\n";
#}
********* stopping *******************
In the nfsen.rc script I had to correct the test for the stop case as
follows:
--------- original ---------
stop)
if [ $RunUser != 'root' -o $RunUser != $RunUser ]; then
echo "Hello '$RunUser'"
echo "Only user '$USER' or 'root' wants to run $0
start/stop";
exit 1;
----------------------------
-------corrected -----------
if [ $RunUser != 'root' -a $RunUser != $USER ]; then
echo "Hello '$RunUser'"
echo "Only user '$USER' or 'root' wants to run $0
start/stop";
exit 1;
-----------------------------
Regards,
Maurizio
|