Skip to content

Instantly share code, notes, and snippets.

@dksifoua
Created September 23, 2019 11:37
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dksifoua/df33d1e4faae0be43ed4da87b3642af9 to your computer and use it in GitHub Desktop.
Save dksifoua/df33d1e4faae0be43ed4da87b3642af9 to your computer and use it in GitHub Desktop.
$ sudo useradd kafka -m
The -m flag ensures that a home directory will be created for the user.
This home directory, /home/kafka, will act as our workspace directory for executing commands in the sections below.
Set the password using passwd:
$ sudo passwd kafka
Add the kafka user to sudo group
$ sudo adduser kafka sudo
Log into the kafka account
$ su -l kafka
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment