Warning: file_get_contents(/data/phpspider/zhask/data//catemap/4/macos/8.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Macos Mac OSX上的PostgreSQL-无法以postgres用户身份登录_Macos_Postgresql_Geodjango_Postgresql 9.1 - Fatal编程技术网

Macos Mac OSX上的PostgreSQL-无法以postgres用户身份登录

Macos Mac OSX上的PostgreSQL-无法以postgres用户身份登录,macos,postgresql,geodjango,postgresql-9.1,Macos,Postgresql,Geodjango,Postgresql 9.1,我在MacOSX上安装了postgresql和geodjango。 出于某种原因 sudo su - postgres 不起作用。我输入了sudo密码,但当我输入“whoami”时,它仍然是我的正常用户登录 我知道有一个postgres用户在我看到了来自 dscl . -list /Users UniqueID 知道为什么会这样吗?我安装了PSQL 9.1.1服务器版本 谢谢。postgres帐户可能已禁用登录权限和/或/bin/false作为登录shell 在这种情况下,最好直接调用po

我在MacOSX上安装了postgresql和geodjango。 出于某种原因

sudo su - postgres 
不起作用。我输入了sudo密码,但当我输入“whoami”时,它仍然是我的正常用户登录

我知道有一个postgres用户在我看到了来自

dscl . -list /Users UniqueID
知道为什么会这样吗?我安装了PSQL 9.1.1服务器版本


谢谢。

postgres帐户可能已禁用登录权限和/或/bin/false作为登录shell

在这种情况下,最好直接调用postgresql命令,例如:sudo-u postgres psql


即使在禁用了登录shell的情况下也应该可以使用。

grep-postgres/etc/passwd的输出是什么?
finger-postgres的输出是什么?
finger-postgres的输出是login:postgres-Name:PostgreSQL-Server目录:/var/empty-shell:/usr/bin/false从未登录。没有邮件。没有计划。