{"blog_url":"https://takuya-1st.hatenablog.jp/","url":"https://takuya-1st.hatenablog.jp/entry/2015/09/05/221056","published":"2015-09-05 22:10:56","type":"rich","author_name":"takuya_1st","width":"100%","author_url":"https://blog.hatena.ne.jp/takuya_1st/","description":"pkexec \u30b3\u30de\u30f3\u30c9\u304c\u4fbf\u5229 pkexec --user username command \u3053\u308c\u3067\u3001\u5225\u30e6\u30fc\u30b6\u30fc\u3067\u5b9f\u884c\u3067\u304d\u308b\u3002 psql \u306e\u305f\u3081\u306b\u3001su \u9023\u767a\u9762\u5012 ssh takuya@server sudo su root sudo su postgres psql \u3092 postgres \u30e6\u30fc\u30b6\u30fc\u3067\u8d77\u52d5\u3059\u308b\u307e\u3067\u304c\u624b\u9593\u306a\u3093\u3067\u3059\u3088\u3002 psql \u3067\u3084\u3063\u3066\u307f\u305f \u3067\u3001\u30ab\u30f3\u30bf\u30f3\u306bpsql\u30b3\u30de\u30f3\u30c9\u3092\u5b9f\u884c\u3057\u3066\u307f\u308b\u306b\u306f takuya@atom:/etc$ pkexec --user postgres psql ==== AUTHENTICATING FOR org.freedesktop.policykit.e\u2026","provider_name":"Hatena Blog","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Ftakuya-1st.hatenablog.jp%2Fentry%2F2015%2F09%2F05%2F221056\" title=\"linux\u3067\u5225\u306e\u30e6\u30fc\u30b6\u30fc\u3068\u3057\u3066\u30b3\u30de\u30f3\u30c9\u3092\u5b9f\u884c\u3059\u308b\u3002(do as / run as ) - \u305d\u308c\u30de\u30b0\u3067\uff01\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","height":"190","version":"1.0","categories":[],"title":"linux\u3067\u5225\u306e\u30e6\u30fc\u30b6\u30fc\u3068\u3057\u3066\u30b3\u30de\u30f3\u30c9\u3092\u5b9f\u884c\u3059\u308b\u3002(do as / run as )","image_url":null,"blog_title":"\u305d\u308c\u30de\u30b0\u3067\uff01","provider_url":"https://hatena.blog"}