In: Computer Science
linux:
1.create a new user on your system
called labsevenuser.
$ sudo useradd labsevenuser
2.Set a new password for the new
user you just created.
$ sudo passwd
labsevenuser
--This command will propt you to enter
and confirm the password.
3.Create a new group called
awesomepeople. Add the user you created in that group.
$ sudo groupadd
awesomepeople
$ sudo usermod -a -G awesomepeople
labsevenuser
4.Paste the last 5 lines of the /etc/group and /etc/passwd here to show that you executed the commands above.
/etc/group:
postdrop:x:90:
postfix:x:89:
chrony:x:996:
labsevenuser:x:1000:
awesomepeople:x:1001:labsevenuser
/etc/passwd:
polkitd:x:999:998:User for polkitd:/:/sbin/nologin
sshd:x:74:74:Privilege-separated
SSH:/var/empty/sshd:/sbin/nologin
postfix:x:89:89::/var/spool/postfix:/sbin/nologin
chrony:x:998:996::/var/lib/chrony:/sbin/nologin
labsevenuser:x:1000:1000::/home/labsevenuser:/bin/bash