/[smecontribs]/rpms/smeserver-shared-folders/contribs7/smeserver-shared-folders-0.1-ftp_access.patch
ViewVC logotype

Contents of /rpms/smeserver-shared-folders/contribs7/smeserver-shared-folders-0.1-ftp_access.patch

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph


Revision 1.1 - (show annotations) (download)
Thu Aug 23 19:31:40 2012 UTC (12 years, 3 months ago) by vip-ire
Branch: MAIN
CVS Tags: smeserver-shared-folders-0_1-77_el4_sme, smeserver-shared-folders-0_1-75_el4_sme, smeserver-shared-folders-0_1-76_el4_sme, smeserver-shared-folders-0_1-74_el4_sme, smeserver-shared-folders-0_1-79_el4_sme, smeserver-shared-folders-0_1-78_el4_sme, HEAD
Error occurred while calculating annotation data.
* Thu Aug 23 2012 Daniel Berteaud <daniel@firewall-services.com> 0.1-74.sme
- Enable FTP access

1 diff -Nur smeserver-shared-folders-0.1/createlinks smeserver-shared-folders-0.1_mod/createlinks
2 --- smeserver-shared-folders-0.1/createlinks 2012-08-23 16:38:11.709015129 +0200
3 +++ smeserver-shared-folders-0.1_mod/createlinks 2012-08-23 17:11:29.113546533 +0200
4 @@ -34,9 +34,11 @@
5 templates2events("/etc/samba/smb.conf", $event);
6 templates2events("/etc/httpd/conf/httpd.conf", $event);
7 templates2events("/etc/rsyncd.conf", $event);
8 + templates2events("/etc/proftpd.conf", $event);
9 safe_symlink("sighup", "root/etc/e-smith/events/$event/services2adjust/smbd");
10 safe_symlink("sigusr1", "root/etc/e-smith/events/$event/services2adjust/httpd-e-smith");
11 safe_symlink("restart", "root/etc/e-smith/events/$event/services2adjust/rsyncd");
12 + safe_symlink("sigusr1", "root/etc/e-smith/events/$event/services2adjust/ftp");
13 }
14
15 #--------------------------------------------------
16 diff -Nur smeserver-shared-folders-0.1/root/etc/e-smith/templates/etc/proftpd.conf/06ModFacl smeserver-shared-folders-0.1_mod/root/etc/e-smith/templates/etc/proftpd.conf/06ModFacl
17 --- smeserver-shared-folders-0.1/root/etc/e-smith/templates/etc/proftpd.conf/06ModFacl 1970-01-01 01:00:00.000000000 +0100
18 +++ smeserver-shared-folders-0.1_mod/root/etc/e-smith/templates/etc/proftpd.conf/06ModFacl 2012-08-23 16:41:17.644945112 +0200
19 @@ -0,0 +1 @@
20 +LoadModule mod_facl.c
21 diff -Nur smeserver-shared-folders-0.1/root/etc/e-smith/templates/etc/proftpd.conf/40ShareAccess smeserver-shared-folders-0.1_mod/root/etc/e-smith/templates/etc/proftpd.conf/40ShareAccess
22 --- smeserver-shared-folders-0.1/root/etc/e-smith/templates/etc/proftpd.conf/40ShareAccess 1970-01-01 01:00:00.000000000 +0100
23 +++ smeserver-shared-folders-0.1_mod/root/etc/e-smith/templates/etc/proftpd.conf/40ShareAccess 2012-08-23 21:14:08.566489828 +0200
24 @@ -0,0 +1,19 @@
25 +{
26 +
27 +use esmith::AccountsDB;
28 +
29 +$OUT = "";
30 +
31 +my $adb = esmith::AccountsDB->open_ro();
32 +foreach my $share ($adb->get_all_by_prop(type=>'share')){
33 + my $key = $share->key;
34 + $OUT .= "\n";
35 + $OUT .= "<Directory /home/e-smith/files/shares/$key/*>\n";
36 + $OUT .= " AllowOverwrite on\n";
37 + $OUT .= " <Limit WRITE>\n";
38 + $OUT .= " AllowAll\n";
39 + $OUT .= " </Limit>\n";
40 + $OUT .= "</Directory>\n";
41 +}
42 +}
43 +

admin@koozali.org
ViewVC Help
Powered by ViewVC 1.2.1 RSS 2.0 feed