File: config.sh

package info (click to toggle)
libapache2-mod-intercept-form-submit 1.2.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 160 kB
  • sloc: ansic: 417; sh: 86; makefile: 26
file content (23 lines) | stat: -rwxr-xr-x 513 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#!/bin/bash

set -e
set -x

sed -i 's/^MaxClients.*/MaxClients 1/' /etc/httpd/conf/httpd.conf
cp -p tests/auth.cgi /var/www/cgi-bin/auth.cgi
cp tests/pam-webl /etc/pam.d/webl
chmod a+x /var/log/httpd
cp tests/auth.conf /etc/httpd/conf.d/
useradd user1
echo user1:heslo1 | chpasswd
useradd bob
echo 'bob:Bobovo heslo' | chpasswd

NAME='liška'
if ! useradd --badname "$NAME" 2> /dev/null ; then
	NAME=liska
	useradd "$NAME"
fi
echo "$NAME:myši & zajíci" | chpasswd
chgrp apache /etc/shadow
chmod g+r /etc/shadow