So I was going to run a shell script but it's not working since it needs to be run as root. Thing is I'm logged in as root using the su command.
how is this possible?
root@polo-E15301:/home/polo/Downloads# echo $USER
polo <<<---- regular user
root@polo-E15301:/home/polo/Downloads# whoami
root
root@polo-E15301:/home/polo/Downloads# echo $UID
0
root@polo-E15301:/home/polo/Downloads#
su
instead ofsu -
. See the man page for the difference. – Bib Mar 16 '24 at 11:45