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 of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In
Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.