users: Move PAM configs over from freedombox-setup

Since we are running PAM update script from users action file, it is
appropriate for the PAM configurations that are effected by it to stay
here in Plinth as well.
This commit is contained in:
Sunil Mohan Adapa 2016-05-18 12:25:00 +05:30 committed by James Valleroy
parent f68a757741
commit 7b8b12dc20
No known key found for this signature in database
GPG Key ID: 77C0C75E7B650808
3 changed files with 14 additions and 0 deletions

View File

@ -0,0 +1,6 @@
Name: Restrict login using access control table file
Default: yes
Priority: 0
Account-Type: Additional
Account-Final:
required pam_access.so

View File

@ -0,0 +1,6 @@
Name: Create home directory during login
Default: yes
Priority: 900
Session-Type: Additional
Session:
required pam_mkhomedir.so umask=0022 skel=/etc/skel

View File

@ -217,6 +217,8 @@ setuptools.setup(
glob.glob('data/usr/share/augeas/lenses/*.aug')),
('/usr/share/augeas/lenses/tests',
glob.glob('data/usr/share/augeas/lenses/tests/test_*.aug')),
('/usr/share/pam-configs/',
glob.glob('data/usr/share/pam-configs/*-freedombox')),
('/etc/plinth/modules-enabled',
glob.glob(os.path.join('data/etc/plinth/modules-enabled',
'*')))],