由 emylekao 在 01-17-2004 20:43 发表:
普通用户无法启动httpd
root可以顺利启动,可是普通用户就不可以,出现如下提示信息:
$ /server/httpd/bin/httpd
(13)Permission denied: make_sock: could not bind to address 127.0.0.1:80
no listening sockets available, shutting down
Unable to open logs
我已经把httpd安装目录及其下所有文件目录设置成该普通用户所有。
关于Python/PHP、Linux和FreeBSD。
Linux/FreeBSD忠实爱好者
希望对推动Linux在中国的发展略尽微薄之力。
Fedora core 2 & FreeBSD 4.10
由 Snoopy 在 01-18-2004 00:52 发表:
干嘛要让普通用户启动?
你把安装目录给了它,,那其他文件呢?只是chgrp?那权限呢
And then in the evening light, when the bars of freedom fall
I watch the two of you in the shadows on the wall
How in the darkness steals some of the choices from my hand
Then will I begin to under
由 emylekao 在 01-18-2004 07:44 发表:
使用普通用户启动相对安全啊!
我使用 chown -R user.user 来更改所属用户。
你说的其他文件是什么?
关于Python/PHP、Linux和FreeBSD。
Linux/FreeBSD忠实爱好者
希望对推动Linux在中国的发展略尽微薄之力。
Fedora core 2 & FreeBSD 4.10
由 baif 在 01-18-2004 13:49 发表:
回复: 普通用户无法启动httpd
> quote:
>
> * * *
>
> 最初由 emylekao 发表
>
> **root可以顺利启动,可是普通用户就不可以,出现如下提示信息:
>
> $ /server/httpd/bin/httpd
>
> (13)Permission denied: make_sock: could not bind to address 127.0.0.1:80
>
> no listening sockets available, shutting down
>
> Unable to open logs
>
>
>
> 我已经把httpd安装目录及其下所有文件目录设置成该普通用户所有。 **
>
> * * *
(13)Permission denied: make_sock: could not bind to address 127.0.0.1:80
1024以下端口只有root权限才能占用,在配置文件里把端口改成别的。
http://baif.51.net/guestbook/guest.php
I need a VirtualHost with PostgreSQL+PHP5.0
由 emylekao 在 01-18-2004 19:20 发表:
这样?那能不能让普通用户比如apache能够启动使用80端口呢?
也就是说,我又想用普通用户启动httpd,又想使用80端口,可以吗?
关于Python/PHP、Linux和FreeBSD。
Linux/FreeBSD忠实爱好者
希望对推动Linux在中国的发展略尽微薄之力。
Fedora core 2 & FreeBSD 4.10
由 Glue 在 01-19-2004 21:25 发表:
chmod +s /server/httpd/bin/httpd
让普通用户以root的身份来执行 (后果自负...)
-_-
由 emylekao 在 01-19-2004 21:40 发表:
> quote:
>
> * * *
>
> 最初由 Glue 发表
>
> **chmod +s /server/httpd/bin/httpd
>
> 让普通用户以root的身份来执行 (后果自负...) **
>
> * * *
$ /server/httpd/bin/httpd
(13)Permission denied: make_sock: could not bind to address 127.0.0.1:80
no listening sockets available, shutting down
Unable to open logs
不行啊!这样做不但普通用户不行,root页不行。郁闷!
关于Python/PHP、Linux和FreeBSD。
Linux/FreeBSD忠实爱好者
希望对推动Linux在中国的发展略尽微薄之力。
Fedora core 2 & FreeBSD 4.10
由 Glue 在 01-20-2004 12:58 发表:
root也不行
那就是80已经被占用了。
-_-
由 hgkrt 在 01-20-2004 21:34 发表:
都是root启动,但是连接的时候,都是nobody组的用户...
欢迎访问我的个人主页!!!
主机:
网上空间:
http://www.paw.hi-ho.ne.jp/hgkrt
由 emylekao 在 01-21-2004 12:15 发表:
> quote:
>
> * * *
>
> 最初由 Glue 发表
>
> **root也不行
>
> 那就是80已经被占用了。 **
>
> * * *
使用chmod -s之后可以用root了。是+s之后不行的。
关于Python/PHP、Linux和FreeBSD。
Linux/FreeBSD忠实爱好者
希望对推动Linux在中国的发展略尽微薄之力。
Fedora core 2 & FreeBSD 4.10
由 emylekao 在 01-21-2004 12:16 发表:
> quote:
>
> * * *
>
> 最初由 hgkrt 发表
>
> 都是root启动,但是连接的时候,都是nobody组的用户...
>
> * * *
能说的详细一些吗?
是不是说即使用root启动,连接httpd的时候,也不能以root来执行程序(如果被人hack的话)?
关于Python/PHP、Linux和FreeBSD。
Linux/FreeBSD忠实爱好者
希望对推动Linux在中国的发展略尽微薄之力。
Fedora core 2 & FreeBSD 4.10
由 Snoopy 在 01-21-2004 12:18 发表:
终觉得普通用户开http不比root安全,,
And then in the evening light, when