/go/shell controls whether a hosting account can log in over SSH with a normal shell. It can: The command changes the account's Shell flag in GoAdmio's database, then runs ssh to rewrite the SSH server configuration so the change is applied. Every admin action in GoAdmio has a matching /go/ command, so anything you can click you can also script.
Quick start
# Enable shell access for a domain's account
/go/shell example.com
# Disable it
/go/shell example.com 0
Arguments
| Position | Argument | Required | Notes |
|---|---|---|---|
| 1 | <domain> |
Yes | The hosted domain, written the same way as in GoAdmio. The account’s username is looked up from it. |
| 2 | 0 or --disable |
No | Disables shell access. |
| You pass | Result |
|---|---|
example.com |
Enables shell access. |
example.com 1 |
Enables shell access. |
example.com anything-else |
Enables shell access. |
example.com 0 |
Disables shell access. |
example.com --disable |
Disables shell access. |
--disable example.com |
Does not work. The domain must be the first argument, so --disable is read as the domain and no account is changed. |
The command does not check that the domain exists. A misspelled domain changes nothing and prints no error.
Examples
# Give an account a regular SSH shell
/go/shell example.com
# Remove shell access
/go/shell example.com --disable
# Review recent calls
tail /var/log/go/shell.log
Output
There is no success message. The only output comes from the tools the command runs:
- When enabling,
gpasswdprints a line such asRemoving user example.com from group Jailed, or an error if the user was not in that group. sshmay print its own messages.
Check the result by trying an SSH login, or by looking at the account’s shell setting in GoAdmio.
See the full reference at /go/shell and the GoAdmio command index.
GoAdmio is free and open source, with no license fees and no account limits. Read the GoAdmio docs, or see why it is a free cPanel alternative at goadmio.com.
