# Pups::ExecError: su postgres -c 'psql discourse -c "alter schema public owner to discourse;"' завершился с ошибкой возврата

**URL:** <https://meta.discourse.org/t/pups-su-postgres-c-psql-discourse-c-alter-schema-public-owner-to-discourse-failed-with-return/254858>\
**Category:** Self-hosting\
**Created:** [11.Февраль.2023 16:13:08 UTC](https://meta.discourse.org/t/pups-su-postgres-c-psql-discourse-c-alter-schema-public-owner-to-discourse-failed-with-return/254858 "2023-02-11T16:13:08Z")\
**Posts on this page:** 1\
**Showing post:** 27

<div class="post-metadata">

**Author:** ![pfaffman](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/pfaffman/32/120154_2.png) [@pfaffman](https://meta.discourse.org/u/pfaffman)\
**Post date:** [12.Февраль.2023 00:17:18 UTC](https://meta.discourse.org/t/pups-su-postgres-c-psql-discourse-c-alter-schema-public-owner-to-discourse-failed-with-return/254858/27 "2023-02-12T00:17:18Z")

</div>

> [@Ratnam\_Raju\_Varsala](#):
>
> ```plaintext
> 2023-02-11 18:58:30.959 UTC [42] FATAL: каталог данных "/shared/postgres_data" имеет недопустимые права доступа
> 2023-02-11 18:58:30.959 UTC [42] DETAIL: Права доступа должны быть u=rwx (0700) или u=rwx,g=rx (0750).
> 
> ```

Похоже, проблема именно в этом, хотя я не могу представить, как изменение плагинов могло привести к ошибке в правах доступа postgres. Вы что-то ещё меняли? Это стандартная установка, верно?

Режим безопасной загрузки не поможет, так как сайт не работает.

---

_[View the full topic](https://meta.discourse.org/t/pups-su-postgres-c-psql-discourse-c-alter-schema-public-owner-to-discourse-failed-with-return/254858)._
