Create new webmin user

To create a new Webmin user, you can follow these steps:

Using the Webmin interface:

  1. Log in to your Webmin interface by navigating to https://your-server-ip:10000 (replace your-server-ip with the IP address of your server).
  2. Click on the "Users" tab on the top menu bar.
  3. Click on the "Create a new user" button.
  4. Fill in the required information:
    • Username: Enter a unique username for the new user.
    • Password: Enter a strong password for the new user.
    • Email: Enter the email address for the new user (optional).
    • Group: Select the group that the new user should belong to (e.g., "users" or "admin").
    • Shell: Select the shell that the new user should use (e.g., "bash" or "sh").
  5. Click the "Create" button to create the new user.

Using the command line:

  1. Log in to your server using SSH.

  2. Run the following command to create a new user:

    useradd -m -s /bin/bash newuser

    Replace newuser with the desired username.

  3. Set the password for the new user:

    passwd newuser

    Enter a strong password for the new user.

  4. Add the new user to a group (optional):

    usermod -aG group newuser

    Replace group with the name of the group you want the new user to belong to.

  5. Log out and log back in to your Webmin interface to verify that the new user has been created.

Note: The above commands assume that you are using a Linux-based system. If you are using a different operating system, the commands may vary.