[scponly] Further // usage confusion ... possible bug ?

Kaleb Pederson kpederson at mail.ewu.edu
Thu Mar 30 13:04:00 EST 2006


On Thursday 30 March 2006 9:53 am, Ensel Sharon wrote:
> Can you show me the line of code that you run out of cron (that syncs the
> two passwd files) ?

This is highly confidential information so I'll only post it to this public 
list ;)

---------
#!/bin/bash

PASSWD_FILE=/etc/passwd
CHROOT_DIR=/var/www
CHROOT_PASSWD_FILE=$CHROOT_DIR/etc/passwd

/bin/cp $PASSWD_FILE $CHROOT_PASSWD_FILE

# consider also:
# grep scponly | /bin/sed "s,$CHROOT_DIR//,/,g" > $CHROOT_PASSWD_FILE

/bin/sed -i "s,$CHROOT_DIR//,/,g" $CHROOT_PASSWD_FILE
---------

--Kaleb
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 191 bytes
Desc: not available
Url : https://lists.ccs.neu.edu/pipermail/scponly/attachments/20060330/848c9654/attachment.bin


More information about the scponly mailing list