Page 2 of 2
Re: manual install issues
Posted: Wed Sep 09, 2015 2:07 pm
by questrad
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
Re: manual install issues
Posted: Wed Sep 09, 2015 4:21 pm
by lmiltchev
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...
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;"
Is there any reason you did this?
Undo the changes and try running the fullinstall again. Did it work?
Re: manual install issues
Posted: Wed Nov 16, 2016 5:04 pm
by eloyd
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.
Re: manual install issues
Posted: Thu Nov 17, 2016 10:00 am
by lmiltchev
This is already irrelevant as we no longer include the "create_postgres_db.sh" script in our installer.