ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange |
1 | initial version |
You cannot edit this file because this file belongs to user postgres, you didn't have privilege to edit this file. You can edit this file in two ways.
1.Change to postgres
sudo su - postgres
Then edit the file
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
2 | Be more specific |
You cannot edit this file because this file belongs to user postgres, you didn't have privilege to edit this file. 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 filefile 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.