Re: Why I receive permission denied when running as root

2019-09-17 Thread Erick Erickson
What it looks like is that execute permissions aren't set on bin/solr, have you checked that? Best, Erick On Tue, Sep 17, 2019 at 10:40 AM Shawn Heisey wrote: > > On 9/16/2019 9:06 PM, Raymond Xie wrote: > > [root@pocnnr1n1 solr]# bin/solr start > > -bash: bin/solr: Permission denied > > The fi

Re: Why I receive permission denied when running as root

2019-09-17 Thread Shawn Heisey
On 9/16/2019 9:06 PM, Raymond Xie wrote: [root@pocnnr1n1 solr]# bin/solr start -bash: bin/solr: Permission denied The first thing I'd check for this is whether the bin/solr script has execute permission. A lack of execute permissions can cause this problem. The first line of that script is

Re: Why I receive permission denied when running as root

2019-09-17 Thread Raymond Xie
Thank you Paras for your reply, yes I downloaded src, after re-download the binary, it is working as expected here. ** *Sincerely yours,* *Raymond* On Tue, Sep 17, 2019 at 9:26 AM Paras Lehana wrote: > Hi Raymond, > > ERROR: start.jar file not

Re: Why I receive permission denied when running as root

2019-09-17 Thread Paras Lehana
Hi Raymond, ERROR: start.jar file not found in /opt/solr-8.2.0/solr/server! > You had probably downloaded the source version. *Download the binary one* ( TGZ or ZIP

Re: Why I receive permission denied when running as root

2019-09-17 Thread Raymond Xie
Thank you Paras: If I am already user of root, and still run sudo? no, it doesn't work: [root@pocnnr1n1 solr]# sudo bin/solr start -force sudo: bin/solr: command not found [root@pocnnr1n1 solr]# ls -l bin/solr -rw-r--r-- 1 root root 80630 Jul 19 09:09 bin/solr So, I followed your suggestion and

Re: Why I receive permission denied when running as root

2019-09-17 Thread Paras Lehana
Hey Raymond, bin/solr start -force I know this could be useless, but did you try the following (notice the sudo)? *sudo* bin/solr start -force Also, I suggest you to review permission of solr file by: ls -l bin/solr If you don't see required executable permissions, you can provide root us

Re: Why I receive permission denied when running as root

2019-09-17 Thread Jost Baron
Maybe the execute permission is missing on bin/solr? Try `chmod a+x bin/solr` (this gives *all* users execute permission for bin/solr). On 17.09.19 14:33, Raymond Xie wrote: > Thank you. > > As I suspected, this is something else. It prompts me the same error here: > [root@pocnnr1n1 solr]# bin/s

Re: Why I receive permission denied when running as root

2019-09-17 Thread Raymond Xie
Thank you. As I suspected, this is something else. It prompts me the same error here: [root@pocnnr1n1 solr]# bin/solr start -force -bash: bin/solr: Permission denied [root@pocnnr1n1 solr]# It is not a good practice to use root directly, however, using root should not have permission error. This i

Re: Why I receive permission denied when running as root

2019-09-16 Thread Paras Lehana
Hi Raymond, It's not recommended to run solr as root (security reasons ). Nevertheless, in order to answer your question, try this command: *sudo bin/solr start -force* >From Solr Control Script Refere

Why I receive permission denied when running as root

2019-09-16 Thread Raymond Xie
[root@pocnnr1n1 solr-8.2.0]# ll total 88 -rw-r--r-- 1 root root 4023 Jul 19 09:09 README.md -rw-r--r-- 1 root root 32153 Jul 19 09:09 build.xml -rw-r--r-- 1 root root 27717 Jul 19 09:09 NOTICE.txt -rw-r--r-- 1 root root 12646 Jul 19 09:09 LICENSE.txt drwxr-xr-x 10 root root 174 Sep 16 21:13