Translated message

A translation of this page exists in English.

RHEL6 で、root 以外のユーザーがデバッグモード (-d) で ftp を実行すると、setsockopt エラーが発生する

Solution Unverified - Updated -

Issue

非特権ユーザーが ftp スクリプト (ftp -dvn < ftp_commands) を実行すると、以下のエラーが発生します。

ftp> ls
ftp: setsockopt (ignored):Permission denied

strace に以下が出力されます。

bind(4, {sa\_family=AF\_INET, sin\_port=htons(0), sin\_addr=inet\_addr("172.21.25.16")}, 128) = 0
setsockopt(4, SOL\_SOCKET, SO\_DEBUG, [1], 4) = -1 EACCES (Permission denied)

root ユーザーが ftp を実行すると、エラーは発生しません。

Environment

  • Red Hat Enterprise Linux 6
  • ftp-0.17-51.1.el6.x86_64

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content