Have you removed the old Nessus 2.2.6 before installing?Originally Posted by Pidgeon
Because that's exact the error you get when you remove the Nessus 2.2.6 before installing Nessus 3.0.
I have got a problem with nessusd:
root@slax:/opt/nessus/sbin# ls
nessus-add-first-user* nessus-check-signature* nessus-mkcert* nessus-update-plugins*
nessus-adduser* nessus-chpasswd* nessus-rmuser* nessusd*
root@slax:/opt/nessus/sbin# nessusd
-bash: /usr/local/sbin/nessusd: No such file or directory
root@slax:/opt/nessus/sbin# ./nessusd
./nessusd: error while loading shared libraries: libnessus.so.3: cannot open shared object file: No such file or directory
How can I fix this? Thanks.
Have you removed the old Nessus 2.2.6 before installing?Originally Posted by Pidgeon
Because that's exact the error you get when you remove the Nessus 2.2.6 before installing Nessus 3.0.
FIRST I have installed Nessus 3.0, I tried its nessusd, but there was the error, THEN I uninstalled Nessus 2.0, but the error didn't disappear. Any suggestion?
The problem is that the uninstall may not delete all of the files. When 3.X installs, it does not install in to the same directory structure. If you do a "which nessud", (/usr/local/sbin/nessusd) you will see where the old one is, and can delete it. The new directory structure is "/opt/nessus/*", nessusd being in /opt/nessus/sbin and nessus being in /opt/nessus/bin. You need to change your PATH to reflect the new path.
Originally Posted by Pidgeon
This is the output:
root@slax:~# which nessusd
/opt/nessus/sbin/nessusd
Then I have seen in:
/usr/local/sbin/
But I haven't found nessusd.
By the way if I try:
root@slax:~# cd /opt/nessus/bin
root@slax:/opt/nessus/bin# nessusd
nessusd: error while loading shared libraries: libnessus.so.3: cannot open shared object file: No such file or directory
So what could I do?
It looks like which found the new one, in /opt/nessus/sbin
Don't know why you cd'd in to bin, "nessusd" is in sbin. I doubt that "." is in your path, so you need to type "./nessusd" for example, while in the /opt/nessus/sbin directory. I had the same problem with the libraries, so I "cp -R /opt/nessus/lib/* /lib/". I also had to do a link in the /lib directory, "ln libdb-4.2.so libdb-4.3.so".Originally Posted by Pidgeon
Of course, like I said you could edit your PATH, and change the current nessus paths, to /opt/nessus/bin & sbin.Originally Posted by Pidgeon
Two problems:
1) I don't know how to modify the PATH
2) The command:
root@slax:/opt/nessus/sbin# cd /opt/nessus/lib
root@slax:/opt/nessus/lib# ln libdb-4.2.so libdb-4.3.so
ln: accessing `libdb-4.2.so': No such file or directory
Don't work.
1) Bummer.one way "PATH=$PATH:/opt/nessus/sbin:/opt/nessus/bin" ; export PATH". Add this statement to /etc/profile to make it permenant between boots.
2) What I meant was, after you copied the libs from /opt/nessus/lib/ to /lib, then cd to /lib and run the command.
Originally Posted by Pidgeon
Thanks very much for the guide and the help, now it seems to work... I have got the last two questions, I hope you can answer them:
1) How do I execute a command everytime BackTrack starts?
The command is:
dhcpcd eth0
2) I have found the /etc/profile file but I don't know where to add:
"PATH=$PATH:/opt/nessus/sbin:/opt/nessus/bin" ; export PATH"
Thanks again.
Assuming that you have a hard drive installation, then cd to /etc/rc.d and edit the rc.inet1 file. Uncomment the lines that are not comments. Or at least put any network configuration commands (including the dhcpcd eth0) at the bottom of that file.
Add the following line at the bottom. You don't need the export.Originally Posted by Pidgeon
PATH=$PATH:/opt/nessus/sbin:/opt/nessus/bin
Originally Posted by Pidgeon