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 | Q&A answers.ros.org |
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: 214 times
Last updated: Dec 17 '12
How do I prevent segmentation fault when starting rviz?
rviz rendering issues (disjointed triangles)
How to set up OpenCV(which is part of ROS) in Qt creator in Ubuntu12.04
(Groovy | 12.04 | armv7l) bash: rosrun: command not found
Not able to install ROSARIA on Fuerte on Ubuntu 12.04 LTS?
Unable to subscribe ros topic generated on different architecture machine
Unable to install ros_control and ros_controller on ubuntu hydro. [closed]
openni_tracker Timeout Error in Fuerte (Ubuntu 12.04 LTS)
Vicon with ROS Fuerte and Ubuntu 12.04
Which one is the best ubuntu version currently for ROS? (Full installment)