aboutsummaryrefslogtreecommitdiff
path: root/etc/wydawca.rc
blob: 2996513db1f31023bc158176552b4bcf0ab4d27b (plain)
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
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
syslog-facility local1
syslog-tag wydawca
syslog-print-priority yes
statistics all 

file-sweep-time 1 hour

sql default
  host localhost:/tmp/mysql.sock
  database savane
  user savane
  password guessme
end

umask 022
tar-program /bin/tar

project-owner sql default SELECT user.email, user.realname \
                            FROM user,user_group,groups \
                           WHERE user_group.user_id=user.user_id \
                             AND user_group.group_id=groups.group_id \
                             AND user_group.admin_flags = 'A' \
                             AND groups.unix_group_name='%p'

user-data sql default   SELECT email, realname \
                          FROM user \
                         WHERE user_name='%{user}'

directory
 source /home/ftp/incoming/ftp
 destination /home/ftp/gnu
 verify-user sql default SELECT user.user_name \
                           FROM user,user_group,groups \
                          WHERE user_group.user_id=user.user_id \
                            AND user_group.group_id=groups.group_id \
                            AND user_group.admin_flags = 'A' \
                            AND groups.unix_group_name='%p' \
                            AND user.user_name='%u'
 gpg-key sql default SELECT gpg_key FROM user WHERE user_name='%u'
 archive directory .archive
 #archive directory .archive numbered
 #archive directory /var/spool/archive
 #archive tar /var/spool/archive.tar
end


include messages.rc

admin-address gray@localhost
from-address wydawca@localhost

mail-admin-stat admin-stat all

notify-event success user user-success
notify-event success owner owner-success

notify-event bad-ownership owner bad-ownership

notify-event bad-directive-signature user user-bad-directive-signature
notify-event bad-directive-signature owner owner-bad-directive-signature

notify-event bad-detached-signature user user-bad-detached-signature
notify-event bad-detached-signature owner owner-bad-detached-signature

Return to:

Send suggestions and report system problems to the System administrator.