Created
March 13, 2019 04:43
-
-
Save geunho/49a5a6fc7d5ce6857dfc08bccccab76f to your computer and use it in GitHub Desktop.
Windows 서비스 권한 정책에 실행 계정 추가
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sc 명령어는 서비스 생성/삭제 뿐만아니라 시작/중지 명령어를 원격 서버에 날릴 수 있다. | |
원격 사용자가 로컬 관리자 그룹에 속해있다면 원격 제어에 문제가 없으나, 그렇지 못할 경우 subInAcl 커맨드를 활용하면 된다. | |
1. SubInAcl 툴 다운로드: https://www.microsoft.com/en-us/download/details.aspx?id=23510 | |
2. 명령어 실행: | |
# 원격 호스트 | |
subinacl /SERVICE \\[호스트명]\[서비스명] /GRANT=[도메인]\[실행계정명]=TOS | |
# 로컬 호스트 | |
subinacl /SERVICE [서비스명] /GRANT=[도메인]\[실행계정명]=TOS | |
# F : Full Control | |
# R : Generic Read | |
# W : Generic Write | |
# X : Generic eXecute | |
# L : Read controL | |
# Q : Query Service Configuration | |
# S : Query Service Status | |
# E : Enumerate Dependent Services | |
# C : Service Change Configuration | |
# T : Start Service | |
# O : Stop Service | |
# P : Pause/Continue Service | |
# I : Interrogate Service | |
# U : Service User-Defined Control Commands |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment