05.09.2021, 10:46
Einen neuen Benutzer (der sudo verwenden darf) auf meinem Ubuntu 20.4 Server anlegen
Einloggen und Anweisung:
:~# adduser birne
Adding user `birne' ...
Adding new group `birne' (1001) ...
Adding new user `birne' (1001) with group `birne' ...
Creating home directory `/home/birne' ...
Copying files from `/etc/skel' ...
New password: uZhsnP8#[]ſ$s+.#PPosh45dw84f9+$v$895as]][[+.#[]ſ$s+.#PP
Retype new password: uZhsnP8#[]ſ$s+.#PPosh45dw84f9+$v$895as]][[+.#[]ſ$s+.#PP
passwd: password updated successfully
Changing the user information for birne
Enter the new value, or press ENTER for the default
Full Name []:
Room Number []:
Work Phone []:
Home Phone []:
Other []:
Is the information correct? [Y/n] Y
Hinzufügen des Benutzers zur Gruppe sudo:
:~# usermod -aG sudo birne
:~# exit
exit
Anmelden am Server:
:~$ ssh birne@IP-Adresse -pPortangabe
Are you sure you want to continue connecting (yes/no/[fingerprint])? yes
Warning: Permanently added '[IP-Adresse]ort' (ECDSA) to the list of known hosts.
birne@IP-Adresse's password:
Welcome to Ubuntu 20.04.3 LTS (GNU/Linux 5.4.0-81-generic x86_64)
* Documentation: https://help.ubuntu.com
* Management: https://landscape.canonical.com
* Support: https://ubuntu.com/advantage
System information as of Sun Sep 5 07:43:37 UTC 2021
System load: 0.0 Processes: 125
Usage of /: 3.3% of 195.86GB Users logged in: 1
Memory usage: 2% IPv4 address for enp8t0: IP
Swap usage: 0%
* Super-optimized for small spaces - read how we shrank the memory
footprint of MicroK8s to make it the smallest full K8s around.
https://ubuntu.com/blog/microk8s-memory-optimisation
0 updates can be applied immediately.
The programs included with the Ubuntu system are free software;
the exact distribution terms for each program are described in the
individual files in /usr/share/doc/*/copyright.
Ubuntu comes with ABSOLUTELY NO WARRANTY, to the extent permitted by
applicable law.
To run a command as administrator (user "root"), use "sudo <command>".
See "man sudo_root" for details.
Testen:
birne@Rechner:~$ su
Password:
root@Rechner:/home/birne# exit
exit
birne@Rechner:~$
Fertig!
Einloggen und Anweisung:
:~# adduser birne
Adding user `birne' ...
Adding new group `birne' (1001) ...
Adding new user `birne' (1001) with group `birne' ...
Creating home directory `/home/birne' ...
Copying files from `/etc/skel' ...
New password: uZhsnP8#[]ſ$s+.#PPosh45dw84f9+$v$895as]][[+.#[]ſ$s+.#PP
Retype new password: uZhsnP8#[]ſ$s+.#PPosh45dw84f9+$v$895as]][[+.#[]ſ$s+.#PP
passwd: password updated successfully
Changing the user information for birne
Enter the new value, or press ENTER for the default
Full Name []:
Room Number []:
Work Phone []:
Home Phone []:
Other []:
Is the information correct? [Y/n] Y
Hinzufügen des Benutzers zur Gruppe sudo:
:~# usermod -aG sudo birne
:~# exit
exit
Anmelden am Server:
:~$ ssh birne@IP-Adresse -pPortangabe
Are you sure you want to continue connecting (yes/no/[fingerprint])? yes
Warning: Permanently added '[IP-Adresse]ort' (ECDSA) to the list of known hosts.
birne@IP-Adresse's password:
Welcome to Ubuntu 20.04.3 LTS (GNU/Linux 5.4.0-81-generic x86_64)
* Documentation: https://help.ubuntu.com
* Management: https://landscape.canonical.com
* Support: https://ubuntu.com/advantage
System information as of Sun Sep 5 07:43:37 UTC 2021
System load: 0.0 Processes: 125
Usage of /: 3.3% of 195.86GB Users logged in: 1
Memory usage: 2% IPv4 address for enp8t0: IP
Swap usage: 0%
* Super-optimized for small spaces - read how we shrank the memory
footprint of MicroK8s to make it the smallest full K8s around.
https://ubuntu.com/blog/microk8s-memory-optimisation
0 updates can be applied immediately.
The programs included with the Ubuntu system are free software;
the exact distribution terms for each program are described in the
individual files in /usr/share/doc/*/copyright.
Ubuntu comes with ABSOLUTELY NO WARRANTY, to the extent permitted by
applicable law.
To run a command as administrator (user "root"), use "sudo <command>".
See "man sudo_root" for details.
Testen:
birne@Rechner:~$ su
Password:
root@Rechner:/home/birne# exit
exit
birne@Rechner:~$
Fertig!