Command Shell limitations?

SYSTEM INFORMATION
OS type and version MacOS Ventura
Webmin version 2021

I have noticed that some command does not work in the Webmin Command Shell.

For an example this

> sudo su - postgres
> psql
psql: error: FATAL: role "root" does not exist

In the Mac Terminal the role is switched to postgres and work as expected.

And some command needs to be answered by [Y/n] and no interaction is possible. This applies also to entering passwords etc.

Is this limitations or is it anything I am doing wrong?

The Command Shell is not an interactive terminal. It is completely stateless. It runs one command at a time, and they cannot be interactive and you can’t change the environment.

But, there is an interactive terminal in Webmin (called Terminal in the Tools menu), which can be used in this way.

1 Like

This topic was automatically closed 8 days after the last reply. New replies are no longer allowed.