fix DBPATH to use rw vol, set system:anyuser=l on Maildir, note that you must be...
[clinton/scripts.git] / make-account-for-fyodor-user
CommitLineData
b03d3c1e 1#!/bin/bash
2
61ecf9d4 3ADMIN=`whoami | sed s/_.*//`
4echo "assuming that I am $ADMIN@fyodor..."
5
6for USERHOME in `ssh $ADMIN@fyodor.hcoop.net cd /home\; find */.mire-password -size +0`; do
b03d3c1e 7 USER=`dirname $USERHOME`
6e5619be 8 PATHBITS=`echo $USER | head -c 1`/`echo $USER | head -c 2`/$USER
b03d3c1e 9
10 echo == creating user $USER ======================================================================
61ecf9d4 11 (ssh $ADMIN@fyodor.hcoop.net cat /home/$USER/.mire-password\; cat /home/$USER/.mire-password) | \
b03d3c1e 12 /afs/hcoop.net/common/etc/scripts/create-user $USER && (
13 echo == account created successfully ========================================================
14 echo == deleting .mire-password =============================================================
61ecf9d4 15 ssh $ADMIN@fyodor.hcoop.net 'echo -n > /home/$USER/.mire-password'
6e5619be 16 echo == sending email to $USER@hcoop.net ====================================================
17 mail -s 'your account on mire.hcoop.net has been created' $USER@hcoop.net <<EOF
18Enjoy!
19
20______________________________________________________________________________
21BETA STATUS
22
23Please remember that mire accounts are still in "beta testing", so we
24cannot (yet) guarantee uptime or service. Please do not migrate
25any important services to your mire account.
26
27______________________________________________________________________________
28SSH Access
29
30You can access your new account by typing:
31
32 ssh $USER@mire.hcoop.net
33
34... using the password previously in fyodor:~/.mire-password. For
35security, that file has been blanked out.
36
37______________________________________________________________________________
38AFS (direct) Access
39
40Your AFS filespace is located at:
41
42 /afs/hcoop.net/user/$PATHBITS/
43
44If you like, you can access this storage directly from your local
45machine, without having to use ssh or scp. To do so, follow the
46instructions at the link below, substituting "HCOOP.NET" and
47"hcoop.net" for the realm name and cell name, respectively.
48Capitalization matters.
49
50 http://research.cs.berkeley.edu/doc/afs/
51
52Sincerely,
53
54 - your hcoop admins
55
56EOF
57 echo
58 echo
59 echo
b03d3c1e 60 )
61done