diff options
author | Aaron W. Swenson <titanofold@gentoo.org> | 2013-03-09 14:58:46 +0000 |
---|---|---|
committer | Aaron W. Swenson <titanofold@gentoo.org> | 2013-03-09 14:58:46 +0000 |
commit | c7b29a5071a1d7b86d40a56bb505cc8921d670ea (patch) | |
tree | 31f56d87c888ee4fe2f252d9c68a7d8c0fcd1996 | |
parent | Just default to /run/postgresql. (diff) | |
download | patches-c7b29a5071a1d7b86d40a56bb505cc8921d670ea.tar.gz patches-c7b29a5071a1d7b86d40a56bb505cc8921d670ea.tar.bz2 patches-c7b29a5071a1d7b86d40a56bb505cc8921d670ea.zip |
Change ${socket_path} permissions so that users in the `postgres'
system group cannot create, rename, or delete files in ${socket_path}.
-rwxr-xr-x | postgresql.init | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/postgresql.init b/postgresql.init index 9a1d64e..aef9f04 100755 --- a/postgresql.init +++ b/postgresql.init @@ -61,7 +61,7 @@ checkconfig() { # Set the proper permission for the socket path and create it if # it doesn't exist. - checkpath -d -m 0770 -o postgres:postgres ${socket_path} + checkpath -d -m 0750 -o postgres:postgres ${socket_path} if [ -e ${socket_path%/}/.s.PGSQL.${configured_port} ] ; then eerror "Socket conflict." eerror "A server is already listening on:" |