How can I check the mailbox of another user in Linux (CentOS)? Basically I want to replicate the
command but when sudo-ed as another user.
Right now if I try to just do
$ sudo -u johndoe mail
/var/spool/mail/jordan: Permission denied
Same thing if I use
$ sudo su johndoe
and then run the