Configuration Information
The installed file /etc/elogind/logind.conf contains all the
possible options with their defaults, commented out. You may wish
to disable automatically killing user processes when the user
logs out. You can do so as the root user:
sed -e '/\[Login\]/a KillUserProcesses=no' \
-i /etc/elogind/logind.conf
Each user will need to register a user session using Linux-PAM at
login. The /etc/pam.d/system-session file needs to be
modified and a new file must be created in order for elogind to work correctly. Run
the following commands as the root user:
cat >> /etc/pam.d/system-session << "EOF" &&
# Begin elogind addition
session required pam_loginuid.so
session optional pam_elogind.so
# End elogind addition
EOF
cat > /etc/pam.d/elogind-user << "EOF"
# Begin /etc/pam.d/elogind-user
account required pam_access.so
account include system-account
session required pam_env.so
session required pam_limits.so
session required pam_unix.so
session required pam_loginuid.so
session optional pam_keyinit.so force revoke
session optional pam_elogind.so
auth required pam_deny.so
password required pam_deny.so
# End /etc/pam.d/elogind-user
EOF
This package provides a Name Service Switch (NSS) module.
Previously, a Systemd-less system didn't have a dedicated NSS
module used for better name resolution, while Systemd systems
have one that is tightly ingrained with that software suite. Now,
such a module is provided. In order to use it, the /etc/nsswitch.conf file that was installed in
LFS must be altered. Overwrite the file as the root user:
cat > /etc/nsswitch.conf << "EOF" &&
# Begin /etc/nsswitch.conf
passwd: files elogind
group: files elogind
shadow: files elogind
hosts: files dns
networks: files
protocols: files
services: files
ethers: files
rpc: files
# End /etc/nsswitch.conf
EOF
Note
The myhostname, mymachines, and resolve NSS modules are still not provided
(they come from Systemd). The installed file cannot use them
yet.
Note
Now continue on until you reach D-Bus-1.16.2, install it,
and follow the configuration instructions on that page to see
if elogind is working properly.