Visudo is needed to make modifications to the sudoers file. In a fresh install of CentOS “sudoers” file is not normally found. To install visudo issue the command
$ yum -y install sudo
As a sys admin, you need to be careful when performing tasks with root privileges. To be cautious, you can create a new user and assign him with root privileges using “visudo”
# User privilege specification
root ALL=(ALL) ALL
test ALL=(ALL) ALL
In the above file, test is a new user created with root privileges. In order for the “test” user to have root privileges, command “sudo” should be used. It prevents the user from issuing any commands that can cause system wide havoc and it also logs the command inside “/var/log/secure” for review
Changing host configuration $ vi /var/lib/pgsql/8.4/data/pg_hba.conf Add postgresql to startup process $ chkconfig postgresql-8.4 on Start postgresql service $ service...