Running services as specific users
Hi guys, I'm not new to Linux but no expert by any means and currently I'm running Gentoo. Something I've always wondered about is how you go about running services as certain users. For example sshd or samba, how would I run those as a certain user other than root? For sshd especially, if I expose my port 22 to the internet to login remotely I'd just like it to not run as root.
I'm only using sshd as an example really, I'd like to know for future how to do it in general if possible.