由 hyboy 在 06-27-2004 12:38 发表:
谁可以提供虚拟主机方案?WEB+FTP。。。
个人使用linux不久,经验几乎没有
我在使用过程中架设自己的web站点,使用apache...
权限是user apache group apache
ftp是vsftpd
如何实现开FTP帐号和WEB站点目录权限相同呢。。。
比如web目录的所有权是apache 这样如果一个文件属性是644 才能正常的读写
通过ftp登陆的话就无法读写了
如果设置为666倒是可以,但是小弟使用cgi程序,生成的一些文件属性全是644
目前我自己的办法就是把user apache来登陆ftp....
如果想开2个帐号到web和ftp目录下就没办法了,各位大哥可以给点帮助吗。
由 Snoopy 在 06-27-2004 13:03 发表:
chgrp,chmod,chown
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
由 hyboy 在 06-27-2004 13:09 发表:
谢谢楼上的回答。
但是我的论坛是leobbs
文本的。每发一个新帖都是apache权限来写文本文件的
新写的文件属性又是644 ,这样ftp就没有权限了
如果我把权限给予chown ftp.ftp /www 的话
那样apache就只能读了……
由 Snoopy 在 06-27-2004 13:43 发表:
论坛 ? 搞混了,,,听不是很懂你的意思
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
由 hyboy 在 06-27-2004 14:08 发表:
小弟语言能力有限。
我再讲一次试试
是这样的。。。
我的web 产生的数据文本文件 所有权和组是apache apache 属性644
ftp用户没有权限写啊。。。
你的意思是让我重新设置一下属性。。
我设置后 web cgi还会产生新的属于apache apache权限 644的新的文本数据文件。。。
所以。。。我不知道怎么办了
由 hyboy 在 06-28-2004 10:41 发表:
小弟还有个想法.就是把只要通过vsftpd登陆的用户上传的文件默认归属为apache ...
但是不知道如何设置.哎.没有太好的办法.
如果是这样的话,如果多个站点支持 cgi的话权限问题就麻烦了..
由 北南南北 在 06-28-2004 10:54 发表:
在ftp中设置一个用户为apache就行了,然后把ftp中apache这个用户的家目录设