<?php

// update a custom attribute in 1 product:
// 
$product = Mage::getModel('catalog/product')
    ->setCurrentStore(1)
    ->load($entity_id);

// note: the 3rd param is the store id
$product->addAttributeUpdate('rbanh_custom_attrib', $value, 1);