Différences
Ci-dessous, les différences entre deux révisions de la page.
| Les deux révisions précédentesRévision précédenteProchaine révision | Révision précédente | ||
| elearning:workbooks:redhat:rh124:l105 [2024/09/25 08:09] – admin | elearning:workbooks:redhat:rh124:l105 [2024/10/08 09:03] (Version actuelle) – admin | ||
|---|---|---|---|
| Ligne 53: | Ligne 53: | ||
| * **/ | * **/ | ||
| - | ====/ | + | ====/ |
| < | < | ||
| - | [root@centos8 | + | [root@redhat9 |
| - | # Generated by authselect on Mon Apr 19 11:54:28 2021 | + | # Generated by authselect on Wed Sep 25 12:09:11 2024 |
| # Do not modify this file manually. | # Do not modify this file manually. | ||
| Ligne 78: | Ligne 78: | ||
| # | # | ||
| - | passwd: | + | passwd: |
| - | group: | + | group: |
| netgroup: | netgroup: | ||
| automount: | automount: | ||
| services: | services: | ||
| - | ... | + | |
| - | shadow: | + | # Included from / |
| - | ... | + | |
| + | # | ||
| + | # / | ||
| + | # | ||
| + | # Name Service Switch config file. This file should be | ||
| + | # sorted with the most-used services at the beginning. | ||
| + | # | ||
| + | # Valid databases are: aliases, ethers, group, gshadow, hosts, | ||
| + | # initgroups, netgroup, networks, passwd, protocols, publickey, | ||
| + | # rpc, services, and shadow. | ||
| + | # | ||
| + | # Valid service provider entries include (in alphabetical order): | ||
| + | # | ||
| + | # | ||
| + | # | ||
| + | # | ||
| + | # | ||
| + | # | ||
| + | # | ||
| + | # See `info libc 'NSS Basics' | ||
| + | # | ||
| + | # Commonly used alternative service providers (may need installation): | ||
| + | # | ||
| + | # | ||
| + | # | ||
| + | # | ||
| + | # | ||
| + | # | ||
| + | # sss Use System Security Services Daemon (sssd) | ||
| + | # | ||
| + | # | ||
| + | # | ||
| + | # | ||
| + | # | ||
| + | # Notes: | ||
| + | # | ||
| + | # ' | ||
| + | # come before ' | ||
| + | # | ||
| + | # WARNING: Running nscd with a secondary caching service like sssd may | ||
| + | # lead to unexpected behaviour, especially with how long | ||
| + | # entries are cached. | ||
| + | # | ||
| + | # Installation instructions: | ||
| + | # | ||
| + | # To use ' | ||
| + | # libnss_db.so.*), and place the ' | ||
| + | # you want to be looked up first in the databases, like this: | ||
| + | # | ||
| + | # passwd: | ||
| + | # shadow: | ||
| + | # group: | ||
| + | |||
| + | # In order of likelihood of use to accelerate lookup. | ||
| + | shadow: | ||
| + | hosts: | ||
| + | |||
| + | aliases: | ||
| + | ethers: | ||
| + | gshadow: | ||
| + | # Allow initgroups to default to the setting for group. | ||
| + | # initgroups: files | ||
| + | networks: | ||
| + | protocols: | ||
| + | publickey: | ||
| + | rpc: files | ||
| </ | </ | ||
| Ligne 105: | Ligne 170: | ||
| < | < | ||
| - | [root@centos8 | + | [root@redhat9 |
| trainee: | trainee: | ||
| </ | </ | ||
| Ligne 112: | Ligne 177: | ||
| < | < | ||
| - | [root@centos8 | + | [root@redhat9 |
| mail:x:12: | mail:x:12: | ||
| </ | </ | ||
| Ligne 119: | Ligne 184: | ||
| < | < | ||
| - | [root@centos8 | + | [root@redhat9 |
| root: | root: | ||
| bin: | bin: | ||
| Ligne 133: | Ligne 198: | ||
| ftp: | ftp: | ||
| nobody: | nobody: | ||
| - | dbus: | ||
| systemd-coredump: | systemd-coredump: | ||
| - | systemd-resolve:x:193:193:systemd Resolver:/:/ | + | dbus:x:81:81:System message bus:/:/ |
| - | tss: | + | |
| polkitd: | polkitd: | ||
| - | unbound:x:997:994:Unbound DNS resolver:/etc/unbound:/ | + | avahi: |
| - | libstoragemgmt: | + | tss: |
| - | cockpit-ws: | + | colord:x:997:993:User for colord:/ |
| - | sssd:x:994:990:User for sssd:/:/ | + | clevis: |
| - | setroubleshoot:x:993:989::/var/lib/setroubleshoot:/ | + | rtkit: |
| - | sshd: | + | sssd: |
| - | chrony:x:992:988::/ | + | geoclue:x:994:990:User for geoclue:/var/lib/geoclue:/ |
| + | libstoragemgmt: | ||
| + | systemd-oom: | ||
| + | setroubleshoot: | ||
| + | pipewire: | ||
| + | flatpak: | ||
| + | gdm: | ||
| + | cockpit-ws: | ||
| + | cockpit-wsinstance:x:982:981:User for cockpit-ws instances:/nonexisting:/ | ||
| + | gnome-initial-setup:x:981:980::/run/gnome-initial-setup/:/ | ||
| + | sshd: | ||
| + | chrony:x:980:979:chrony system user:/ | ||
| + | dnsmasq: | ||
| tcpdump: | tcpdump: | ||
| trainee: | trainee: | ||
| - | cockpit-wsinstance: | ||
| - | rngd: | ||
| - | gluster: | ||
| - | qemu: | ||
| - | rpc: | ||
| - | rpcuser: | ||
| - | saslauth: | ||
| - | radvd: | ||
| - | dnsmasq: | ||
| </ | </ | ||
| Ligne 163: | Ligne 229: | ||
| < | < | ||
| - | [root@centos8 | + | [root@redhat9 |
| root:x:0: | root:x:0: | ||
| bin:x:1: | bin:x:1: | ||
| Ligne 188: | Ligne 254: | ||
| users: | users: | ||
| nobody: | nobody: | ||
| - | dbus:x:81: | ||
| utmp:x:22: | utmp:x:22: | ||
| utempter: | utempter: | ||
| input: | input: | ||
| - | kvm:x:36:qemu | + | kvm:x:36: |
| render: | render: | ||
| systemd-journal: | systemd-journal: | ||
| systemd-coredump: | systemd-coredump: | ||
| - | systemd-resolve:x:193: | + | dbus:x:81: |
| - | tss:x:59: | + | |
| polkitd: | polkitd: | ||
| printadmin: | printadmin: | ||
| - | unbound:x:994: | + | ssh_keys:x:994: |
| - | libstoragemgmt:x:993: | + | avahi: |
| - | ssh_keys:x:992: | + | tss: |
| - | cockpit-ws:x:991: | + | colord:x:993: |
| - | sssd: | + | clevis:x:992: |
| - | setroubleshoot:x:989: | + | rtkit:x:172: |
| + | sssd:x:991: | ||
| + | geoclue:x:990: | ||
| + | sgx:x:989: | ||
| + | libstoragemgmt: | ||
| + | systemd-oom: | ||
| + | setroubleshoot: | ||
| + | brlapi: | ||
| + | pipewire: | ||
| + | flatpak: | ||
| + | gdm:x:42: | ||
| + | cockpit-ws: | ||
| + | cockpit-wsinstance: | ||
| + | gnome-initial-setup: | ||
| sshd:x:74: | sshd:x:74: | ||
| - | chrony:x:988: | + | chrony:x:979: |
| slocate: | slocate: | ||
| + | dnsmasq: | ||
| tcpdump: | tcpdump: | ||
| trainee: | trainee: | ||
| - | cockpit-wsinstance: | ||
| - | rngd:x:986: | ||
| - | gluster: | ||
| - | qemu:x:107: | ||
| - | rpc:x:32: | ||
| - | rpcuser: | ||
| - | saslauth: | ||
| - | libvirt: | ||
| - | radvd:x:75: | ||
| - | dnsmasq: | ||
| screen: | screen: | ||
| </ | </ | ||
| <WRAP center round important 60%> | <WRAP center round important 60%> | ||
| - | **Important** : Notez que la valeur du GID du groupe root est toujours de 0. Notez que sous RHEL / CentOS 8, les GID des utilisateurs normaux commencent à **1000** et les GID des comptes système sont inclus entre 1 et 99 et entre 201 et 999. | + | **Important** : Notez que la valeur du GID du groupe root est toujours de 0. Notez que sous RHEL 9 les GID des utilisateurs normaux commencent à **1000** et les GID des comptes système sont inclus entre 1 et 99 et entre 201 et 999. |
| </ | </ | ||
| Ligne 238: | Ligne 306: | ||
| < | < | ||
| - | [root@centos8 | + | [root@redhat9 |
| root::: | root::: | ||
| bin::: | bin::: | ||
| Ligne 263: | Ligne 331: | ||
| users::: | users::: | ||
| nobody::: | nobody::: | ||
| - | dbus:!:: | ||
| utmp:!:: | utmp:!:: | ||
| utempter: | utempter: | ||
| input:!:: | input:!:: | ||
| - | kvm:!::qemu | + | kvm:!:: |
| render:!:: | render:!:: | ||
| systemd-journal: | systemd-journal: | ||
| systemd-coredump: | systemd-coredump: | ||
| - | systemd-resolve: | + | dbus:!:: |
| - | tss:!:: | + | |
| polkitd:!:: | polkitd:!:: | ||
| printadmin: | printadmin: | ||
| - | unbound:!:: | ||
| - | libstoragemgmt: | ||
| ssh_keys: | ssh_keys: | ||
| - | cockpit-ws:!:: | + | avahi:!:: |
| + | tss: | ||
| + | colord: | ||
| + | clevis: | ||
| + | rtkit:!:: | ||
| sssd:!:: | sssd:!:: | ||
| + | geoclue:!:: | ||
| + | sgx:!*:: | ||
| + | libstoragemgmt: | ||
| + | systemd-oom: | ||
| setroubleshoot: | setroubleshoot: | ||
| + | brlapi:!:: | ||
| + | pipewire: | ||
| + | flatpak:!:: | ||
| + | gdm:!:: | ||
| + | cockpit-ws: | ||
| + | cockpit-wsinstance: | ||
| + | gnome-initial-setup: | ||
| sshd:!:: | sshd:!:: | ||
| chrony:!:: | chrony:!:: | ||
| slocate:!:: | slocate:!:: | ||
| + | dnsmasq:!:: | ||
| tcpdump:!:: | tcpdump:!:: | ||
| trainee:!:: | trainee:!:: | ||
| - | cockpit-wsinstance: | ||
| - | rngd:!:: | ||
| - | gluster:!:: | ||
| - | qemu:!:: | ||
| - | rpc:!:: | ||
| - | rpcuser:!:: | ||
| - | saslauth: | ||
| - | libvirt:!:: | ||
| - | radvd:!:: | ||
| - | dnsmasq: | ||
| screen:!:: | screen:!:: | ||
| </ | </ | ||
| Ligne 309: | Ligne 379: | ||
| < | < | ||
| - | [root@centos8 | + | [root@redhat9 |
| - | [root@centos8 | + | [root@redhat9 |
| </ | </ | ||
| Ligne 335: | Ligne 405: | ||
| < | < | ||
| - | [root@centos8 | + | [root@redhat9 |
| root: | root: | ||
| bin: | bin: | ||
| Ligne 349: | Ligne 419: | ||
| ftp: | ftp: | ||
| nobody: | nobody: | ||
| - | dbus: | ||
| systemd-coredump: | systemd-coredump: | ||
| - | systemd-resolve:x:193:193:systemd Resolver:/:/ | + | dbus:x:81:81:System message bus:/:/ |
| - | tss: | + | |
| polkitd: | polkitd: | ||
| - | unbound:x:997:994:Unbound DNS resolver:/etc/unbound:/ | + | avahi: |
| - | libstoragemgmt: | + | tss: |
| - | cockpit-ws: | + | colord:x:997:993:User for colord:/ |
| - | sssd:x:994:990:User for sssd:/:/ | + | clevis: |
| - | setroubleshoot:x:993:989::/var/lib/setroubleshoot:/ | + | rtkit: |
| - | sshd: | + | sssd: |
| - | chrony:x:992:988::/ | + | geoclue:x:994:990:User for geoclue:/var/lib/geoclue:/ |
| + | libstoragemgmt: | ||
| + | systemd-oom: | ||
| + | setroubleshoot: | ||
| + | pipewire: | ||
| + | flatpak: | ||
| + | gdm: | ||
| + | cockpit-ws: | ||
| + | cockpit-wsinstance:x:982:981:User for cockpit-ws instances:/nonexisting:/ | ||
| + | gnome-initial-setup:x:981:980::/run/gnome-initial-setup/:/ | ||
| + | sshd: | ||
| + | chrony:x:980:979:chrony system user:/ | ||
| + | dnsmasq: | ||
| tcpdump: | tcpdump: | ||
| trainee: | trainee: | ||
| - | cockpit-wsinstance: | ||
| - | rngd: | ||
| - | gluster: | ||
| - | qemu: | ||
| - | rpc: | ||
| - | rpcuser: | ||
| - | saslauth: | ||
| - | radvd: | ||
| - | dnsmasq: | ||
| </ | </ | ||
| <WRAP center round important 60%> | <WRAP center round important 60%> | ||
| - | **Important** : Notez que la valeur de l'UID de root est toujours de 0. Notez que sous RHEL / CentOS 8, les UID des utilisateurs normaux commencent à **1000** et les UID des comptes système sont inclus entre 1 et 99 et entre 201 et 999. | + | **Important** : Notez que la valeur de l'UID de root est toujours de 0. Notez que sous RHEL 9, les UID des utilisateurs normaux commencent à **1000** et les UID des comptes système sont inclus entre 1 et 99 et entre 201 et 999. |
| </ | </ | ||
| Ligne 391: | Ligne 462: | ||
| < | < | ||
| - | [root@centos8 | + | [root@redhat9 |
| - | root:$6$9Sa1IumuSlJc8EBg$8jGU/4xGCXy64QuBSMyKOC6/FWs41rdY5tzF5/7yHG6FRS2Y2eOJIcst1JbcvNoqMPDU4lpZ6THW97jwGuQNf1:: | + | root:$6$AbCPA3HFsB/ |
| - | bin:*:18264: | + | bin:*:19347: |
| - | daemon:*:18264: | + | daemon:*:19347: |
| - | adm:*:18264: | + | adm:*:19347: |
| - | lp:*:18264: | + | lp:*:19347: |
| - | sync:*:18264: | + | sync:*:19347: |
| - | shutdown:*:18264: | + | shutdown:*:19347: |
| - | halt:*:18264: | + | halt:*:19347: |
| - | mail:*:18264: | + | mail:*:19347: |
| - | operator:*:18264: | + | operator:*:19347: |
| - | games:*:18264: | + | games:*:19347: |
| - | ftp:*:18264: | + | ftp:*:19347: |
| - | nobody:*:18264: | + | nobody:*:19347: |
| - | dbus:!!:18390:::::: | + | systemd-coredump:!!:19649:::::: |
| - | systemd-coredump:!!:18390:::::: | + | dbus:!!:19649:::::: |
| - | systemd-resolve:!!:18390:::::: | + | polkitd:!!:19649:::::: |
| - | tss:!!:18390:::::: | + | avahi:!!:19649:::::: |
| - | polkitd:!!:18390:::::: | + | tss:!!:19649:::::: |
| - | unbound:!!:18390:::::: | + | colord:!!:19649:::::: |
| - | libstoragemgmt:!!:18390:::::: | + | clevis:!!:19649:::::: |
| - | cockpit-ws:!!:18390:::::: | + | rtkit:!!:19649:::::: |
| - | sssd:!!:18390:::::: | + | sssd:!!:19649:::::: |
| - | setroubleshoot:!!:18390:::::: | + | geoclue:!!:19649:::::: |
| - | sshd:!!:18390:::::: | + | libstoragemgmt:!*:19649:::::: |
| - | chrony:!!:18390:::::: | + | systemd-oom:!*:19649:::::: |
| - | tcpdump:!!:18390:::::: | + | setroubleshoot:!!:19649:::::: |
| - | trainee:$6$p4HOAHX7UAzw1nQh$VZL12Lye.mR8v1IP2e4f0PCW8DzHj2MMAaA7r2ZLoTnQN7Ziskce3bo/ | + | pipewire:!!:19649:::::: |
| - | cockpit-wsinstance:!!:18736:::::: | + | flatpak:!!:19649:::::: |
| - | rngd:!!:18736:::::: | + | gdm:!!:19649:::::: |
| - | gluster:!!:18736:::::: | + | cockpit-ws:!!:19649:::::: |
| - | qemu:!!:18736:::::: | + | cockpit-wsinstance:!!:19649:::::: |
| - | rpc:!!:18736:0:99999:7::: | + | gnome-initial-setup:!!:19649:::::: |
| - | rpcuser:!!:18736:::::: | + | sshd:!!:19649:::::: |
| - | saslauth:!!:18736:::::: | + | chrony:!!:19649:::::: |
| - | radvd:!!:18736:::::: | + | dnsmasq:!!:19649:::::: |
| - | dnsmasq:!!:18736:::::: | + | tcpdump:!!:19649:::::: |
| + | trainee: | ||
| </ | </ | ||
| Ligne 447: | Ligne 519: | ||
| < | < | ||
| - | [root@centos8 | + | [root@redhat9 |
| - | user ' | + | [root@redhat9 ~]# |
| - | user ' | + | |
| - | user ' | + | |
| - | user ' | + | |
| - | pwck: no changes | + | |
| </ | </ | ||
| <WRAP center round important 60%> | <WRAP center round important 60%> | ||
| - | **Important** : Les erreurs | + | **Important** : Les erreurs |
| </ | </ | ||
| Ligne 478: | Ligne 546: | ||
| < | < | ||
| - | [root@centos8 | + | [root@redhat9 |
| Usage: groupadd [options] GROUP | Usage: groupadd [options] GROUP | ||
| Ligne 492: | Ligne 560: | ||
| -r, --system | -r, --system | ||
| -R, --root CHROOT_DIR | -R, --root CHROOT_DIR | ||
| - | -P, --prefix | + | -P, --prefix |
| + | -U, --users USERS list of user members of this group | ||
| </ | </ | ||
| Ligne 510: | Ligne 579: | ||
| < | < | ||
| - | [root@centos8 | + | [root@redhat9 |
| Usage: groupdel [options] GROUP | Usage: groupdel [options] GROUP | ||
| Ligne 527: | Ligne 596: | ||
| < | < | ||
| - | [root@centos8 | + | [root@redhat9 |
| Usage: groupmod [options] GROUP | Usage: groupmod [options] GROUP | ||
| Options: | Options: | ||
| + | -a, --append | ||
| + | without removing existing user members | ||
| -g, --gid GID | -g, --gid GID | ||
| -h, --help | -h, --help | ||
| Ligne 539: | Ligne 610: | ||
| -R, --root CHROOT_DIR | -R, --root CHROOT_DIR | ||
| -P, --prefix PREFIX_DIR | -P, --prefix PREFIX_DIR | ||
| + | -U, --users USERS list of user members of this group | ||
| </ | </ | ||
| Ligne 548: | Ligne 620: | ||
| < | < | ||
| - | [root@centos8 | + | [root@redhat9 |
| Usage: newgrp [-] [group] | Usage: newgrp [-] [group] | ||
| </ | </ | ||
| Ligne 559: | Ligne 631: | ||
| < | < | ||
| - | [root@centos8 | + | [root@redhat9 |
| Usage: gpasswd [option] GROUP | Usage: gpasswd [option] GROUP | ||
| Ligne 597: | Ligne 669: | ||
| < | < | ||
| - | [root@centos8 | + | [root@redhat9 |
| Usage: useradd [options] LOGIN | Usage: useradd [options] LOGIN | ||
| | | ||
| Ligne 603: | Ligne 675: | ||
| Options: | Options: | ||
| + | --badname | ||
| -b, --base-dir BASE_DIR | -b, --base-dir BASE_DIR | ||
| new account | new account | ||
| + | --btrfs-subvolume-home | ||
| -c, --comment COMMENT | -c, --comment COMMENT | ||
| -d, --home-dir HOME_DIR | -d, --home-dir HOME_DIR | ||
| Ligne 650: | Ligne 724: | ||
| < | < | ||
| - | [root@centos8 | + | [root@redhat9 |
| Usage: userdel [options] LOGIN | Usage: userdel [options] LOGIN | ||
| Ligne 675: | Ligne 749: | ||
| < | < | ||
| - | [root@centos8 | + | [root@redhat9 |
| Usage: usermod [options] LOGIN | Usage: usermod [options] LOGIN | ||
| Options: | Options: | ||
| + | -b, --badname | ||
| -c, --comment COMMENT | -c, --comment COMMENT | ||
| -d, --home HOME_DIR | -d, --home HOME_DIR | ||
| Ligne 719: | Ligne 794: | ||
| < | < | ||
| - | [root@centos8 | + | [root@redhat9 |
| Usage: passwd [OPTION...] < | Usage: passwd [OPTION...] < | ||
| -k, --keep-tokens | -k, --keep-tokens | ||
| Ligne 750: | Ligne 825: | ||
| < | < | ||
| - | [root@centos8 | + | [root@redhat9 |
| Usage: chage [options] LOGIN | Usage: chage [options] LOGIN | ||
| Ligne 757: | Ligne 832: | ||
| -E, --expiredate EXPIRE_DATE | -E, --expiredate EXPIRE_DATE | ||
| -h, --help | -h, --help | ||
| + | -i, --iso8601 | ||
| -I, --inactive INACTIVE | -I, --inactive INACTIVE | ||
| to INACTIVE | to INACTIVE | ||
| Ligne 773: | Ligne 849: | ||
| < | < | ||
| - | [root@centos8 | + | [root@redhat9 |
| # useradd defaults file | # useradd defaults file | ||
| GROUP=100 | GROUP=100 | ||
| Ligne 798: | Ligne 874: | ||
| < | < | ||
| - | [root@centos8 | + | [root@redhat9 |
| GROUP=100 | GROUP=100 | ||
| HOME=/home | HOME=/home | ||
| Ligne 811: | Ligne 887: | ||
| < | < | ||
| - | [root@centos8 | + | [root@redhat9 |
| total 24 | total 24 | ||
| - | drwxr-xr-x. | + | drwxr-xr-x. |
| - | drwxr-xr-x. | + | drwxr-xr-x. |
| - | -rw-r--r--. | + | -rw-r--r--. |
| - | -rw-r--r--. | + | -rw-r--r--. |
| - | -rw-r--r--. | + | -rw-r--r--. |
| + | drwxr-xr-x. | ||
| </ | </ | ||
| <WRAP center round important 60%> | <WRAP center round important 60%> | ||
| - | **Important** : Notez que sous RHEL / CentOS | + | **Important** : Notez que sous RHEL 9 le fichier **.bash_profile** remplace le fichier **.profile**. |
| </ | </ | ||
| Ligne 828: | Ligne 905: | ||
| < | < | ||
| - | [root@centos8 | + | [root@redhat9 |
| uid=1000(trainee) gid=1000(trainee) groups=1000(trainee) | uid=1000(trainee) gid=1000(trainee) groups=1000(trainee) | ||
| </ | </ | ||
| Ligne 835: | Ligne 912: | ||
| < | < | ||
| - | [root@centos8 | + | [root@redhat9 |
| trainee : trainee | trainee : trainee | ||
| </ | </ | ||
| Ligne 844: | Ligne 921: | ||
| ... | ... | ||
| # | # | ||
| - | # Min/max values for automatic uid selection in useradd | + | # Min/max values for automatic uid selection in useradd(8) |
| # | # | ||
| UID_MIN | UID_MIN | ||
| Ligne 851: | Ligne 928: | ||
| SYS_UID_MIN | SYS_UID_MIN | ||
| SYS_UID_MAX | SYS_UID_MAX | ||
| + | # Extra per user uids | ||
| + | SUB_UID_MIN | ||
| + | SUB_UID_MAX | ||
| + | SUB_UID_COUNT | ||
| # | # | ||
| - | # Min/max values for automatic gid selection in groupadd | + | # Min/max values for automatic gid selection in groupadd(8) |
| # | # | ||
| GID_MIN | GID_MIN | ||
| Ligne 860: | Ligne 941: | ||
| SYS_GID_MIN | SYS_GID_MIN | ||
| SYS_GID_MAX | SYS_GID_MAX | ||
| + | # Extra per user group ids | ||
| + | SUB_GID_MIN | ||
| + | SUB_GID_MAX | ||
| + | SUB_GID_COUNT | ||
| ... | ... | ||
| </ | </ | ||
| Ligne 868: | Ligne 953: | ||
| < | < | ||
| - | [root@centos8 | + | [root@redhat9 |
| </ | </ | ||
| Ligne 874: | Ligne 959: | ||
| < | < | ||
| - | [root@centos8 | + | [root@redhat9 |
| - | [root@centos8 | + | |
| - | [root@centos8 | + | [root@redhat9 |
| + | |||
| + | [root@redhat9 | ||
| </ | </ | ||
| Ligne 882: | Ligne 969: | ||
| < | < | ||
| - | [root@centos8 | + | [root@redhat9 |
| - | gluster:x:989:985:GlusterFS daemons:/run/gluster:/ | + | gnome-initial-setup:x:981:980::/run/gnome-initial-setup/ |
| - | qemu:x:107:107:qemu user:/:/ | + | sshd:x:74:74:Privilege-separated SSH:/usr/ |
| - | rpc:x:32:32:Rpcbind Daemon:/var/lib/rpcbind:/ | + | chrony:x:980:979:chrony system user:/var/lib/chrony:/ |
| - | rpcuser:x:29:29:RPC Service User:/var/lib/nfs:/ | + | dnsmasq:x:979:978:Dnsmasq DHCP and DNS server:/var/lib/dnsmasq:/ |
| - | saslauth:x:988:76:Saslauthd user:/run/ | + | tcpdump:x:72:72::/:/ |
| - | radvd:x:75:75:radvd user:/:/sbin/ | + | trainee:x:1000:1000:trainee:/home/trainee:/bin/bash |
| - | dnsmasq: | + | |
| fenestros2: | fenestros2: | ||
| fenestros3: | fenestros3: | ||
| Ligne 898: | Ligne 984: | ||
| < | < | ||
| - | [root@centos8 | + | [root@redhat9 |
| - | rpc:x:32: | + | chrony:x:979: |
| - | rpcuser:x:29: | + | slocate:x:21: |
| - | saslauth:x:76: | + | dnsmasq:x:978: |
| - | libvirt:x:984: | + | tcpdump:x:72: |
| - | radvd: | + | trainee:x:1000: |
| - | dnsmasq:x:983: | + | |
| screen: | screen: | ||
| groupe1: | groupe1: | ||
| Ligne 914: | Ligne 999: | ||
| < | < | ||
| - | [root@centos8 | + | [root@redhat9 |
| Changing the password for group groupe3 | Changing the password for group groupe3 | ||
| New Password: fenestros | New Password: fenestros | ||
| - | Re-enter new password: fenestros | + | Re-enter new password: fenestros |
| </ | </ | ||
| Ligne 927: | Ligne 1012: | ||
| < | < | ||
| - | [root@centos8 | + | [root@redhat9 |
| - | rpc:!:: | + | chrony:!:: |
| - | rpcuser:!:: | + | slocate:!:: |
| - | saslauth:!:: | + | dnsmasq:!:: |
| - | libvirt:!:: | + | tcpdump:!:: |
| - | radvd:!:: | + | trainee:!:: |
| - | dnsmasq:!!:: | + | |
| screen:!:: | screen:!:: | ||
| groupe1: | groupe1: | ||
| groupe2:!:: | groupe2:!:: | ||
| - | groupe3:$6$c0nWuaO.7BveY$qZ907ORU.vEOhlYcka.VCL1Im0obgxJg8g3SvWnEA3YiZc9TB3CXEU/ | + | groupe3:$6$EjmZ4ucT6i/ |
| </ | </ | ||
| Ligne 947: | Ligne 1031: | ||
| < | < | ||
| - | [root@centos8 | + | [root@redhat9 |
| </ | </ | ||
| Ligne 953: | Ligne 1037: | ||
| < | < | ||
| - | [root@centos8 | + | [root@redhat9 |
| - | rpc:!:: | + | chrony:!:: |
| - | rpcuser:!:: | + | slocate:!:: |
| - | saslauth:!:: | + | dnsmasq:!:: |
| - | libvirt:!:: | + | tcpdump:!:: |
| - | radvd:!:: | + | trainee:!:: |
| - | dnsmasq:!!:: | + | |
| screen:!:: | screen:!:: | ||
| + | apache:!:: | ||
| groupe1: | groupe1: | ||
| groupe2:!:: | groupe2:!:: | ||
| - | groupe3:$6$c0nWuaO.7BveY$qZ907ORU.vEOhlYcka.VCL1Im0obgxJg8g3SvWnEA3YiZc9TB3CXEU/ | + | groupe3:$6$EjmZ4ucT6i/ |
| </ | </ | ||
| Ligne 973: | Ligne 1057: | ||
| < | < | ||
| - | [root@centos8 | + | [root@redhat9 |
| groupdel: cannot remove the primary group of user ' | groupdel: cannot remove the primary group of user ' | ||
| </ | </ | ||
| Ligne 984: | Ligne 1068: | ||
| < | < | ||
| - | [root@centos8 | + | [root@redhat9 |
| </ | </ | ||
| Ligne 990: | Ligne 1074: | ||
| < | < | ||
| - | [root@centos8 | + | [root@redhat9 |
| </ | </ | ||
| Ligne 999: | Ligne 1083: | ||
| Le fait de supprimer un utilisateur **sans** l' | Le fait de supprimer un utilisateur **sans** l' | ||
| - | Saisissez la commande suivante sous RHEL / CentOS 8 pour vérifier : | + | Saisissez la commande suivante sous RHEL 9 pour vérifier : |
| < | < | ||
| - | [root@centos8 | + | [root@redhat9 |
| - | drwx------. | + | drwx------. |
| </ | </ | ||
| Ligne 1009: | Ligne 1093: | ||
| < | < | ||
| - | [root@centos8 | + | [root@redhat9 |
| find: ‘/ | find: ‘/ | ||
| - | [root@centos8 | + | |
| + | [root@redhat9 | ||
| ls: cannot access '/ | ls: cannot access '/ | ||
| </ | </ | ||
| Ligne 1022: | Ligne 1107: | ||
| < | < | ||
| - | [root@centos8 | + | [root@redhat9 |
| Changing password for user fenestros1. | Changing password for user fenestros1. | ||
| New password: fenestros1 | New password: fenestros1 | ||
| Ligne 1028: | Ligne 1113: | ||
| Retype new password: fenestros1 | Retype new password: fenestros1 | ||
| passwd: all authentication tokens updated successfully. | passwd: all authentication tokens updated successfully. | ||
| - | [root@centos8 | + | |
| + | [root@redhat9 | ||
| Changing password for user fenestros2. | Changing password for user fenestros2. | ||
| New password: fenestros2 | New password: fenestros2 | ||
| Ligne 1047: | Ligne 1133: | ||
| < | < | ||
| - | [root@centos8 | + | [root@redhat9 |
| - | total 88 | + | total 128 |
| - | -rw-r--r--. 1 root root 272 May 11 2019 atd | + | -rw-r--r--. 1 root root 272 Apr 4 2022 atd |
| - | -rw-r--r--. 1 root root 192 Jul 21 2020 chfn | + | -rw-r--r--. 1 root root 192 Feb 8 2024 chfn |
| - | -rw-r--r--. 1 root root 192 Jul 21 2020 chsh | + | -rw-r--r--. 1 root root 192 Feb 8 2024 chsh |
| - | -rw-r--r--. 1 root root 997 Aug 19 2020 cockpit | + | -rw-r--r--. 1 root root 910 Apr 2 05:27 cockpit |
| - | -rw-r--r--. 1 root root 232 Jun 15 2020 config-util | + | -rw-r--r--. 1 root root 232 Feb 12 2024 config-util |
| - | -rw-r--r--. 1 root root 328 Nov 8 2019 crond | + | -rw-r--r--. 1 root root 322 Feb 15 2019 crond |
| - | lrwxrwxrwx. 1 root root 32 Apr 19 11:54 fingerprint-auth -> / | + | -r--r--r--. 1 root root 146 Jun 19 11:00 cups |
| - | -rw-r--r--. 1 root root 715 Jul 21 2020 login | + | lrwxrwxrwx. 1 root root 32 Sep 25 12:09 fingerprint-auth -> / |
| - | -rw-r--r--. 1 root root 154 Jun 15 2020 other | + | -rw-r--r--. 1 root root 622 Jul 23 2021 gdm-autologin |
| - | -rw-r--r--. 1 root root 168 Apr 6 2020 passwd | + | -rw-r--r--. 1 root root 561 Jul 23 2021 gdm-fingerprint |
| - | lrwxrwxrwx. 1 root root 29 Apr 19 11:54 password-auth -> / | + | -rw-r--r--. 1 root root 307 Jul 23 2021 gdm-launch-environment |
| - | -rw-r--r--. 1 root root 155 Apr 9 2020 polkit-1 | + | -rw-r--r--. 1 root root 787 Jul 23 2021 gdm-password |
| - | lrwxrwxrwx. 1 root root 25 Apr 19 11:54 postlogin -> / | + | -rw-r--r--. 1 root root 800 Jul 23 2021 gdm-pin |
| - | -rw-r--r--. 1 root root 640 Jul 21 2020 remote | + | -rw-r--r--. 1 root root 553 Jul 23 2021 gdm-smartcard |
| - | -rw-r--r--. 1 root root 143 Jul 21 2020 runuser | + | -rw-r--r--. 1 root root 676 Feb 8 2024 login |
| - | -rw-r--r--. 1 root root 138 Jul 21 2020 runuser-l | + | -rw-r--r--. 1 root root 154 Feb 12 2024 other |
| - | -rw-r--r--. 1 root root 36 Jul 20 2019 screen | + | -rw-r--r--. 1 root root 168 Aug 10 2021 passwd |
| - | lrwxrwxrwx. 1 root root 30 Apr 19 11:54 smartcard-auth -> / | + | lrwxrwxrwx. 1 root root 29 Sep 25 12:09 password-auth -> / |
| - | -rw-r--r--. 1 root root 727 Apr 26 2020 sshd | + | -rw-r--r--. 1 root root 155 Dec 5 2022 polkit-1 |
| - | -rw-r--r--. 1 root root 214 Sep 17 2020 sssd-shadowutils | + | lrwxrwxrwx. 1 root root 25 Sep 25 12:09 postlogin -> / |
| - | -rw-r--r--. 1 root root 566 Jul 21 2020 su | + | -rw-r--r--. 1 root root 640 Feb 8 2024 remote |
| - | -rw-r--r--. 1 root root 154 Jan 26 16:58 sudo | + | -rw-r--r--. 1 root root 143 Feb 8 2024 runuser |
| - | -rw-r--r--. 1 root root 178 Jan 26 16:58 sudo-i | + | -rw-r--r--. 1 root root 138 Feb 8 2024 runuser-l |
| - | -rw-r--r--. 1 root root 137 Jul 21 2020 su-l | + | -rw-r--r--. 1 root root 36 Jan 4 2022 screen |
| - | lrwxrwxrwx. 1 root root 27 Apr 19 11:54 system-auth -> / | + | lrwxrwxrwx. 1 root root 30 Sep 25 12:09 smartcard-auth -> / |
| - | -rw-r--r--. 1 root root 248 Apr 7 16:55 systemd-user | + | -rw-r--r--. 1 root root 727 Jul 3 11:56 sshd |
| - | -rw-r--r--. 1 root root 84 Jul 20 2020 vlock | + | -rw-r--r--. 1 root root 214 Jan 12 2024 sssd-shadowutils |
| + | -rw-r--r--. 1 root root 566 Feb 8 2024 su | ||
| + | -rw-r--r--. 1 root root 97 Jan 18 2024 subscription-manager | ||
| + | -rw-r--r--. 1 root root 154 Jan 24 2024 sudo | ||
| + | -rw-r--r--. 1 root root 178 Jan 24 2024 sudo-i | ||
| + | -rw-r--r--. 1 root root 137 Feb 8 2024 su-l | ||
| + | lrwxrwxrwx. 1 root root 27 Sep 25 12:09 system-auth -> / | ||
| + | -rw-r--r--. 1 root root 414 Jul 18 13:00 systemd-user | ||
| + | -rw-r--r--. 1 root root 84 Jun 21 2023 vlock | ||
| + | -rw-r--r--. 1 root root 159 Dec 4 2023 vmtoolsd | ||
| + | -rw-r--r--. 1 root root 163 Jan 19 2024 xserver | ||
| </ | </ | ||
| Ligne 1081: | Ligne 1177: | ||
| < | < | ||
| - | [root@centos8 | + | [root@redhat9 |
| - | total 1880 | + | total 1724 |
| - | -rwxr-xr-x. 1 root root | + | -rwxr-xr-x. 1 root root |
| - | -rwxr-xr-x. 1 root root | + | -rwxr-xr-x. 1 root root |
| - | -rwxr-xr-x. 1 root root | + | -rwxr-xr-x. 1 root root |
| - | -rwxr-xr-x. 1 root root | + | -rwxr-xr-x. 1 root root |
| - | -rwxr-xr-x. 1 root root | + | -rwxr-xr-x. 1 root root |
| - | -rwxr-xr-x. 1 root root | + | -rwxr-xr-x. 1 root root |
| - | -rwxr-xr-x. 1 root root | + | -rwxr-xr-x. 1 root root |
| - | -rwxr-xr-x. 1 root root 7472 Jun 15 2020 pam_deny.so | + | -rwxr-xr-x. 1 root root |
| - | -rwxr-xr-x. 1 root root | + | -rwxr-xr-x. 1 root root |
| - | -rwxr-xr-x. 1 root root | + | -rwxr-xr-x. 1 root root |
| - | -rwxr-xr-x. 1 root root | + | -rwxr-xr-x. 1 root root |
| - | -rwxr-xr-x. 1 root root | + | -rwxr-xr-x. 1 root root |
| - | -rwxr-xr-x. 1 root root | + | drwxr-xr-x. 2 root root |
| - | drwxr-xr-x. 2 root root | + | -rwxr-xr-x. 1 root root |
| - | -rwxr-xr-x. 1 root root | + | -rwxr-xr-x. 1 root root |
| - | -rwxr-xr-x. 1 root root | + | -rwxr-xr-x. 1 root root |
| - | -rwxr-xr-x. 1 root root | + | -rwxr-xr-x. 1 root root |
| - | -rwxr-xr-x. 1 root root | + | -rwxr-xr-x. 1 root root |
| - | -rwxr-xr-x. 1 root root | + | -rwxr-xr-x. 1 root root 19456 Feb 12 2024 pam_group.so |
| - | -rwxr-xr-x. 1 root root | + | -rwxr-xr-x. 1 root root |
| - | -rwxr-xr-x. 1 root root | + | -rwxr-xr-x. 1 root root |
| - | -rwxr-xr-x. 1 root root | + | -rwxr-xr-x. 1 root root |
| - | -rwxr-xr-x. 1 root root | + | -rwxr-xr-x. 1 root root |
| - | -rwxr-xr-x. 1 root root | + | -rwxr-xr-x. 1 root root |
| - | -rwxr-xr-x. 1 root root | + | -rwxr-xr-x. 1 root root |
| - | -rwxr-xr-x. 1 root root | + | -rwxr-xr-x. 1 root root |
| - | -rwxr-xr-x. 1 root root | + | -rwxr-xr-x. 1 root root |
| - | -rwxr-xr-x. 1 root root | + | -rwxr-xr-x. 1 root root |
| - | -rwxr-xr-x. 1 root root | + | -rwxr-xr-x. 1 root root |
| - | -rwxr-xr-x. 1 root root | + | -rwxr-xr-x. 1 root root |
| - | -rwxr-xr-x. 1 root root | + | -rwxr-xr-x. 1 root root |
| - | -rwxr-xr-x. 1 root root 7560 Jun 15 2020 pam_permit.so | + | -rwxr-xr-x. 1 root root |
| - | -rwxr-xr-x. 1 root root 7536 Jun 15 2020 pam_postgresok.so | + | -rwxr-xr-x. 1 root root |
| - | -rwxr-xr-x. 1 root root | + | -rwxr-xr-x. 1 root root |
| - | -rwxr-xr-x. 1 root root | + | -rwxr-xr-x. 1 root root |
| - | -rwxr-xr-x. 1 root root | + | -rwxr-xr-x. 1 root root |
| - | -rwxr-xr-x. 1 root root | + | -rwxr-xr-x. 1 root root |
| - | -rwxr-xr-x. 1 root root | + | -rwxr-xr-x. 1 root root |
| - | lrwxrwxrwx. 1 root root | + | lrwxrwxrwx. 1 root root |
| - | -rwxr-xr-x. 1 root root | + | -rwxr-xr-x. 1 root root |
| - | -rwxr-xr-x. 1 root root | + | -rwxr-xr-x. 1 root root |
| - | -rwxr-xr-x. 1 root root | + | -rwxr-xr-x. 1 root root |
| - | -rwxr-xr-x. 1 root root | + | -rwxr-xr-x. 1 root root 15328 Feb 12 2024 pam_shells.so |
| - | -rwxr-xr-x. 1 root root | + | -rwxr-xr-x. 1 root root |
| - | -rwxr-xr-x. 1 root root | + | -rwxr-xr-x. 1 root root |
| - | -rwxr-xr-x. 1 root root | + | -rwxr-xr-x. 1 root root 69264 May 17 03:59 pam_sss.so |
| - | -rwxr-xr-x. 1 root root 906728 Apr 7 16:56 pam_systemd.so | + | -rwxr-xr-x. 1 root root |
| - | -rwxr-xr-x. 1 root root | + | -rwxr-xr-x. 1 root root |
| - | -rwxr-xr-x. 1 root root | + | -rwxr-xr-x. 1 root root 514384 Jul 18 13:01 pam_systemd.so |
| - | -rwxr-xr-x. 1 root root | + | -rwxr-xr-x. 1 root root |
| - | -rwxr-xr-x. 1 root root | + | -rwxr-xr-x. 1 root root |
| - | lrwxrwxrwx. 1 root root | + | -rwxr-xr-x. 1 root root |
| - | lrwxrwxrwx. 1 root root | + | -rwxr-xr-x. 1 root root |
| - | lrwxrwxrwx. 1 root root | + | lrwxrwxrwx. 1 root root |
| - | lrwxrwxrwx. 1 root root | + | lrwxrwxrwx. 1 root root |
| - | -rwxr-xr-x. 1 root root | + | lrwxrwxrwx. 1 root root |
| - | -rwxr-xr-x. 1 root root | + | lrwxrwxrwx. 1 root root |
| - | -rwxr-xr-x. 1 root root | + | -rwxr-xr-x. 1 root root |
| - | -rwxr-xr-x. 1 root root 7576 Jun 15 2020 pam_warn.so | + | -rwxr-xr-x. 1 root root |
| - | -rwxr-xr-x. 1 root root | + | -rwxr-xr-x. 1 root root |
| - | -rwxr-xr-x. 1 root root | + | -rwxr-xr-x. 1 root root |
| + | -rwxr-xr-x. 1 root root | ||
| + | -rwxr-xr-x. 1 root root | ||
| </ | </ | ||
| Ligne 1161: | Ligne 1259: | ||
| < | < | ||
| - | [root@centos8 | + | [root@redhat9 |
| #%PAM-1.0 | #%PAM-1.0 | ||
| auth | auth | ||
| Ligne 1171: | Ligne 1269: | ||
| session | session | ||
| session | session | ||
| - | session | ||
| # pam_selinux.so open should only be followed by sessions to be executed in the user context | # pam_selinux.so open should only be followed by sessions to be executed in the user context | ||
| session | session | ||
| Ligne 1212: | Ligne 1309: | ||
| < | < | ||
| - | [root@centos8 | + | [root@redhat9 |
| #%PAM-1.0 | #%PAM-1.0 | ||
| auth | auth | ||
| Ligne 1227: | Ligne 1324: | ||
| < | < | ||
| - | [root@centos8 | + | [root@redhat9 |
| - | access.conf | + | access.conf |
| - | chroot.conf console.perms.d | + | chroot.conf |
| - | console.apps | + | |
| - | console.handlers | + | |
| </ | </ | ||
| Ligne 1244: | Ligne 1339: | ||
| | **limits.conf** | Utilisé par le module pam_limits.so | | | **limits.conf** | Utilisé par le module pam_limits.so | | ||
| | **pam_env.conf** | Utilisé par le module pam_env.so | | | **pam_env.conf** | Utilisé par le module pam_env.so | | ||
| - | | **pwquality.conf** | Utilisé par le module | + | | **pwquality.conf** | Utilisé par le module |
| | **time.conf** | Utilisé par le module pam_time.so | | | **time.conf** | Utilisé par le module pam_time.so | | ||
| Ligne 1250: | Ligne 1345: | ||
| < | < | ||
| - | [root@centos8 | + | [root@redhat9 |
| - | [root@centos8 | + | |
| + | [root@redhat9 | ||
| # Configuration for systemwide password quality limits | # Configuration for systemwide password quality limits | ||
| # Defaults: | # Defaults: | ||
| Ligne 1266: | Ligne 1362: | ||
| # The maximum credit for having digits in the new password. If less than 0 | # The maximum credit for having digits in the new password. If less than 0 | ||
| # it is the minimum number of digits in the new password. | # it is the minimum number of digits in the new password. | ||
| - | dcredit = -2 | + | dcredit = -2 |
| # | # | ||
| # The maximum credit for having uppercase characters in the new password. | # The maximum credit for having uppercase characters in the new password. | ||
| # If less than 0 it is the minimum number of uppercase characters in the new | # If less than 0 it is the minimum number of uppercase characters in the new | ||
| # password. | # password. | ||
| - | ucredit = -1 | + | ucredit = -1 |
| # | # | ||
| # The maximum credit for having lowercase characters in the new password. | # The maximum credit for having lowercase characters in the new password. | ||
| # If less than 0 it is the minimum number of lowercase characters in the new | # If less than 0 it is the minimum number of lowercase characters in the new | ||
| # password. | # password. | ||
| - | lcredit = -1 | + | lcredit = -1 |
| # | # | ||
| # The maximum credit for having other characters in the new password. | # The maximum credit for having other characters in the new password. | ||
| # If less than 0 it is the minimum number of other characters in the new | # If less than 0 it is the minimum number of other characters in the new | ||
| # password. | # password. | ||
| - | ocredit = -1 | + | ocredit = -1 |
| # | # | ||
| # The minimum number of required classes of characters for the new | # The minimum number of required classes of characters for the new | ||
| # password (digits, uppercase, lowercase, others). | # password (digits, uppercase, lowercase, others). | ||
| - | minclass = 4 | + | minclass = 4 |
| # | # | ||
| # The maximum number of allowed consecutive same characters in the new password. | # The maximum number of allowed consecutive same characters in the new password. | ||
| Ligne 1298: | Ligne 1394: | ||
| # Whether to check for the words from the passwd entry GECOS string of the user. | # Whether to check for the words from the passwd entry GECOS string of the user. | ||
| # The check is enabled if the value is not 0. | # The check is enabled if the value is not 0. | ||
| - | gecoscheck = 1 | + | gecoscheck = 1 |
| # | # | ||
| # Whether to check for the words from the cracklib dictionary. | # Whether to check for the words from the cracklib dictionary. | ||
| Ligne 1307: | Ligne 1403: | ||
| # The check is enabled if the value is not 0. | # The check is enabled if the value is not 0. | ||
| usercheck = 1 | usercheck = 1 | ||
| + | # | ||
| + | # Length of substrings from the username to check for in the password | ||
| + | # The check is enabled if the value is greater than 0 and usercheck is enabled. | ||
| + | # usersubstr = 0 | ||
| # | # | ||
| # Whether the check is enforced by the PAM module and possibly other | # Whether the check is enforced by the PAM module and possibly other | ||
| Ligne 1315: | Ligne 1415: | ||
| # Path to the cracklib dictionaries. Default is to use the cracklib default. | # Path to the cracklib dictionaries. Default is to use the cracklib default. | ||
| # dictpath = | # dictpath = | ||
| + | # | ||
| + | # Prompt user at most N times before returning with error. The default is 1. | ||
| + | # retry = 3 | ||
| + | # | ||
| + | # Enforces pwquality checks on the root user password. | ||
| + | # Enabled if the option is present. | ||
| + | # enforce_for_root | ||
| + | # | ||
| + | # Skip testing the password quality for users that are not present in the | ||
| + | # /etc/passwd file. | ||
| + | # Enabled if the option is present. | ||
| + | # local_users_only | ||
| </ | </ | ||
| Ligne 1324: | Ligne 1436: | ||
| < | < | ||
| - | [root@centos8 | + | [root@redhat9 |
| /root | /root | ||
| </ | </ | ||
| Ligne 1331: | Ligne 1443: | ||
| < | < | ||
| - | [root@centos8 | + | [root@redhat9 |
| </ | </ | ||
| Ligne 1337: | Ligne 1449: | ||
| < | < | ||
| - | [fenestros2@centos8 | + | [fenestros2@redhat9 |
| /root | /root | ||
| </ | </ | ||
| Ligne 1350: | Ligne 1462: | ||
| < | < | ||
| - | [fenestros2@centos8 | + | [fenestros2@redhat9 |
| exit | exit | ||
| </ | </ | ||
| Ligne 1357: | Ligne 1469: | ||
| < | < | ||
| - | [root@centos8 | + | [root@redhat9 |
| - | Last login: Thu Oct 15 18:30:54 CEST 2015 on pts/0 | + | |
| </ | </ | ||
| Ligne 1364: | Ligne 1475: | ||
| < | < | ||
| - | [fenestros2@centos8 | + | [fenestros2@redhat9 |
| / | / | ||
| </ | </ | ||
| Ligne 1375: | Ligne 1486: | ||
| =====sudo===== | =====sudo===== | ||
| - | |||
| - | <WRAP center round important 60%> | ||
| - | **Important** : Afin de mettre en pratique les exemples qui suivent, vous devez être connecté à votre système en tant que root. Tapez donc la commande **exit** pour sortir de l’environnement de **fenestros2**. | ||
| - | </ | ||
| La commande **sudo** permet à un utilisateur autorisé d' | La commande **sudo** permet à un utilisateur autorisé d' | ||
| Ligne 1385: | Ligne 1492: | ||
| < | < | ||
| - | [root@centos8 | + | [fenestros2@redhat9 ~]$ exit |
| + | logout | ||
| + | |||
| + | [root@redhat9 | ||
| ## Sudoers allows particular users to run various commands as | ## Sudoers allows particular users to run various commands as | ||
| ## the root user, without needing the root password. | ## the root user, without needing the root password. | ||
| Ligne 1480: | Ligne 1590: | ||
| ## Syntax: | ## Syntax: | ||
| ## | ## | ||
| - | ## user MACHINE=COMMANDS | + | ## user MACHINE=COMMANDS |
| ## | ## | ||
| ## The COMMANDS section may have other options added to it. | ## The COMMANDS section may have other options added to it. | ||
| ## | ## | ||
| ## Allow root to run any commands anywhere | ## Allow root to run any commands anywhere | ||
| - | root ALL=(ALL) | + | root ALL=(ALL) |
| ## Allows members of the ' | ## Allows members of the ' | ||
| Ligne 1492: | Ligne 1602: | ||
| ## Allows people in group wheel to run all commands | ## Allows people in group wheel to run all commands | ||
| - | %wheel ALL=(ALL) ALL | + | %wheel |
| ## Same thing without a password | ## Same thing without a password | ||
| - | # %wheel ALL=(ALL) NOPASSWD: | + | # %wheel |
| ## Allows members of the users group to mount and unmount the | ## Allows members of the users group to mount and unmount the | ||