Is there more elegant way to find out what's another user's default shell (assuming that I have root privileges and using GNU/Linux)? I'm aware that I can get the answer by looking/parsing/greping/etc /etc/passwd, but there must be an utility (such as 'id' or 'chsh') that has a switch that prints this information to stdout.
It would be nice to run something like
id --shell username to get the answer instantly.
EDIT: I see that first answers to my question can be categorized under 'parsing/looking/greping' /etc/passwd, so I'd like to emphasize that I'm aware that there are many ways to do this (shell on-liners, functions, scripts...), but that's not what I'm asking.
I'd like to know if some of standard tools that come preinstalled with most GNU/Linux distributions or tools that are part of coreutils have this feature.