<p>This is very likely to be a Firewall problem. 
The "sendto: operation not permitted" is the typical message you get from an iptables reject</p>

<p>i never run a full bitcoind myself but looking at the documentation you need port <strong>tcp:8333</strong> inbound and , i guess, at least <strong>HTTP and HTTPS</strong> outbound ... </p>

<p>check your firewall with </p>

<pre><code>iptables -L -n
</code></pre>

<p>if the firewall is running, just to confirm you might try to stop the firewall and see if it fixes your problem. </p>

CC BY-SA 3.0
2015-05-16T09:15:48.767Z
2015-05-16T09:15:48.767Z
przRocco
<p>Most likely SELinux.</p>

<p><code>~/public_html</code> is not the correct place to store binaries or even the bitcoin data directory.</p>

<p>Put the binaries in <code>~/bin/</code></p>

<p>The data files should end up in <code>~/.bitcoin/</code> if you haven't changed the configuration. That should be okay.</p>

<p>If it still doesn't work you might need to run <code>restorecon -R ~/bin</code> to fix SELinux attributes.</p>

CC BY-SA 3.0
2015-05-15T12:16:27.803Z
`root/public_html/server/bin/ ` here is my bitcoind . and data file is  `'root/.bitcoin/` . what is the problem?? i run the command `restorecon -R ~/bin`. sitill same this.. pls give me some solution
Md Shahadat Hossain
CC BY-SA 3.0
2015-05-15T12:27:34.187Z
public_html is for serving web pages, not for binaries. Put the bitcoin binaries in ~/bin/ . AFTER moving you may need to run restorecon.  Also don't run bitcoin (or anything) as root, create a new user and run bitcoin as that user. Once you have it working you probably want to set it up as a systemd service, which is very simple.
Jannes
CC BY-SA 3.0
2015-05-15T11:52:29.683Z
2015-05-15T11:52:29.683Z
Jannes
<pre><code>root@srv [~/public_html/server/bin]# ./bitcoind -daemon
</code></pre>

<p>Bitcoin server starting</p>

<pre><code>root@srv [~/public_html/server/bin]# sendto: Operation not permitted
</code></pre>

<p>What is the problem?</p>

<p>Also, bitcoind didn't download the blockchain in my linux centos server. </p>

<p>What is the reason?</p>

<blockchain><bitcoind><linux>
I run bitcoind in linux centos server. but it give me error "sendto: Operation not permitted". why?
Md Shahadat Hossain
# I run bitcoind in linux centos server. but it give me error "sendto: Operation not permitted". why?

(Asked by: username_0 on 2015-05-15)

```
root@srv [~/public_html/server/bin]# ./bitcoind -daemon

```

Bitcoin server starting

```
root@srv [~/public_html/server/bin]# sendto: Operation not permitted

```

What is the problem?

Also, bitcoind didn't download the blockchain in my linux centos server.

What is the reason?

**Tags:** blockchain, bitcoind, linux


---

## 2 answers

### Answer by username_1 on 2015-05-16. Score: 1

This is very likely to be a Firewall problem.
The "sendto: operation not permitted" is the typical message you get from an iptables reject

i never run a full bitcoind myself but looking at the documentation you need port **tcp:8333** inbound and , i guess, at least **HTTP and HTTPS** outbound ...

check your firewall with

```
iptables -L -n

```

if the firewall is running, just to confirm you might try to stop the firewall and see if it fixes your problem.


---

### Answer by username_2 on 2015-05-15. Score: 1

Most likely SELinux.

`~/public_html` is not the correct place to store binaries or even the bitcoin data directory.

Put the binaries in `~/bin/`

The data files should end up in `~/.bitcoin/` if you haven't changed the configuration. That should be okay.

If it still doesn't work you might need to run `restorecon -R ~/bin` to fix SELinux attributes.

> **Comments:**
> **username_0**: `root/public_html/server/bin/ ` here is my bitcoind . and data file is  `'root/.bitcoin/` . what is the problem?? i run the command `restorecon -R ~/bin`. sitill same this.. pls give me some solution  
> **username_2**: public_html is for serving web pages, not for binaries. Put the bitcoin binaries in ~/bin/ . AFTER moving you may need to run restorecon.  Also don't run bitcoin (or anything) as root, create a new user and run bitcoin as that user. Once you have it working you probably want to set it up as a systemd service, which is very simple.  

---

