sur une machine j'ai 4 utilisateurs ordinaires :
Code : Tout sélectionner
cat /etc/passwd | grep 100
tatsuki:x:1000:985::/home/tatsuki:/bin/bash
aska:x:1001:985::/home/aska:/bin/bash
catherine:x:1003:985::/home/catherine:/bin/bash
vincent:x:1004:985::/home/vincent:/bin/bash
Tatsuki et Aska (par exemple) sont dans les mêmes groupes
Code : Tout sélectionner
[vincent@Barney ~]$ sudo groups tatsuki
sys games network scanner power adm audio lp optical storage uucp video partage users
[vincent@Barney ~]$ sudo groups aska
sys games network scanner power adm audio lp optical storage uucp video partage users
Code : Tout sélectionner
su -l aska
Mot de passe :
[aska@Barney ~]$ ls -al
total 80
drwx------ 15 aska users 4096 21 mars 22:46 .
drwxr-xr-x 9 root root 4096 20 mars 09:33 ..
-rw------- 1 aska users 78 6 août 12:01 .bash_history
-rw-r--r-- 1 aska users 21 20 déc. 2020 .bash_logout
-rw-r--r-- 1 aska users 57 20 déc. 2020 .bash_profile
-rw-r--r-- 1 aska users 141 20 déc. 2020 .bashrc
drwxr-xr-x 2 aska users 4096 21 mars 21:42 Bureau
drwxr-xr-x 15 aska users 4096 21 mars 21:42 .cache
drwx------ 15 aska users 4096 22 mars 07:42 .config
drwxr-xr-x 2 aska users 4096 21 mars 21:28 Documents
drwxr-xr-x 2 aska users 4096 21 mars 22:49 .etr
drwxr-xr-x 2 aska users 4096 21 mars 22:43 .frozen-bubble
drwxr-xr-x 2 aska users 4096 21 mars 21:28 Images
drwxr-xr-x 3 aska users 4096 21 mars 21:28 .local
drwxr-xr-x 2 aska users 4096 21 mars 21:28 Modèles
drwx------ 5 aska users 4096 21 mars 21:42 .mozilla
drwxr-xr-x 2 aska users 4096 21 mars 21:28 Musique
drwxr-xr-x 2 aska users 4096 21 mars 21:28 Public
drwxr-xr-x 2 aska users 4096 21 mars 21:28 Téléchargements
lrwxrwxrwx 1 aska users 21 21 mars 21:33 Vidéos -> /home/partage/Vidéos
-rw------- 1 aska users 51 21 mars 21:28 .Xauthority
Code : Tout sélectionner
cat /etc/sddm.conf
[Autologin]
# Whether sddm should automatically log back into sessions when they exit
Relogin=false
# Name of session file for autologin session (if empty try last logged in)
Session=
# Username for autologin session
User=
[General]
# Halt command
HaltCommand=/usr/bin/systemctl poweroff
# Input method module
InputMethod=qtvirtualkeyboard
# Comma-separated list of Linux namespaces for user session to enter
Namespaces=
# Initial NumLock state. Can be on, off or none.
# If property is set to none, numlock won't be changed
# NOTE: Currently ignored if autologin is enabled.
Numlock=on
# Reboot command
RebootCommand=/usr/bin/systemctl reboot
[Theme]
# Current theme name
Current=simplicity
# Cursor theme used in the greeter
CursorTheme=
# Number of users to use as threshold
# above which avatars are disabled
# unless explicitly enabled with EnableAvatars
DisableAvatarsThreshold=7
# Enable display of custom user avatars
EnableAvatars=true
# Global directory for user avatars
# The files should be named <username>.face.icon
FacesDir=/usr/share/sddm/faces
# Font used in the greeter
Font=
# Theme directory path
ThemeDir=/usr/share/sddm/themes
[Users]
# Default $PATH for logged in users
DefaultPath=/usr/local/bin:/usr/bin:/bin
# Comma-separated list of shells.
# Users with these shells as their default won't be listed
HideShells=
# Comma-separated list of users that should not be listed
HideUsers=
# Maximum user id for displayed users
MaximumUid=60000
# Minimum user id for displayed users
MinimumUid=1000
# Remember the session of the last successfully logged in user
RememberLastSession=true
# Remember the last successfully logged in user
RememberLastUser=true
# When logging in as the same user twice, restore the original session, rather than create a new one
ReuseSession=true
[Wayland]
# Enable Qt's automatic high-DPI scaling
EnableHiDPI=false
# Path to a script to execute when starting the desktop session
SessionCommand=/usr/share/sddm/scripts/wayland-session
# Directory containing available Wayland sessions
SessionDir=/usr/share/wayland-sessions
# Path to the user session log file
SessionLogFile=.local/share/sddm/wayland-session.log
[X11]
# Path to a script to execute when starting the display server
DisplayCommand=/usr/share/sddm/scripts/Xsetup
# Path to a script to execute when stopping the display server
DisplayStopCommand=/usr/share/sddm/scripts/Xstop
# Enable Qt's automatic high-DPI scaling
EnableHiDPI=false
# The lowest virtual terminal number that will be used.
MinimumVT=1
# Arguments passed to the X server invocation
ServerArguments=-nolisten tcp
# Path to X server binary
ServerPath=/usr/bin/X
# Path to a script to execute when starting the desktop session
SessionCommand=/usr/share/sddm/scripts/Xsession
# Directory containing available X sessions
SessionDir=/usr/share/xsessions
# Path to the user session log file
SessionLogFile=.local/share/sddm/xorg-session.log
# Path to the Xauthority file
UserAuthFile=.Xauthority
# Path to xauth binary
XauthPath=/usr/bin/xauth
# Path to Xephyr binary
XephyrPath=/usr/bin/Xephyr