Re: [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: Peter H. <ha...@sw...> - 2006-03-24 21:28:01
|
-----BEGIN PGP SIGNED MESSAGE-----
Hi Maurizio,
- --On March 24, 2006 18:29:14 +0000 Maurizio Molina <mau...@da...> wrote:
| 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";
| # }
Commenting out is not recommended. Nfsen is designed to be installed as root
in order to set proper user/group and privileges in various directories.
Doing that as normal user has too many potential traps, where installation may fail.
Software installation as root is common and therefore not a problem.
|
|
| ********* 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;
Change accepted. However, new NfSen ( snapshot ) will no longer be based on
shell script rc file.
Regards
- Peter
| -----------------------------
| Regards,
| Maurizio
|
|
|
|
| -------------------------------------------------------
| This SF.Net email is sponsored by xPML, a groundbreaking scripting language
| that extends applications into web and mobile media. Attend the live webcast
| and join the prime developer group breaking into this new coding territory!
| http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
| _______________________________________________
| Nfsen-discuss mailing list
| Nfs...@li...
| https://lists.sourceforge.net/lists/listinfo/nfsen-discuss
|
- --
_______ SWITCH - The Swiss Education and Research Network ______
Peter Haag, Security Engineer, Member of SWITCH CERT
PGP fingerprint: D9 31 D5 83 03 95 68 BA FB 84 CA 94 AB FC 5D D7
SWITCH, Limmatquai 138, CH-8001 Zurich, Switzerland
E-mail: pet...@sw... Web: http://www.switch.ch/
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (Darwin)
iQCVAwUBRCRkVP5AbZRALNr/AQGM9AQAiS6V4DmuBKRNFvXgftILx98ruv/5xPav
d5FfrVcbx21FqY3UlQOwsqA8rsvpM8pYQ7dYInekX+gwWwrpfzXz985BBCuN7ZBU
edMYZD6SLNKFILX4JfyhgIjv0L8yTP7MmNEclX1Z16f5mm07/5x+0OT9t+Ng8yyF
35MOAHAb8ys=
=hr9G
-----END PGP SIGNATURE-----
|