# Shield Installation issue

**URL:** https://discuss.elastic.co/t/shield-installation-issue/52083
**Category:** Elasticsearch
**Tags:** elastic-stack-security
**Created:** [June 7, 2016, 1:37pm UTC](https://discuss.elastic.co/t/shield-installation-issue/52083 "2016-06-07T13:37:36Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![Gaitonde](https://avatars.discourse-cdn.com/v4/letter/g/8797f3/32.png) [@Gaitonde](https://discuss.elastic.co/u/Gaitonde)
#### Post date: [June 7, 2016, 1:37pm UTC](https://discuss.elastic.co/t/shield-installation-issue/52083/1 "2016-06-07T13:37:36Z")

</div>

I am getting an error when I try to install shield.I am using latest version of ES 2.3.3.

**bin/plugin install file:////home/ad\_aagaiton/installation/Shield/shield-2.3.3.zip**  
-\> Installing from file:////home/ad\_aagaiton/installation/Shield/shield-2.3.3.zip...  
Trying file:////home/ad\_aagaiton/installation/Shield/shield-2.3.3.zip ...  
Downloading .......................DONE  
Verifying file:////home/ad\_aagaiton/installation/Shield/shield-2.3.3.zip checksums if available ...  
NOTE: Unable to verify checksum for downloaded plugin (unable to find .sha1 or .md5 file to verify)  
Installed shield into /usr/local/bin/elasticsearch-2.3.3/plugins/shield  
ERROR: Error copying bin directory [/usr/local/bin/elasticsearch-2.3.3/plugins/shield/bin] to [/usr/local/bin/elasticsearch-2.3.3/bin/shield], cleaning upsticsearch-2.3.3/bin/shield: Operation not permitted]  
ERROR: /usr/local/bin/elasticsearch-2.3.3/bin/shield: Operation not permitted

Request your help. Thanks.

---

<div class="post-metadata">

### Author: ![SirEdvin](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/siredvin/32/9881_2.png) [@SirEdvin](https://discuss.elastic.co/u/SirEdvin)
#### Post date: [June 7, 2016, 6:29pm UTC](https://discuss.elastic.co/t/shield-installation-issue/52083/2 "2016-06-07T18:29:52Z")

</div>

Maybe, "sudo" will help you.

---

<div class="post-metadata">

### Author: ![Gaitonde](https://avatars.discourse-cdn.com/v4/letter/g/8797f3/32.png) [@Gaitonde](https://discuss.elastic.co/u/Gaitonde)
#### Post date: [June 8, 2016, 2:18am UTC](https://discuss.elastic.co/t/shield-installation-issue/52083/3 "2016-06-08T02:18:43Z")

</div>

I tried with sudo, it still gave errors.

**ad\_aagaiton@estest:/usr/local/bin/elasticsearch-2.3.3\> sudo bin/plugin install** file:////home/ad\_aagaiton/installation/Shield/shield-2.3.3.zip  
which: no java in (/usr/bin:/bin:/usr/sbin:/sbin)  
Could not find any executable java binary. Please install java in your PATH or set JAVA\_HOME

* * *

I provided the path and it gave error still.

ad\_aagaiton@estest:/usr/local/bin/elasticsearch-2.3.3\> sudo JAVA\_HOME=/usr/local/bin/jdk1.8.0\_91/bin/java ; bin/plugin install file:////home/ad\_aagaiton/installation/Shield/shield-2.3.3.zip  
usage: sudo -h | -K | -k | -L | -V  
usage: sudo -v [-AknS] [-g groupname|#gid] [-p prompt] [-u user name|#uid]  
usage: sudo -l[l] [-AknS] [-g groupname|#gid] [-p prompt] [-U user name] [-u user name|#uid] [-g groupname|#gid] [command]  
usage: sudo [-AbEHknPS] [-r role] [-t type] [-C fd] [-g groupname|#gid] [-p prompt] [-u user name|#uid] [-g groupname|#gid] [VAR=value] [-i|-s] []  
usage: sudo -e [-AknS] [-r role] [-t type] [-C fd] [-g groupname|#gid] [-p prompt] [-u user name|#uid] file ...  
-\> Installing from file:////home/ad\_aagaiton/installation/Shield/shield-2.3.3.zip...  
Trying file:////home/ad\_aagaiton/installation/Shield/shield-2.3.3.zip ...  
Downloading .......................DONE  
Verifying file:////home/ad\_aagaiton/installation/Shield/shield-2.3.3.zip checksums if available ...  
NOTE: Unable to verify checksum for downloaded plugin (unable to find .sha1 or .md5 file to verify)  
Installed shield into /usr/local/bin/elasticsearch-2.3.3/plugins/shield  
ERROR: Error copying bin directory [/usr/local/bin/elasticsearch-2.3.3/plugins/shield/bin] to [/usr/local/bin/elasticsearch-2.3.3/bin/shield], cleaning up, reason: IOException[Could not move [/usr/local/bin/elasticsearch-2.3.3/plugins/shield/bin] to [/usr/local/bin/elasticsearch-2.3.3/bin/shield]]; nested: AccessDeniedException[/usr/local/bin/elasticsearch-2.3.3/plugins/shield/bin -\> /usr/local/bin/elasticsearch-2.3.3/bin/shield];  
ERROR: Could not move [/usr/local/bin/elasticsearch-2.3.3/plugins/shield/bin] to [/usr/local/bin/elasticsearch-2.3.3/bin/shield]

* * *

ad\_aagaiton@estest:/usr/local/bin/elasticsearch-2.3.3/bin\> pwd  
/usr/local/bin/elasticsearch-2.3.3/bin  
ad\_aagaiton@estest:/usr/local/bin/elasticsearch-2.3.3/bin\> ls -ltr  
total 336  
-rw-rw-r-- 1 root 1000 80896 Jan 27 04:53 elasticsearch-service-x86.exe  
-rw-rw-r-- 1 root 1000 103936 Jan 27 04:53 elasticsearch-service-x64.exe  
-rw-rw-r-- 1 root 1000 104448 Jan 27 04:53 elasticsearch-service-mgr.exe  
-rw-rw-r-- 1 root 1000 6501 May 12 06:24 service.bat  
-rw-rw-r-- 1 root 1000 1303 May 12 06:24 plugin.bat  
-rwxr-xr-x 1 root 1000 2992 May 12 06:24 plugin  
-rwxr-xr-x 1 root 1000 2814 May 12 06:24 [elasticsearch.in.sh](http://elasticsearch.in.sh)  
-rw-rw-r-- 1 root 1000 3307 May 12 06:24 elasticsearch.in.bat  
-rw-rw-r-- 1 root 1000 909 May 12 06:24 elasticsearch.bat  
-rwxr-xr-x 1 root 1000 5551 May 12 06:24 elasticsearch

---

<div class="post-metadata">

### Author: ![Gaitonde](https://avatars.discourse-cdn.com/v4/letter/g/8797f3/32.png) [@Gaitonde](https://discuss.elastic.co/u/Gaitonde)
#### Post date: [June 8, 2016, 7:48am UTC](https://discuss.elastic.co/t/shield-installation-issue/52083/4 "2016-06-08T07:48:34Z")

</div>

It worked with sudo su -

Thanks

---

<div class="post-metadata">

### Author: ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)
#### Post date: [July 6, 2017, 1:44pm UTC](https://discuss.elastic.co/t/shield-installation-issue/52083/5 "2017-07-06T13:44:12Z")

</div>


