Note

You are viewing the documentation for an older release of Interworx (6.x). To see documentation for the current generally available release of Interworx, click here: 7.13.

How to: Manage SSH Shell Users

How to: Change the Default Shell

  1. Click the SiteWorx menu item if it is not already open.

  2. Click the Shell Users menu item.

  3. Locate the Shell Account Options section.

  4. Select the desired shell, such as /bin/bash, from the dropdown labeled Default Shell.

  5. Click the Update 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.

How to: Change a Shell User’s Password

  1. Click the SiteWorx menu item if it is not already open.

  2. Click the 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 Update button.

  7. You will see the following message at the top of the screen: Shell account password updated successfully.

How to: Change a Shell User’s Shell

  1. Click the SiteWorx menu item if it is not already open.

  2. Click the 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 : → /shell/name.

How to: Enable a Shell User

  1. Click the SiteWorx menu item if it is not already open.

  2. Click the 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 : examplecom

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.

How to: Disable a Shell User

  1. Click the SiteWorx menu item if it is not already open.

  2. Click the 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.

How to: View a Shell User’s History

  1. Click the SiteWorx menu item if it is not already open.

  2. Click the 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.

How to: Set Jailed User

A jailed user will have a very limited view of the file system and available Linux commands when logged in.

It is recommended you exercise discretion when giving out shell access, even jailed shell access, to end users in shared hosting environments.

  1. Click the SiteWorx menu item if it is not already open.

  2. Click the 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.