1
by drtomc
An initial checkin. |
1 |
#!/bin/sh
|
2 |
||
3 |
usr="$1" |
|
6
by drtomc
Make a bunch of small changes suggested by Ivo. |
4 |
base="/home/informatics" |
5 |
||
6 |
mkdir "$base/jails/$usr" |
|
7 |
mkdir "$base/jails/$usr/home" |
|
8 |
mkdir "$base/jails/$usr/home/$usr" |
|
9 |
||
10 |
for f in `cd "$base/config/jail"; find . -print` |
|
1
by drtomc
An initial checkin. |
11 |
do
|
6
by drtomc
Make a bunch of small changes suggested by Ivo. |
12 |
if [ -d "$base/config/jail/$f" ] |
1
by drtomc
An initial checkin. |
13 |
then
|
6
by drtomc
Make a bunch of small changes suggested by Ivo. |
14 |
mkdir "$base/jails/$usr/$f" |
1
by drtomc
An initial checkin. |
15 |
else
|
6
by drtomc
Make a bunch of small changes suggested by Ivo. |
16 |
ln "$base/config/jail/$f" "$base/jails/$usr/$f" |
1
by drtomc
An initial checkin. |
17 |
fi
|
18 |
done
|
|
19 |
||
6
by drtomc
Make a bunch of small changes suggested by Ivo. |
20 |
chown -R "$usr" "$base/jails/$usr" |
21 |
chgrp -R `id -g "$usr"` "$base/jails/$usr" |
|
1
by drtomc
An initial checkin. |
22 |