Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


Click here to return to the 'Fixing Gimp-Print after March 24 Security Update' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Fixing Gimp-Print after March 24 Security Update
Authored by: ssevenup on Apr 09, '03 09:26:45PM

It's probably fine to revert to the old smbspool, but for those who want to install Samba via Fink as a fix, how about this shell script...

<code>

#!/bin/sh

# 3/24/03 OSX security update Gimp-Print Samba fix

# Look for the update
if [ ! -d /Library/Receipts/SecurityUpd2003-03-24.pkg ]; then
echo "3/24/03 Security update not detected"
exit 1
fi

# Check that we are being run as root
if [ $USER != "root" ]; then
echo "You must be root to execute this script."
echo ""
exit
fi

# Check for Fink and install Samba there in /sw/bin
if [ -x /sw/bin/fink ]; then
if [ ! -z /usr/bin/smbclient ]; then
/sw/bin/fink install samba
else
echo "Fink Samba is already installed... continuing"
fi
else
echo "Fink needs installing first"
exit 1
fi

mkdir /usr/bin/samba_0324.sav
mv /usr/bin/smb* /usr/bin/samba_0324.sav
mv /usr/bin/rpcclient /usr/bin/samba_0324.sav
ln -s /sw/bin/smbcacls /usr/bin/smbcacls
ln -s /sw/bin/smbclient /usr/bin/smbclient
ln -s /sw/bin/smbcontrol /usr/bin/smbcontrol
ln -s /sw/bin/smbpasswd /usr/bin/smbpasswd
ln -s /sw/bin/smbspool /usr/bin/smbspool
ln -s /sw/bin/smbstatus /usr/bin/smbstatus
ln -s /sw/bin/smbtar /usr/bin/smbtar
ln -s /sw/bin/smbutil /usr/bin/smbutil
ln -s /sw/bin/rpcclient /usr/bin/rpcclient

##------

It would be more useful if the <code> tag worked, but it just runs all the lines together.. sorry. Any clue what's up? I looked for a FAQ on this but I find no posting FAQ anywhere :-(

--MM

---
Mark Moorcroft
ELORET Corp. - NASA/Ames RC
Sys. Admin.



[ Reply to This | # ]