TITLE: A simple example of a ring that is an $A$-module but not an $A$-algebra
QUESTION [5 upvotes]: Let $A$ and $B$ be commutative rings, and suppose (the underlying group of) $B$ has a structure of $A$-module. "Obviously", that doesn't imply that $B$ gets a structure as an $A$-algebra, but I can't come up with a simple example.
Surely there must be some relatively down-to-earth example, though. Can you help me?

REPLY [3 votes]: I came up with a counterexample myself: let $A=k[\partial_t]$, and $B=k[t]$, with $A$ acting by differentiation; clearly there is no ring map $\phi:A\to B$ compatible with that action.