Chinaunix

标题: 有人说只能root才能启动1024以下端口的服务,是这样么? [打印本页]

作者: tereal    时间: 2005-12-23 11:24
标题: 有人说只能root才能启动1024以下端口的服务,是这样么?
如题
作者: tereal    时间: 2005-12-23 15:36
收到,^_^\r\n我们的系统开发商的系统只能用root启动\r\n我给他的用户,应用就是起不来(已经是system组了)\r\n他就找理由说是其他用户不能启动1024以下端口的服务\r\n我总觉得没道理\r\nUNIX不至于做这样无聊的限制,呵呵
作者: Schnaufer    时间: 2005-12-23 16:23
标题: Re: 有人说只能root才能启动1024以下端口的服务,是这样么?
最初由 tereal 发布\r\n[B]如题 [/B]
\r\nhttp://www-1.ibm.com/support/docview.wss?uid=swg21054553\r\n\r\nThe restriction is true!
作者: westapple    时间: 2005-12-24 00:59
这篇文章说的是HTTP 服务器如果使用1024以下端口,需要以root用户启动。\r\n不是所有服务。\r\n\r\n“Running IBM® HTTP Server as non-root on Unix®\r\n\r\nProblem \r\nIs it possible to run IBM HTTP Server as a non-root process on Unix systems?  \r\n  \r\nSolution \r\nIt is possible to run IBM HTTP Server as a non-root process on a Unix system, but when doing so, use only nonstandard ports above 1024. Below are some snippets from the httpd.conf file showing the directives necessary to do this. After making these changes, stop and restart the server for the changes to take effect.”
作者: tereal    时间: 2005-12-24 20:43
google了一下,确实有这个说法,但所说的例子都是http,难道其他的服务不遵守这一限制?UNIX做这一限制的初衷是什么呢?
作者: orian    时间: 2005-12-25 13:17
还没有仔细研究,但可能由unix历史而来的。有研究过的么?




欢迎光临 Chinaunix (http://bbs.chinaunix.net/) Powered by Discuz! X3.2