File: libpam-snapper.README.Debian

package info (click to toggle)
snapper 0.10.4-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 3,944 kB
  • sloc: cpp: 24,181; ansic: 1,466; sh: 1,407; makefile: 503; python: 127; ruby: 90
file content (25 lines) | stat: -rw-r--r-- 1,098 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
Debian documentation for libpam-snapper
---------------------------------------

libpam-snapper uses pam-auth-config to hook itself into the system PAM
config, and therefore should be enabled by default.  To generate
snapshots when the user logs in/out, a snapper configuration with the
name home_<user> needs to exist.

libpam-snapper provides a few scripts to generate such a config:

 - /usr/share/pam_snapper/pam_snapper_useradd.sh: useradd wrapper,
   creating the subvolume and generating the snapshot configuration for
   a new user;

 - /usr/share/pam_snapper/pam_snapper_userdel.sh: userdel wrapper,
   removing the snapper configuration while removing the user;

 - /usr/share/pam_snapper/pam_snapper_homeconvert.sh: converts an
   existing user's home for use by snapper. Warning: if the user home is
   not on a submodule, it is created and the current data is moved to it.

Those scripts need to be adapted for a local setup.  You especially need
to make the DRYRUN variable 0 for the scripts to act on data.

 -- Nicolas Dandrimont <olasd@debian.org>, Sat,  7 Dec 2013 21:38:43 +0100