Промяна на ограниченията в Windows XP и Windows server 2003

Един приятел скоро инсталирал XP на една машина и като администратор изтеглил куп неща в дял D: . След това направил потребителски имена на всички потребителите които ще ползват системата. Супер, но когато потребителя се логне в системата няма достъп до файловете в дял D:(тези които преди това моят приятел(като администратор) е добавил по- рано). За да предоставим достъп на потребителите в системата трябва да променим ограниченията на тези файлове чрез cacls:

D:\>cacls /?
Displays or modifies access control lists (ACLs) of files

CACLS filename [/T] [/E] [/C] [/G user:perm] [/R user […]]
[/P user:perm […]] [/D user […]]
filename      Displays ACLs.
/T            Changes ACLs of specified files in
the current directory and all subdirectories.
/E            Edit ACL instead of replacing it.
/C            Continue on access denied errors.
/G user:perm  Grant specified user access rights.
Perm can be: R  Read
W  Write
C  Change (write)
F  Full control
/R user       Revoke specified user’s access rights (only valid with /E).
/P user:perm  Replace specified user’s access rights.
Perm can be: N  None
R  Read
W  Write
C  Change (write)
F  Full control
/D user       Deny specified user access.
Wildcards can be used to specify more that one file in a command.
You can specify more than one user in a command.

Abbreviations:
CI – Container Inherit.
The ACE will be inherited by directories.
OI – Object Inherit.
The ACE will be inherited by files.
IO – Inherit Only.
The ACE does not apply to the current file/directory.

В този пример ще дадем пълни права на потребител „dr_nikolov“:

cacls d:/*.* /T /E /P dr_nikolov:f

Сега ще „разтълкувам“ предната команда:

1. calcs –  Името на приложението което използваме за промяна на ограниченята
2. „d:/*.*“ – Това са всички директории и файлове които се намират във дял D:
3. /T – Рекурсивно променя ограниченията на всички файлове и директории, вкл. и техните под директории
4. /E – Редактиране на ограниченията
5. /P dr_nikolov:f – Тук даваме „Full Control“ или пълен достъп до файловете на потребител „dr_nikolov“

Това е всичко 🙂

Категория:

Logged in as {{omniform_current_user_display_name}}. Edit your profile. Log out? Required fields are marked *

Your email address will not be published. Required fields are marked *

Comments are closed.

You must be logged in to post a comment.