can not edit in pg_ident.conf
Hi,
how to make pg_ident.conf easy accessible and edit on it.
any suggestion ?!
ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange |
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.
Asked: 2012-12-16 06:37:14 -0600
Seen: 305 times
Last updated: Dec 17 '12
openni_tracker Timeout Error in Fuerte (Ubuntu 12.04 LTS)
Load binary data into a PostgreSQL database through the database_interface [closed]
openni ros-fuerte ubuntu 12.04 anyone?
openni_tracker "Find user generator failed"
Turtlebot stops working after 12.04 upgrade [closed]
Correct way of modifying ROS classes? (do I have to edit installed headers directly?)
Ubuntu 12.04 ROS Fuerte Gazebo install Problem
hector_slam simulation fuerte 10.04 vs 12.04