can not edit in pg_ident.conf
Hi,
how to make pg_ident.conf easy accessible and edit on it.
any suggestion ?!
Hi,
how to make pg_ident.conf easy accessible and edit on it.
any suggestion ?!
You cannot edit this file because this file belongs to user postgres, you didn't have privilege to edit this file.This can be verified by using
ls -l /etc/postgresql/9.1/main/pg_ident.conf
You can edit this file in two ways.
1.Change to user postgres
sudo su - postgres
Then edit the file by
vim /etc/postgresql/9.1/main/pg_ident.conf
2.Use root privilege to edit the file
sudo vim /etc/postgresql/9.1/main/pg_ident.conf
If you didn't have vim installed yet, use
sudo apt-get install vim
Once you enter vim editor, press "i" to become INSERT mode, and you can edit the file. When you finished editing, type ":wq" to save the file and leave vim editor.
When you type sudo su - postgres
to become user postgres, the password you need is your original user's.
Please start posting anonymously - your entry will be published after you log in or create a new account.
Asked: 2012-12-16 06:37:14 -0600
Seen: 158 times
Last updated: Dec 17 '12
Correct way of modifying ROS classes? (do I have to edit installed headers directly?)
Error in rosserial_arduino/Tutorials/Hello World [closed]
problem compiling pr2_build_map_gazebo_demo
catkin_make with postgreSQL link pqxx??
Cannot install ROS Hydro on Ubuntu 12.04
Roomba 560 "Could not connect to Roomba" Error in ROS (Ubuntu 12.04)
openni_tracker failed because of InitFromXml failed
Upgrading to Fuerte and Ubuntu 12.04 Woes
rospack depends geometry_msgs vs rosmsg packages Header [closed]