标题:a question abt operate permission.
只看楼主
aipb2OO7
Rank: 1
等 级:新手上路
帖 子:41
专家分:0
注 册:2007-8-30
 问题点数:0 回复次数:4 
a question abt operate permission.
description :
I use root status to create a directory, and set the access permission only to owner.
This is an ex:
mkdir -m 700 test (root status)
Then I change my status to a general user.
Now I can't open the dir-"test" and can't do operation like "ls" on it.This is all right because of my setting(700).
But the problem is the general user can delete the dir-"test".
Why?The other user("here means general user")have no right abt "w" mod(means modify delete copy...).
I think it's too dengerous,or sth. wrong with my operations.

Pls clear me!

Sorry ,no chinese input.
搜索更多相关主题的帖子: permission question abt operate 
2007-10-07 16:13
aipb2OO7
Rank: 1
等 级:新手上路
帖 子:41
专家分:0
注 册:2007-8-30
得分:0 
By the way, my os is ubuntu7.04.

[glow=255,yellow,5]菜鸟一个.以后靠你们了..[/glow]
2007-10-07 16:14
可可熊
Rank: 3Rank: 3
等 级:新手上路
威 望:9
帖 子:553
专家分:0
注 册:2007-6-15
得分:0 
I think other user have access to test's parent directory,so they can delete it.

2007-10-07 16:27
aipb2OO7
Rank: 1
等 级:新手上路
帖 子:41
专家分:0
注 册:2007-8-30
得分:0 
Yes,you mean like this:

test1 (created by user)

test1/test2 (test2 created by root)

so user can delete test2


but I think the test2 's strribute is "rwx------" so the others can't operate on it except root.
help me.

[glow=255,yellow,5]菜鸟一个.以后靠你们了..[/glow]
2007-10-07 16:41
woodhead
Rank: 3Rank: 3
等 级:新手上路
威 望:9
帖 子:1124
专家分:0
注 册:2005-7-18
得分:0 
I think yes if it's a empty dir .
if the dir has a file create by root in it,
you can't delete the directory by user's power.

2007-10-07 17:04



参与讨论请移步原网站贴子:https://bbs.bccn.net/thread-175648-1-1.html




关于我们 | 广告合作 | 编程中国 | 清除Cookies | TOP | 手机版

编程中国 版权所有,并保留所有权利。
Powered by Discuz, Processed in 0.148646 second(s), 7 queries.
Copyright©2004-2024, BCCN.NET, All Rights Reserved