[Solved]Task 4 Encrypting User Password Usermod L Newuser1 Chage D 0 Newuser1 Grep Newuser1 Etc Sh Q37250562
Task 4: Encrypting User Password
# usermod -L newuser1
# chage -d 0 newuser1
# grep newuser1 /etc/shadow
What is the purpose of usermod and chage command?
__________________________________________________________________________________________________________________
# rpm -q python If python
if python is not installed, then enter
# yum install python
# python
>>> import crypt;print crypt.crypt(“password123″,”solutions”)
>>>
Press CTRL d to exit
Use the mouse to copy the encrypted string.
# usermod -p <paste encrypted stringhere> newuser1
The angle brackets (< and >) are NOT part of thestring!
# grep newuser1 /etc/shadow
# usermod -U newuser1
# usermod -s /bin/bash newuser1
Log on as newuser1
Can you log on? What password are going to use?_____________________________________________________________________________________????????
Expert Answer
Answer to Task 4: Encrypting User Password # usermod -L newuser1 # chage -d 0 newuser1 # grep newuser1 /etc/shadow What is the pur… . . .
OR

