Shell Users

The shell users page allows you to enable/disable SSH shell access to certain Siteworx accounts. This may be desirable in some situations with technical end-users that can be trusted with SSH server access.
How To:

Change the Default Shell

  1. Click the Icon SiteWorx menu item if it is not already open.
  2. Click the Icon Shell Users menu item.
  3. Locate the Shell Account Options section.
  4. Select the desired shell, such as /bin/ksh, from the dropdown labeled Default Shell.
  5. Click the button.
  6. You will see the following message at the top of the screen: Default shell changed successfully.
This will change the default shell for all newly enabled accounts, it will not affect existing enabled shell users.

Change a Shell User's Password

  1. Click the Icon SiteWorx menu item if it is not already open.
  2. Click the Icon Shell Users menu item.
  3. Locate the user you wish to change the password for in the SiteWorx Shell Users or the System Shell Users section.
  4. Click the [ Change ] link in the Password column. A new screen with the user name and two password fields will appear.
  5. Fill in the Password and Confirm Password fields with the new password.
  6. Click the button.
  7. You will see the following message at the top of the screen: Shell account password updated successfully.

Change a Shell User's Shell

  1. Click the Icon SiteWorx menu item if it is not already open.
  2. Click the Icon Shell Users menu item.
  3. Locate the user you wish to change the shell for in the SiteWorx Shell Users or the System Shell Users section.
  4. Select the new shell, such as /bin/bash, from the dropdown box in the Shell column.
  5. Select Change Shell from the dropdown box at the bottom of the section.
  6. You will see the following message at the top of the screen: Shell changed successfully : <account name> → /shell/name.

Enable a Shell User

  1. Click the Icon SiteWorx menu item if it is not already open.
  2. Click the Icon Shell Users menu item.
  3. Mark the user(s) you wish to enable shell access for in the SiteWorx Shell Users or the System Shell Users section.
  4. Select Enable from the dropdown box at the bottom of the section.
  5. You will see the following set of messages at the top of the screen:
    Setting shell password to SiteWorx password : examplecom
    Updating user shell : examplecom → /bin/bash
    SiteWorx shell account enabled successfully : abccom
When enabling a user's shell, three distinct operations are performed. The shell user's password is set to the SiteWorx account password, the user's shell is updated to the default shell setting, and the account is enabled.

Disable a Shell User

  1. Click the Icon SiteWorx menu item if it is not already open.
  2. Click the Icon Shell Users menu item.
  3. Mark the user(s) you wish to disable shell access for in the SiteWorx Shell Users or the System Shell Users section.
  4. Select Disable from the drop-down list.
  5. The account(s) you selected should change from Enabled to Disabled in the Status column.
  6. You will see the following message at the top of the screen: User disabled successfully : exampleuser.

View a Shell User's History

  1. Click the Icon SiteWorx menu item if it is not already open.
  2. Click the Icon Shell Users menu item.
  3. If a shell user has history available, the [ View ] link in the History column will be available.
  4. Click the [ View ] link.
  5. A new window will open with the complete shell history of the shell user.

Set Jailed User

A jailed user will have a very limited view of the file system and available Linux commands when logged in. In addition, they will not be able to see the actual system configuration files such as /etc/passwd and instead will only be able to see abridged jailkit versions.

Jailing a user is not a failsafe garantee that a technically adept user will not be able to break out of the jail and/or gain root privileges via a root-escalation exploit. It is still recommended you exercise discretion when giving out shell access to end users in shared hosting environments.

  1. Click the Icon SiteWorx menu item if it is not already open.
  2. Click the Icon Shell Users menu item.
  3. Enable the shell user if it's not enabled already.
  4. Change a Shell User's Shell to /usr/sbin/jk_chrootsh