<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://community.appian.com/cfs-file/__key/system/syndication/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Cannot run a script as root user</title><link>https://community.appian.com/discussions/f/general/22633/cannot-run-a-script-as-root-user</link><description>Dear all, 
 I am facing an issue while I try to run the appian status.sh script as root user despite the ownership is root. 
 I am getting the following error: 
 ERROR: JAVA_HOME is not set and no &amp;#39;java&amp;#39; command could be found in your PATH. 
 Please set</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: Cannot run a script as root user</title><link>https://community.appian.com/thread/88480?ContentTypeID=1</link><pubDate>Tue, 30 Nov 2021 13:53:30 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:0108c5be-ee25-4cb3-803b-b884756257a2</guid><dc:creator>Stefan Helzle</dc:creator><description>&lt;p&gt;OK, but setting an environment variable for your user ist similar to any other Linux.&lt;/p&gt;
&lt;p&gt;BTW, working as root is not considered a best practice.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Cannot run a script as root user</title><link>https://community.appian.com/thread/88479?ContentTypeID=1</link><pubDate>Tue, 30 Nov 2021 13:40:24 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:ff29d189-3855-4090-9ac6-b472c2923bfb</guid><dc:creator>pablo_lopez</dc:creator><description>&lt;p&gt;I did, but I am working with Red Hat not Windows nor Ubuntu&lt;/p&gt;
&lt;p&gt;I can run the script when I log as my other user but not root.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Cannot run a script as root user</title><link>https://community.appian.com/thread/88478?ContentTypeID=1</link><pubDate>Tue, 30 Nov 2021 13:26:09 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:d1508136-0ed0-438f-941d-972a5a4f988a</guid><dc:creator>Stefan Helzle</dc:creator><description>&lt;p&gt;Did you try to google the error message? There seems to be a good post in Stackoverflow&lt;/p&gt;
&lt;p&gt;&lt;a href="https://stackoverflow.com/questions/64359564/error-java-home-is-not-set-and-no-java-command-could-be-found-in-your-flutter"&gt;https://stackoverflow.com/questions/64359564/error-java-home-is-not-set-and-no-java-command-could-be-found-in-your-flutter&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;I think this is not related to whether you work as root user or not.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>