13 |
/etc/samba/secrets.tdb |
/etc/samba/secrets.tdb |
14 |
/etc/samba/smbpasswd |
/etc/samba/smbpasswd |
15 |
/etc/shadow |
/etc/shadow |
|
/etc/smbpasswd |
|
16 |
/etc/ssh |
/etc/ssh |
17 |
/etc/sudoers |
/etc/sudoers |
18 |
/root |
/root |
34 |
/var/spool/spamd/ |
/var/spool/spamd/ |
35 |
EOF |
EOF |
36 |
|
|
37 |
|
[ -e /etc/smbpasswd ] && cat <<'EOF' >> dir.list |
38 |
|
/etc/smbpasswd |
39 |
|
EOF |
40 |
|
|
41 |
[ -e /var/log/samba/samba_audit ] && cat <<'EOF' >> dir.list |
[ -e /var/log/samba/samba_audit ] && cat <<'EOF' >> dir.list |
42 |
/var/log/samba/samba_audit |
/var/log/samba/samba_audit |
43 |
EOF |
EOF |
71 |
|
|
72 |
# search for local script added |
# search for local script added |
73 |
find /usr/local/bin/ -type f | xargs -I % sh -c "rpm -qf % 2>&1 > /dev/null || echo % >> dir.list" |
find /usr/local/bin/ -type f | xargs -I % sh -c "rpm -qf % 2>&1 > /dev/null || echo % >> dir.list" |
74 |
|
# search for local dir script added |
75 |
|
find /usr/local/ -maxdepth 1 -type d | xargs -I % sh -c "rpm -qf % 2>&1 > /dev/null || echo % >> dir.list" |
76 |
# search for cron files not owned by a rpm |
# search for cron files not owned by a rpm |
77 |
find /etc/cron.* -type f | xargs -I % sh -c "rpm -qf % 2>&1 > /dev/null || echo % >> dir.list" |
find /etc/cron.* -type f | xargs -I % sh -c "rpm -qf % 2>&1 > /dev/null || echo % >> dir.list" |
78 |
# search for udev rules not owned by a rpm ! oucl add an option there in case you change of hardware |
# search for udev rules not owned by a rpm ! oucl add an option there in case you change of hardware |
79 |
find /etc/udev/rules.d/ -type f | xargs -I % sh -c "rpm -qf % 2>&1 > /dev/null || echo % >> dir.list" |
find /etc/udev/rules.d/ -type f | xargs -I % sh -c "rpm -qf % 2>&1 > /dev/null || echo % >> dir.list" |
80 |
|
# search for spamassassin user created config |
81 |
|
find /etc/mail/spamassassin -maxdepth 1 -type f | xargs -I % sh -c "rpm -qf % 2>&1 > /dev/null || echo % >> dir.list" |
82 |
|
|
83 |
################## |
################## |
84 |
# |
# |
144 |
done |
done |
145 |
|
|
146 |
|
|
147 |
rpm -q smeserver-dovecot >/dev/null 2>&1 && cat <<'EOF' >> dir.list |
#rpm -q smeserver-dovecot >/dev/null 2>&1 && cat <<'EOF' >> dir.list |
148 |
|
[ -e /etc/dovecot/sharemailbox ] && cat <<'EOF' >> dir.list |
149 |
/etc/dovecot/sharemailbox/ |
/etc/dovecot/sharemailbox/ |
150 |
EOF |
EOF |
151 |
|
|
173 |
EOF |
EOF |
174 |
# smeserver-fail2ban |
# smeserver-fail2ban |
175 |
if [ -d /etc/fail2ban/action.d ]; then |
if [ -d /etc/fail2ban/action.d ]; then |
176 |
for F in /etc/fail2ban/action.d/*;do |
for F in $(ls /etc/fail2ban/action.d/);do |
177 |
rpm -qf $F >/dev/null 2>&1 || echo $F >> dir.list |
rpm -qf $F >/dev/null 2>&1 || echo $F >> dir.list |
178 |
done |
done |
179 |
fi |
fi |
180 |
if [ -d /etc/fail2ban/fail2ban.d ]; then |
if [ -d /etc/fail2ban/fail2ban.d ]; then |
181 |
for F in /etc/fail2ban/fail2ban.d/*;do |
for F in $(ls /etc/fail2ban/fail2ban.d/);do |
182 |
rpm -qf $F >/dev/null 2>&1 || echo $F >> dir.list |
rpm -qf $F >/dev/null 2>&1 || echo $F >> dir.list |
183 |
done |
done |
184 |
fi |
fi |
185 |
if [ -d /etc/fail2ban/filter.d ]; then |
if [ -d /etc/fail2ban/filter.d ]; then |
186 |
for F in /etc/fail2ban/filter.d/*;do |
for F in $(ls /etc/fail2ban/filter.d/);do |
187 |
rpm -qf $F >/dev/null 2>&1 || echo $F >> dir.list |
rpm -qf $F >/dev/null 2>&1 || echo $F >> dir.list |
188 |
done |
done |
189 |
fi |
fi |
190 |
if [ -d /etc/fail2ban/jail.d ]; then |
if [ -d /etc/fail2ban/jail.d ]; then |
191 |
for F in /etc/fail2ban/jail.d/*;do |
for F in $(/etc/fail2ban/jail.d/);do |
192 |
rpm -qf $F >/dev/null 2>&1 || echo $F >> dir.list |
rpm -qf $F >/dev/null 2>&1 || echo $F >> dir.list |
193 |
done |
done |
194 |
fi |
fi |
212 |
/var/lib/lemonldap-ng/notifications |
/var/lib/lemonldap-ng/notifications |
213 |
EOF |
EOF |
214 |
#smeserver-letsencrypt |
#smeserver-letsencrypt |
215 |
rpm -q smeserver-letsencrypt >/dev/null 2>&1 && cat <<'EOF' >> dir.list |
#rpm -q smeserver-letsencrypt >/dev/null 2>&1 && cat <<'EOF' >> dir.list |
216 |
|
[ -d /etc/letsencrypt.sh/ ] && cat <<'EOF' >> dir.list |
217 |
/etc/letsencrypt.sh/ |
/etc/letsencrypt.sh/ |
218 |
|
EOF |
219 |
|
[ -d /etc/dehydrated/ ] && cat <<'EOF' >> dir.list |
220 |
/etc/dehydrated/ |
/etc/dehydrated/ |
221 |
EOF |
EOF |
222 |
|
|
223 |
rpm -q smeserver-limesurvey >/dev/null 2>&1 && cat <<'EOF' >> dir.list |
rpm -q smeserver-limesurvey >/dev/null 2>&1 && cat <<'EOF' >> dir.list |
224 |
/var/lib/limesurvey/uploads |
/var/lib/limesurvey/uploads |
225 |
EOF |
EOF |