当前时区 GMT+8, 现在时间是 2008-9-5 16:36 游客: 注册 登录 仅登录论坛 | 搜索 帮助
标题: group
超级用户
银牌会员
Rank: 6Rank: 6



UID 980
精华 3
积分 2050
帖子 817
阅读权限 70
注册 2002-7-6
来自 China
状态 离线
发表于 2002-11-14 23:44  资料  短消息  加为好友 
group

两个用户(haha和frined)分属两个组群(haha和friend)。
haha是常规用户,friend是给朋友开的ftp帐号(无shell)。想让haha管理/home/friend的文件。

现在组群friend中加入了haha用户,并将/home/friend设定成775,为何haha向/home/friend里送文件时仍然提示没有写权限?

顶部
sd444
中级会员
Rank: 3Rank: 3


UID 954
精华 4
积分 741
帖子 290
阅读权限 30
注册 2002-7-6
来自 China
状态 离线
发表于 2002-11-15 00:34  资料  短消息  加为好友 
chown -r haha /home/friend
然后再看看,可以么?

顶部
超级用户
银牌会员
Rank: 6Rank: 6



UID 980
精华 3
积分 2050
帖子 817
阅读权限 70
注册 2002-7-6
来自 China
状态 离线
发表于 2002-11-15 07:56  资料  短消息  加为好友 
[quote:7b886d0a51="sd444"]chown -r haha /home/friend
然后再看看,可以么?[/quote]

可是该目录的所有者应该是friend啊

顶部
高原之狼
注册会员
Rank: 2


UID 4364
精华 1
积分 105
帖子 40
阅读权限 20
注册 2002-10-30
来自 USA.gif
状态 离线
发表于 2002-11-16 17:45  资料  短消息  加为好友 
I am suspecting that you did not change the permission correctly.

Did you change the permission of all the files and subdirectories under /home/friend?  If not
# chmod -R 775 /home/friend
should do the work.

顶部
gugong
公社版主



UID 1082
精华 24
积分 12670
帖子 9928
阅读权限 225
注册 2002-7-7
来自 深圳 - 上海
状态 在线
发表于 2002-11-19 17:52  资料  主页 短消息  加为好友  添加 gugong 为MSN好友 通过MSN和 gugong 交谈 QQ Yahoo!
将 friend 的主目录 (/home/haha/friend)放在 haha (/home/haha)的主目录下。

将  haha 和 friend 都归于一个组,例如 friend 。

将 friend 的 目录 (/home/haha/friend) 和 (/home/haha/friend)下面的文件设为 775 。







       高举马列主义毛泽东思想 !!!
顶部
 


Powered by Discuz! 5.5.0  © 2001-2007 Comsenz Inc.
清除 Cookies - 联系我们 - 中国Linux公社 - WAP