Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version
  1. Open Terminal on your Mac.
  2. Connect to the Linux server using the ssh command: ssh username@servername
  3. Enter your password.
  4. Once you’ve successfully logged in, enter the following command to create a new user: sudo adduser newusername
  5. Follow the on-screen prompts to set a new password for the user and other information like full name, phone number, etc.
  6. Add the new user to the sudoers group by running the following command sudo adduser newusername sudo.
  7. Verify that the new user has been created by logging out of the Linux server and logging back in using the new user’s credentials.