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