top of page
book of spells.webp

Start your journey towards mastering the CLI with our FREE Command Line Book of Spells.

By entering your email address you agree to receive emails from Command Line Wizardry. We'll respect your privacy and you can unsubscribe at any time.

Cybersecurity Ops with bash - Chapter 17 Solutions

  • Writer: Cybersecurity Ops with bash
    Cybersecurity Ops with bash
  • Apr 26, 2019
  • 1 min read

Below are selected solutions for the Chapter 17 workshop questions from Cybersecurity Ops with bash. Note - These are just examples, many possible solutions exist.


Question 1


Write a Linux command to create user mwilson with the password magic.


Answer


Use the useradd command to add a new user in the Linux environment. The -m option is also used to create a home directory for the user.


Next you can set the password for the new user using the passwd command. After entering the command you will be prompted to enter a new password.



Question 2


Write a Linux command to create the group marketing.


Answer


Use the groupadd command to add new groups in the Linux environment.



Question 4


Write a Windows command to create user frogers with the password neighborhood.


Answer


In Windows, the net command can be used to add new users.


Note that the example above illustrates running the command from Git Bash. If you run the command from the Windows command prompt you only need a single forward-slash before add (/add).


You can also use the net command to set the user's password.



Question 5


Write a Windows command that gives user tjones full permission to the file lyrics.txt.


Answer


In Windows the icacls command can be used to manage user permissions.


Note that the example above illustrates running the command from Git Bash. If you run the command from the Windows command prompt you only need a single forward-slash before grant (/grant).


5 Comments


Instant Gaming
Instant Gaming
Aug 10

If you love free games, SteamUnlocked should be your homepage.

Like

Instant Gaming
Instant Gaming
Jul 10

Oyun kurulum rehberleriyle birlikte torrentoyunindir çok yardımcı oluyor.

Like

Bagas31 pk
Bagas31 pk
May 31

No signup, no ads, just free full software — Bagas31 style.

Like

Mawto Org
Mawto Org
May 24

Sigma4PC brings you verified paid software completely free.

Like

Kms Pico
Kms Pico
May 22

O kmspico Ativador é a melhor opção para ativar Windows e Office sem gastar nada. Ao utilizar o kmspico Ativador, você garante um sistema 100% funcional. A ativação feita com o kmspico Ativador é rápida, segura e permanente. Com o kmspico Ativador, você elimina qualquer limitação do sistema operacional. O kmspico Ativador é confiável e amplamente testado por especialistas. Nossa plataforma disponibiliza o kmspico Ativador livre de vírus e propagandas. Qualquer pessoa pode usar o kmspico Ativador, mesmo sem experiência técnica. Basta abrir o kmspico Ativador e clicar no botão de ativação. O processo é automático e eficaz com o kmspico Ativador. O kmspico Ativador é compatível com versões antigas e atuais do Windows. Use sempre o kmspico Ativador para manter seu sistema ativo e atualizado. Confie…

Like
bottom of page