Create Linux user

33

Add OS user:

useradd sam

And set its password (you will be prompted for it in the command line):

passwd sam

You may want to change user's home directory since it is used by some services like FTP or Samba. To do that open file /etc/passwd and find your new user's line. The first parameter of each line is user's name. The path to the home directory is second to last.

Rate this post:
Share this page:

See also how to:

How to extract files from zip archive in Linux command line
How to extract files from different tar archives in Linux command line
How to pretty print XML documents on Linux
How to run your PHP or Bash script as root in the most secure way
How to install PHP FastCGI Process Manager (FPM) on CentOS 7