NIS+ and crack

NIS+ and crack

Post by j.. » Fri, 05 Mar 1999 04:00:00



Hi,

I'm trying to implement crack on my Solaris 2.5.1 box running
NIS+ and I keep getting "bad format" messages for each user.

I did a niscat and piped the output to a file and then I run
crack <filename>.

Per the manual I should not need any -fmt option, so is there any
settings I should check or are their any utilities scripts someone
knows about that I should execute??

Any suggestions would be greaty appreciated.  

Thanks,
  J

 
 
 

NIS+ and crack

Post by Ron Dille » Fri, 05 Mar 1999 04:00:00


J,

-----
#!/bin/sh
#
# Crack start/stop script
#
PATH=/usr/bin:/bin
CRACK_HOME=/apps/crack/5.0.a

cd $CRACK_HOME

case $1 in
'start')
        if [ -f $CRACK_HOME/Crack -a -d $CRACK_HOME/run ]; then
                if [ -f /tmp/.namedpipe ]
                then
                        rm /tmp/.namedpipe
                fi
                niscat passwd.org_dir.`domainname` | awk
'BEGIN{FS=":"}{printf("%s:%s:%s:%s:%s:%s:%s\n",$1,$2,$3,$4,$5,$6,$7);}'

Quote:> /tmp/.namedpipe

                chmod 600 /tmp/.namedpipe
        fi      
        $CRACK_HOME/Crack -network -mail -nice 10 /tmp/.namedpipe
#       $CRACK_HOME/Crack /tmp/.namedpipe
        ;;
'stop')
        $CRACK_HOME/Reporter > $CRACK_HOME/run/report.`date +%h%d%H%M`
        chmod 600 $CRACK_HOME/run/report.*
        if [ -f $CRACK_HOME/scripts/plaster ]; then
                $CRACK_HOME/scripts/plaster
        fi
        /home/rdilley/bin/make -f $CRACK_HOME/Makefile tidy
        chmod 600 $CRACK_HOME/run/F-merged
        rm /tmp/.namedpipe
        ;;
*)
        echo "usage: Cracker {start|stop}"
        ;;
esac
-----

Ron


> Hi,

> I'm trying to implement crack on my Solaris 2.5.1 box running
> NIS+ and I keep getting "bad format" messages for each user.

> I did a niscat and piped the output to a file and then I run
> crack <filename>.

> Per the manual I should not need any -fmt option, so is there any
> settings I should check or are their any utilities scripts someone
> knows about that I should execute??

> Any suggestions would be greaty appreciated.

> Thanks,
>   J

--
+--------------------------------------------------------+
|   Ron Dilley          Sr. UNIX Network Administrator   |

+--------------------------------------------------------+