grep root /etc/sudoers
## the root user, without needing the root password.
## Allow root to run any commands anywhere
root ALL=(ALL) ALL
## cdrom as root
manual install issues
Re: manual install issues
Hm-m-m, this line looks normal.
I am still not sure why you modified our original script by removing the "sudo" from the two lines on the first place...
Is there any reason you did this?
Undo the changes and try running the fullinstall again. Did it work?
I am still not sure why you modified our original script by removing the "sudo" from the two lines on the first place...
Code: Select all
cat /tmp/nagiosxi/nagiosxi/create_postgres_db.sh
#!/bin/sh
sudo -u postgres psql -c "create user nagiosxi with password 'n@gweb';"
sudo -u postgres psql -c "create database nagiosxi owner nagiosxi;"Undo the changes and try running the fullinstall again. Did it work?
Be sure to check out our Knowledgebase for helpful articles and solutions!
Re: manual install issues
Probably because there's no reason to run the install through sudo if you're already root.
We're running into an instance where we have root access but are not allowed to modify the sudoers file, and root does not have sudo access. I know this a a year old thread, but even with the latest 5.3 install, there's still sudo commands in the install scripts. In our case, it messed us up so badly we had to restart the install and remove all the sudos.
We're running into an instance where we have root access but are not allowed to modify the sudoers file, and root does not have sudo access. I know this a a year old thread, but even with the latest 5.3 install, there's still sudo commands in the install scripts. In our case, it messed us up so badly we had to restart the install and remove all the sudos.
Eric Loyd • http://everwatch.global • 844.240.EVER • @EricLoyd
I'm a Nagios Fanatic! • Join our public Nagios Discord Server!
Re: manual install issues
This is already irrelevant as we no longer include the "create_postgres_db.sh" script in our installer.
Be sure to check out our Knowledgebase for helpful articles and solutions!