-
Notifications
You must be signed in to change notification settings - Fork 0
/
page46.html
84 lines (72 loc) · 2.84 KB
/
page46.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
<!DOCTYPE html>
<html lang="ja">
<head>
<meta charset="UTF-8">
<meta name="keywords" content="Raspberry Pi,ping,linux">
<title>Raspberry Pi で ping を打とうとしたら ping: icmp open socket: Operation not permitted といわれた | ざきのメモ</title>
<link rel="stylesheet" href="style.css">
<link rel="icon" type="image/png" href="favicon.png">
<script async src="//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>
<script>
(adsbygoogle = window.adsbygoogle || []).push({
google_ad_client: "ca-pub-6967324061031661",
enable_page_level_ads: true
});
</script>
<script async src="https://www.googletagmanager.com/gtag/js?id=UA-126261673-1"></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());
gtag('config', 'UA-126261673-1');
</script>
<script src="https://cdn.rawgit.com/google/code-prettify/master/loader/run_prettify.js?skin=desert"></script>
<script type="text/javascript" src="vimlike.js"></script>
</head>
<body>
<div class="wrap">
<header>
<h1><a href="index.html">ざきのメモ</a></h1>
</header>
<div class="main">
<article>
<h4>2020/11/11</h4>
<h1>Raspberry Pi で ping を打とうとしたら ping: icmp open socket: Operation not permitted といわれた</h1>
<p>ping を打とうとし、権限で怒られたので、対処方法をメモします。</p>
<!-- BannerAd -->
<div class="ad" align="center">
<ins class="adsbygoogle" style="display:inline-block;width:728px;height:90px" data-ad-client="ca-pub-6967324061031661" data-ad-slot="8640896526"></ins>
<script>(adsbygoogle = window.adsbygoogle || []).push({});</script>
<!-- ad --></div>
<h2>環境</h2>
<ul>
<li>Raspberry Pi 3 model B</li>
<li>Raspbian GNU/Linux 8</li>
</ul>
<h2>解決方法</h2>
<h3>1, ping コマンドのパスを確認</h3>
<p>以下のコマンドでパスを確認できます。</p>
<pre class="prettyprint"><code>$ which ping</code></pre>
<h3>2, 権限を付与 (上記パスが /bin/ping だった場合)</h3>
<p>SUID を設定しています。</p>
<pre class="prettyprint"><code>$ chmod u+s /bin/ping</code></pre>
<h2>参考</h2>
<ul>
<li><a href="https://qiita.com/tukiyo3/items/cb286c6ea0a4cbd51a7f">ping: icmp open socket: 許可されていない操作です - Qiita</a></li>
</ul>
<!-- BannerAd -->
<div class="ad" align="center">
<ins class="adsbygoogle" style="display:inline-block;width:728px;height:90px" data-ad-client="ca-pub-6967324061031661" data-ad-slot="5584717331"></ins>
<script>(adsbygoogle = window.adsbygoogle || []).push({});</script>
<!-- ad --></div>
<ul style="list-style-type:circle">
<li><a href="index.html">トップへもどる</a></li>
</ul>
</article>
<footer>
<small>Copyright © 2017-2021 Ryo Okazaki, all rights reserved.</small>
</footer>
<!-- main --></div>
<!-- wrap --></div>
</body>
</html>