Brew, CAJ (Chris) wrote:
> Hi Simon,
>
> Inode matching, no seriously. In /etc/grid-sercurity/gridmapdir there
> are directory entries for each DN and for each pool account, the DN
> entry is a hard link to the pool account it is mapped to (and so vice
> versa).
>
> Yours,
> Chris.
We've scripted the inode matching, here it is...
#!/bin/sh
cd /etc/grid-security/gridmapdir || exit 1
ls -i %* |
while read inode fn; do
find . -inum $inode | sort -r |
sed -e 'sX^./XX' -e 'sX$X X' -e 'sX\%20X Xg' -e 'sX\%2dX-Xg' -e
'sX\%2eX.Xg
' -e 'sX\%2fX/Xg' -e 'sX\%3dX=X g' -e 'sX%40X@Xg' | paste - -
done | sort
--
David Ambrose-Griffith - [log in to unmask]
Assistant Systems Programmer,
IPPP, Department of Physics, Durham University,
Science Laboratories, South Road, Durham, DH1 3LE
Direct Dial: +44 (0)191 3343704
Office: +44 (0)191 334 3811
|