Right-click the attribute and select Lock Attribute. Maya displays locked attributes with a gray background.
To unlock an attribute, Right-click and select Unlock Attribute.