SPATIUM Mobile
주소복사
About Operating System Languages Tools Favorites Notice Visit TEST  
     Android (3)
     Linux (1)
     MacOS (1)
     OS (1)
     Solaris10 (15)
     Windows (1)
     Windows Server (2)
     Windows XP (3)
   ID  
   Password  
  |  
  Location United States
  IP Address 18.216.186.164
2024. 04
123456
78910111213
1415161718
19
20
21222324252627
282930
Category  OperatingSystem, Windows
Writer 김태우 Date 2014-12-01 16:32:53 Visit 3021
파일 권한 부여, 수정

 

파일 권한 부여, 수정

 

1. 소유권 변경

- 대상이 파일인 경우

takeown /f c:\file.exe

- 대상이 폴더인 경우

takeown /f c:\folder /r /d y

 

2. 권한 변경

- 대상이 파일인 경우

icacls c:\file.exe /grant Administrators:F

icacls c:\file.exe /grant 특정계정:F

icacls c:\file.exe /grant %user%:F

- 대상이 폴더인 경우

icacls c:\file.exe /grant Administrators:F /t

icacls c:\file.exe /grant 특정계정:F /t

icacls c:\file.exe /grant %user%:F /t

 

* 여기서 Administrators는 그룹으로, 관리자 계정인 Administrator가 아닙니다.

* %user%는 배치파일내에서 사용할때의 변수입니다.

 

 

 

Tags  takeown, icacls , Administrators, 권한 변경
  Relation Articles
[OperatingSystem-Windows] 파일 권한 부여, 수정 (2014-12-01 16:32:53)
  Your Opinion
Member ID
150 letters
Copyright (C) SPATIUM. All rights reserved.
[SPATIUM]WebMaster Mail