By default, the #Linux kernel allows anyone to see all running processes. However, it is considered a good practice to hide processes from other users and commands like top, ps, etc. This can be achieved using the hidepid option. See https://www.cyberciti.biz/faq/linux-hide-processes-from-other-users/ for more info.