How To Add a User During Kickstart

How To Add a User During Kickstart

   

This post was last updated on May 26th, 2020 at 10:37 pm

Adding a user during kickstart:

/usr/sbin/useradd username
/usr/sbin/usermod -p ‘<encrypterd_password>’ <username>

Making encrypted passwords:

$ openssl passwd -1
Password: secret!
$1$ZhEKgpbS$KtmSr63TRqGQ1NcGXCaR01

Openssl only asks once, so you might want to verify the output:
(notice the salt is between the second and third $ signs)

$ openssl passwd -1 -salt ZhEKgpbS
Password: secret!
$1$ZhEKgpbS$KtmSr63TRqGQ1NcGXCaR01

Thanks Phil for the above password creation help.

Previous PXE Server Setup - whitepaper
Next How to Install apt or apt-get and Synaptic on RedHat Linux or Fedora

About author

Sibananda Sahu
Sibananda Sahu 149 posts

A Linux Kernel Developer and a Firmware Developer by profession. Have worked with few big companies: BROADCOM Corporation, Cypress Semiconductor, LSI Corporation, TOSHIBA Corporation, Western Digital; on various cutting edge technologies and product lines, such as: RAID storage Driver, SSD Firmware, WLAN Firmware etc. Having more than 9 years of experience in Software Engineering domain. Now, took a pledge to educate all aspirant students to teach about Linux Kernel Development.

View all posts by this author →

You might also like

Linux Topics 0 Comments

How To Find IP Address From Domain Name In Linux/Unix?

This post was last updated on August 1st, 2020 at 03:35 pmBefore we start running a command to find the IP addresses from the domain name. First, we will discuss

Linux Topics 0 Comments

How To Split A Large File Into Multiple Smaller Files In Linux/Unix?

This post was last updated on August 1st, 2020 at 12:32 pmSuppose you have an archive file of size more than 5GB, and if you want to burn it on

How To 0 Comments

How To Upgrade To Ubuntu 20.04 LTS From Ubuntu 18.04 Or Ubuntu 19.10?

This post was last updated on August 1st, 2020 at 12:30 pmUbuntu comes in two releases the first one is LTS and the second is standard versions. LTS (Long Term

0 Comments

No Comments Yet!

You can be first to comment this post!

Leave a Reply