Home / FreePBX / User Configuration / Creating a Linux User

Creating a Linux User


Overview

This wiki will cover creating a linux shell user, setting their password, and granting sudo access. 
 Note: In our examples we will be creating and modifying the user "tech"

Creating shell user

  1. Login to your PBX as the root user via SSH or Console.
  2. Use the command useradd to create the user.
    1. Using the syntax:
      useradd <username>
      01_ShellUser-Create

Setting / Changing the Users Password

  1. Login to your PBX as the root user via SSH or Console.
  2. Use the passwd command to set the users password.
    1. Using the syntax:
      passwd <username>
      You'll need to enter the password twice to guard against typos.
      01_ShellUser-Passwd

Granting sudo access to a shell user

  1. Login to your PBX as the root user via SSH or Console.
  2. Use the command usermod to add the new user to the wheel group granting access to sudo.
    1. Using the syntax:
      usermod -aG wheel <username>
      03_ShellUser-Sudo





     RSS of this page