Skip to content
Snippets Groups Projects
Commit 1e560236 authored by Bertrand  NÉRON's avatar Bertrand NÉRON
Browse files

regroup user and group related command in User and grp management

parent 5011c961
No related branches found
No related tags found
No related merge requests found
Pipeline #87641 passed
...@@ -136,9 +136,11 @@ with the command. ...@@ -136,9 +136,11 @@ with the command.
sudo visudo sudo visudo
User and Group management
=========================
Create a new user Create a new user
================= -----------------
.. code-block:: shell .. code-block:: shell
...@@ -147,7 +149,7 @@ Create a new user ...@@ -147,7 +149,7 @@ Create a new user
Only root can perform this command. Only root can perform this command.
Delete a user Delete a user
============= -------------
.. code-block:: shell .. code-block:: shell
...@@ -187,8 +189,8 @@ To do this use the `-r` option ...@@ -187,8 +189,8 @@ To do this use the `-r` option
sudo userdel -rf username sudo userdel -rf username
create new group Create new group
================ ----------------
.. code-block:: shell .. code-block:: shell
...@@ -199,14 +201,14 @@ Only root can perform this command. ...@@ -199,14 +201,14 @@ Only root can perform this command.
To take into account new user and group you need to logout and login again. To take into account new user and group you need to logout and login again.
Delete a Group Delete a Group
============== --------------
.. code-block:: shell .. code-block:: shell
sudo groupdel groupname sudo groupdel groupname
Add an Existing User to a Group Add an Existing User to a Group
=============================== -------------------------------
.. code-block:: shell .. code-block:: shell
...@@ -231,7 +233,7 @@ It warns you only if the user or group doesn’t exist. ...@@ -231,7 +233,7 @@ It warns you only if the user or group doesn’t exist.
Add username to group1 and group2 in one command Add username to group1 and group2 in one command
Remove a User From a Group Remove a User From a Group
========================== --------------------------
.. code-block:: shell .. code-block:: shell
...@@ -239,15 +241,15 @@ Remove a User From a Group ...@@ -239,15 +241,15 @@ Remove a User From a Group
Check you identity Check you identity
================== ------------------
whoami whoami
------ """"""
To know your login To know your login
id id
-- ""
to know your to know your
...@@ -264,11 +266,11 @@ to know your ...@@ -264,11 +266,11 @@ to know your
Change password Change password
=============== ---------------
To change your password To change your password
----------------------- """""""""""""""""""""""
The command to use is `passwd` The command to use is `passwd`
...@@ -283,7 +285,7 @@ The command to use is `passwd` ...@@ -283,7 +285,7 @@ The command to use is `passwd`
To change the password of another user To change the password of another user
-------------------------------------- """"""""""""""""""""""""""""""""""""""
Only root/sudoer can change the password for another user. Only root/sudoer can change the password for another user.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment