How can a program know whether it is running in superuser mode?
- Posted by JerryStory Jan 15, 2010
- 957 views
I want to do something like this.
if (program is not run in superuser mode) then puts(1, "This program needs to be run in superuser mode.\n") puts(1, "On Ubuntu, type 'sudo ' \n") end if
How can a Euphoria program running on Linux know whether it is running in superuser mode? There doesn't seem to be any way to solve this problem with command_line().