source: locker/sql/bin/save-password @ 363

Last change on this file since 363 was 157, checked in by jbarnold, 18 years ago
we should remove authuser's access to .sql in addition to anyuser
  • Property svn:executable set to *
File size: 338 bytes
Line 
1#!/bin/sh
2
3mkdir $lroot/.sql 2>/dev/null
4fs sa $lroot/.sql system:anyuser none
5fs sa $lroot/.sql system:authuser none
6fs sa $lroot/.sql daemon.scripts write
7rm -f $lroot/.sql/my.cnf $lroot/.my.cnf
8
9echo "[mysql]
10host=sql.mit.edu
11user=$sqluser
12password=$sqlpass" > $lroot/.sql/my.cnf
13
14ln -nfs $lroot/.sql/my.cnf $lroot/.my.cnf 2>/dev/null
Note: See TracBrowser for help on using the repository browser.