1. [root@asd ~]# su -s/bin/bash - nobody -c "whoami"
  2. nobody
  3. [root@asd ~]# cat /etc/centos-release
  4. CentOS Linux release 7.9.2009 (Core)
  5. -----
  6. [root@qwe ~]# su -s/bin/bash - nobody -c "whoami"
  7. /etc/bashrc: line 100: //.loginouthistory: Permission denied
  8. nobody
  9. [root@qwe ~]# cat /etc/centos-release
  10. CentOS Stream release 8