1 |
wellsi |
1.1 |
diff -ruN e-smith-proftpd-2.2.0.old/root/etc/e-smith/templates/etc/proftpd.conf/05AuthPam e-smith-proftpd-2.2.0/root/etc/e-smith/templates/etc/proftpd.conf/05AuthPam |
2 |
|
|
--- e-smith-proftpd-2.2.0.old/root/etc/e-smith/templates/etc/proftpd.conf/05AuthPam 1970-01-01 01:00:00.000000000 +0100 |
3 |
|
|
+++ e-smith-proftpd-2.2.0/root/etc/e-smith/templates/etc/proftpd.conf/05AuthPam 2012-12-20 06:23:17.000000000 +0000 |
4 |
|
|
@@ -0,0 +1,3 @@ |
5 |
|
|
+# Use pam to authenticate (default) and be authoritative |
6 |
|
|
+AuthPAMConfig proftpd |
7 |
|
|
+AuthOrder mod_auth_pam.c* mod_auth_unix.c |
8 |
|
|
diff -ruN e-smith-proftpd-2.2.0.old/root/etc/e-smith/templates/etc/proftpd.conf/05Chroot e-smith-proftpd-2.2.0/root/etc/e-smith/templates/etc/proftpd.conf/05Chroot |
9 |
|
|
--- e-smith-proftpd-2.2.0.old/root/etc/e-smith/templates/etc/proftpd.conf/05Chroot 2008-10-07 18:36:59.000000000 +0100 |
10 |
|
|
+++ e-smith-proftpd-2.2.0/root/etc/e-smith/templates/etc/proftpd.conf/05Chroot 2012-12-20 06:25:07.000000000 +0000 |
11 |
|
|
@@ -4,6 +4,11 @@ |
12 |
|
|
$OUT = ""; |
13 |
|
|
my $accounts = esmith::AccountsDB->open; |
14 |
|
|
my @users = $accounts->users; |
15 |
|
|
+ $OUT .= "# Cause every FTP user to be chrooted into their home directory\n"; |
16 |
|
|
+ $OUT .= "# Aliasing /etc/security/pam_env.conf into the chroot allows pam_env to\n"; |
17 |
|
|
+ $OUT .= "# work at session-end time (http://bugzilla.redhat.com/477120)\n"; |
18 |
|
|
+ $OUT .= "VRootEngine on\n"; |
19 |
|
|
+ $OUT .= "VRootAlias etc/security/pam_env.conf /etc/security/pam_env.conf\n"; |
20 |
|
|
|
21 |
|
|
foreach my $user (@users) |
22 |
|
|
{ |