User Management

Hack The Box Academy Module: Linux Fundamentals

The section User Management belongs to Linux Fundamentals module.

Don't know how to connect to HTB VPN? Click here.

Which option needs to be set to create a home directory for a new user using the "useradd" command?

The -m flag is used with the useradd command to create a home directory for the new user.

Which option needs to be set to lock a user account using the "usermod" command? (long version of the option)

To lock a user account we use the --lock flag with the usermod command.

Which option needs to be set to execute a command as a different user using the "su" command? (long version of the option)

To execute commands as a different user, use the --command flag with the su command.

Join HTB Academy (Get 20 Cubes Free)

Join Now