Press on the attribute and select Lock Attribute. Maya displays locked attributes with a gray background.
To unlock an attribute, press on the attribute and select Unlock Attribute.