~azzar1/unity/add-show-desktop-key

« back to all changes in this revision

Viewing changes to platform/scripts/mkJail.sh

  • Committer: drtomc
  • Date: 2007-12-04 00:18:29 UTC
  • Revision ID: svn-v3-trunk0:2b9c9e99-6f39-0410-b283-7f802c844ae2:trunk:1
AnĀ initialĀ checkin.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#!/bin/sh
 
2
 
 
3
usr="$1"
 
4
 
 
5
mkdir "/home/informatics/jails/$usr"
 
6
mkdir "/home/informatics/jails/$usr/home"
 
7
mkdir "/home/informatics/jails/$usr/home/$usr"
 
8
 
 
9
for f in `cd /home/informatics/config/jail; find . -print`
 
10
do
 
11
    if [ -d "$f" ]
 
12
    then
 
13
        mkdir "jails/$usr/$f"
 
14
    else
 
15
        ln "$f" "jails/$usr/$f"
 
16
    fi
 
17
done
 
18
 
 
19
chown -R "$usr" "jails/$usr"
 
20
chgrp -R `id -g "$usr"` "jails/$usr"
 
21