免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 1770 | 回复: 1
打印 上一主题 下一主题

文件owner,group权限问题求教!!! [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2011-12-21 19:47 |只看该作者 |倒序浏览


      

   
    这个文件settng.inc的owner和group都是zqy,同时APACHE服务器的默认用户apche也已经加入zqy组,
    但这个时候apache用户似乎没有对这个文件的写权限。如果owner改成apache是可以的。
    应该是我哪里基本概念出错了。
    还望各位高手指点!
   
   

论坛徽章:
5
金牛座
日期:2015-07-03 13:32:00卯兔
日期:2015-07-03 13:32:17程序设计版块每日发帖之星
日期:2015-11-29 06:20:0015-16赛季CBA联赛之同曦
日期:2015-12-15 09:36:06CU十四周年纪念徽章
日期:2016-07-06 17:18:48
2 [报告]
发表于 2011-12-22 11:02 |只看该作者
  1. [root@s2 ~]# tail -2 /etc/passwd
  2. test-1:x:500:500::/home/test-1:/bin/bash
  3. test-2:x:501:501::/home/test-2:/bin/bash
  4. [root@s2 ~]# tail -2 /etc/group
  5. test-1:x:500:test-2
  6. test-2:x:501:
  7. [root@s2 ~]# su - test-2
  8. [test-2@s2 ~]$ cd /opt/test
  9. [test-2@s2 test]$ ll
  10. 总计 4
  11. -rw-rw-r-- 1 test-1 test-1 26 12-22 10:57 test.txt
  12. [test-2@s2 test]$ cat test.txt
  13. hello
  14. world
  15. test-1
  16. test-2
  17. [test-2@s2 test]$ vi test.txt
  18. [test-2@s2 test]$ more test.txt
  19. hello
  20. world
  21. test-1
  22. test-2
  23. test-3
  24. [test-2@s2 test]$ id test-2
  25. uid=501(test-2) gid=501(test-2) groups=501(test-2),500(test-1)
  26. [test-2@s2 test]$
复制代码
试了下,没问题。。
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP