User postgres can't write to /var/lib/postgresql
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
postgresql-common (Ubuntu) |
Fix Released
|
Medium
|
Martin Pitt |
Bug Description
The user postgres has no write privileges to it's own HOME directory /var/lib/
ls -la /var/lib/
total 12
drwxr-xr-x 3 root root 4096 Feb 24 10:45 .
drwxr-xr-x 42 root root 4096 Feb 24 10:45 ..
drwxr-xr-x 3 postgres postgres 4096 Feb 24 10:45 8.1
postgres@ubuntu:~$ touch ~/foo
touch: cannot touch `/var/lib/
This problem occurs when you leaving psql, i.e.:
postgres@ubuntu:~$ psql template1
Welcome to psql 8.1.3, the PostgreSQL interactive terminal.
Type: \copyright for distribution terms
\h for help with SQL commands
\? for help with psql commands
\g or terminate with semicolon to execute query
\q to quit
template1=# \q
could not save history to file "/var/lib/
postgres@ubuntu:~$
Hm, user postgres is not really meant to be an interactive user, but I'll fix that.