In this write-up, methods are discovered by which the users can be created, updated, and deleted in Ubuntu 22.04.
The method of creation, updating, and deletion of the Users using the terminal have been explained in detail in different sections, first open the terminal by using the shortcut key of CTRL+ALT+T:
The terminal has been opened.
For the creation of users in Ubuntu, we will follow the general syntax mentioned below:
Following the above command, only replace the “[username]” with the username, and the “-m” option is used to create the newly created user’s home directory, for example, if a user with the name “Paul” is supposed to be added in Ubuntu, the above command will be changed:
The user has been created, however, to make the user account more secure, set a password using the command:
When the command is being executed, it will ask to set a password, then to re-type the password to match both passwords.
When the user is created, and some privileges of the user are supposed to be updated, which one is granting the user the administrative privileges. These privileges can be granted by adding the user in the sudoers group by running the command:
Similarly, to change the password of user Paul, run the command:
The password of the user Paul has been updated.
To delete the user from the user, use the command of userdel, for example, in order to remove the user “Paul” run the command:
The user will be deleted with the execution of the above command.
The commands adduser and deluser are used to create and delete the users in Ubuntu 22.04, and to update their password, use the command passwd. In this blog, the creation, updating, and deletion of the users have been explained in Ubuntu 22.04.
We’re pleased to share a security enhancement for Ubuntu workloads on Microsoft Azure. In collaboration…
This article demonstrates how to install DNSControl on Ubuntu VPS to Manage PowerDNS servers. What…
Welcome to the Ubuntu Weekly Newsletter, Issue 911 for the week of September 21 –…
This article provides a guide to install and run ArchivesSpace on Ubuntu VPS. What is…
This article provides a comprehensive guide to install and run self-hosted Mattermost instance on Linux…
Designing a new, robust, sustainable, and truly holistic approach to cybersecurity Talk to any cybersecurity…