China DOS Union

-- Unite DOS · Advance DOS · Grow DOS --

Union site: www.cn-dos.net Forum site: www.cn-dos.net/forum
DOS stands for freedom, openness and progress. Let us work hard, learn from the openness and GNU spirit of FreeDOS and Linux, and together build and grow a free GNU GPL world!

中国DOS联盟论坛
The time now is 2026-08-12 13:14
中国DOS联盟论坛 » DOS批处理 & 脚本技术(批处理室) » How to set directory permissions that allow creation and deletion but not modification? View 2,473 Replies 19
Floor 16 Posted 2009-09-13 12:43 ·  中国 陕西 西安 电信
银牌会员
★★★★
钻石会员
Credits 2,278
Posts 1,020
Joined 2007-11-19 13:34
18-year member
UID 103127
Gender Male
Status Offline
My system doesn't have that kind of format as you mentioned.

A screenshot:


By the way The NTFS format you mentioned, I also saw it in the forum
But I don't know how this "appearance" is set.

[ Last edited by plp626 on 2009-9-13 at 12:45 ]
山外有山,人外有人;低调做人,努力做事。

进入网盘(各种工具)~~ 空间~~cmd学习
Floor 17 Posted 2009-09-13 14:19 ·  中国 北京 海淀区 联通
银牌会员
★★★★
[b]看你妹啊[/b]
Credits 1,488
Posts 1,357
Joined 2006-05-20 12:00
20-year member
UID 55770
Status Offline
The default XP system does not display the security options. You can get them by canceling the simple sharing.

有问题请发论坛或者自行搜索,再短消息问我的统统是SB
Floor 18 Posted 2009-09-14 01:38 ·  中国 广东 广州 天河区 电信
金牌会员
★★★★
一叶枝头,万树皆春
Credits 2,564
Posts 1,127
Joined 2006-12-25 22:57
19-year member
UID 74552
Gender Male
Status Offline
49206C6F766520796F752067757973 54656C3A3133383238343036373837
Floor 19 Posted 2009-09-14 02:52 ·  中国 陕西 西安 电信
铂金会员
★★★★
Credits 5,212
Posts 2,478
Joined 2007-02-08 23:39
19-year member
UID 79003
Gender Male
Status Offline
Open any folder, Tools, Folder Options. Remove the simple sharing.
S smile 微笑,L love 爱,O optimism 乐观,R relax 放松,E enthusiasm 热情...Slore
Floor 20 Posted 2009-09-18 07:51 ·  中国 福建 三明 电信
中级用户
★★
Credits 458
Posts 211
Joined 2006-07-26 19:42
20-year member
UID 59307
Status Offline
Originally posted by plp626 at 2009-9-13 03:17:
Is my requirement contradictory?!


It should not be contradictory. Just set permissions for directories and files separately.

I don't know how to use xcacls, I use setAcl

The shortcoming is that the second point "cut to" cannot be implemented.
Explanation: Among them, D:\test is the parent directory of the directory to be obtained, and target is the directory to be obtained.
Related post: http://bbs.bathome.cn/thread-3670-1-1.html
set "sup_dir=D:\test"
set "tar_dir=%sup_dir%\target"
md "%tar_dir%"
SetACL.exe -on "%sup_dir%" -ot file^
-actn clear -clr "dacl,sacl"^
-actn ace -ace "n:everyone;p:list_dir;i:sc;m:set"^
-actn setprot -op "dacl:p_nc;sacl:p_nc"

SetACL.exe -on "%tar_dir%" -ot file^
-actn clear -clr "dacl,sacl"^
-actn ace -ace "n:everyone;p:list_dir,del_child,read_ea;i:sc,so;m:set"^
-ace "n:everyone;p:add_file,add_subdir;i:sc;m:grant"


Originally , but still keep it, so I won't delete it.

[ Last edited by wxcute on 2009-9-18 at 07:54 ]
Recent Ratings for This Post ( 1 in total) Click for details
RaterScoreTime
plp626 +5 2009-09-19 02:13
┌───────┐
├→学习→实践→┤
└───────┘
Forum Jump: