Type the following command to delete the user, replacing `user_name` with the username of the user you want to delete: sudo deluser user_name.Open a terminal window as described above.To delete a user in Ubuntu, follow these steps: Let’s see another example with a few options, to create a new user with the username “tecadmin”, a home directory at “/var/home/tecadmin”, and the Zsh shell as the login shell, you could use the following command: adduser -m -d /var/home/tecadmin -s /bin/zsh tecadminįor a complete list of options and more information about the adduser command, you can consult the adduser man page by typing `man adduser` in a terminal window. See the below screenshot for the expected command output: You have successfully added a new user account in the Ubuntu system.For example, to add the user to the `sudo` group, which allows the user to perform administrative tasks, use the following command: sudo usermod -aG sudo user_name Once the user has been created, you can set additional user privileges using the `usermod` command. You can leave these fields blank by pressing “Enter” if you do not want to provide this information.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |