Search Postgresql Archives

Re: psql remote shell command

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



* David G. Johnston (david.g.johnston@xxxxxxxxx) wrote:
> On Thu, Jun 2, 2016 at 7:30 PM, Dennis <dennisr@xxxxxxxx> wrote:
> > Is it possible to execute command in on system the is hosting postgresql
> > remotely using psql or other mechanism?  I know I can use \! in psql but
> > that executes the commands on the host where I am running psql from.  Also,
> > is it possible for a postgres login/user to stop or restart a running
> > postgres instance from in side psql or similar client. e.g. psql -c “pg_ctl
> > stop -D some_data_dir”
> 
> ​ssh user@hostname ?
> 
> You should ask your system administrator for help.  Odds are if you cannot
> do "ssh user@hostname" then the person hosting the server doesn't want you
> to be able to execute arbitrary commands on the host.

To be fair, if the administrator really didn't want you to have access
to the postgres unix user account on the system, they shouldn't give you
a PG superuser account.

Thanks!

Stephen

Attachment: signature.asc
Description: Digital signature


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Postgresql Jobs]     [Postgresql Admin]     [Postgresql Performance]     [Linux Clusters]     [PHP Home]     [PHP on Windows]     [Kernel Newbies]     [PHP Classes]     [PHP Books]     [PHP Databases]     [Postgresql & PHP]     [Yosemite]
  Powered by Linux