Let $\Omega\subset \mathbb{R}^N$ be a bounded domain and $u:\overline{\Omega}\to\mathbb{R}$ a continuous function which vanishes on the boundary $\partial\Omega$. Is there constants $a,b>0$ such that $$|u(x)|\le a\operatorname{dist}(x,\partial\Omega)+b,\ \forall x\in \overline{\Omega},\tag{1}$$
where $\operatorname{dist}$ denotes distance and $b$ does not depends on $u$?
Note that the constant $b$ must be, in general, positive, because if $u$ grows too fast near the boundary, for example, like the function $\sqrt{x}$ in $[0,1]$ then, there is no constant $a$ which satisfies $(1)$ with $b=0$
On the other hand, if $u$ is Lipschitz then $(1)$ is satisfied with $b=0$, indeed, just note that $|u(x)|\le L |x-y|$ for all $x\in \overline{\Omega}$ and $y\in \partial \Omega$, where $L$ is the Lipschitz constant.