In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-09-23 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/02 Report--
I. Access to directories and files
icacls D:\
Second, remove and add user rights (if prompted to refuse, please execute cmd with administrator rights).
icacls D:\ /remove "a username"
Add authorization to Authenticated Users.
icacls D:\ /grant "Authenticated Users":(M)
icacls D:\ /grant "Authenticated Users":(OI)(CI)(IO)(M)
Notes:
1. The declaration of inheritance should be placed before specific permissions. For example:(OI)(CI)(IO)(M) is correct, but (M)(OI)(CI)(IO) indicates invalid parameters.
2. The permissions in the simple permission sequence can be placed in () or not. For example, granting modification permission to Yifan can be written as icacls /grant Yifan:M or
icacls /grant yifan:(M)。
If only specific permissions are granted to the specified user, the permissions must be placed in (). For example, if icacls /grant yifan:(AD) is granted the right to read directories, then icacls /grant yifan:AD will prompt invalid parameters.
IV. Setting of Integrity Level
Set integrity level for test directory
icacls test /setintegritylevel (OI)(NP)(IO)H
Note that the level cannot be placed in ().
Two examples of recent work using icacls to add permissions in batches
(1)
for /f "skip=1 eol=;tokens=1-2 delims=," %a in (c:\yuyonghu-wenjianlujing.csv) do icacls %a /grant %b: /T
where: a and b are in csv file, after executing this statement, the root folder has permissions, but the subfiles and subfolders have no inheritance permissions
(2)
for /f "skip=1 eol=;tokens=1-2 delims=," %a in (c:\yuyonghu-wenjianlujing.csv) do icacls %a /grant %b:(OI)(CI)F /T
This statement adds (OI)(CI) to (1), and subfiles and subfolders inherit permissions.
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
The market share of Chrome browser on the desktop has exceeded 70%, and users are complaining about
The world's first 2nm mobile chip: Samsung Exynos 2600 is ready for mass production.According to a r
A US federal judge has ruled that Google can keep its Chrome browser, but it will be prohibited from
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
About us Contact us Product review car news thenatureplanet
More Form oMedia: AutoTimes. Bestcoffee. SL News. Jarebook. Coffee Hunters. Sundaily. Modezone. NNB. Coffee. Game News. FrontStreet. GGAMEN
© 2024 shulou.com SLNews company. All rights reserved.