성태의 닷넷 이야기
홈 주인
모아 놓은 자료
프로그래밍
질문/답변
사용자 관리
사용자
메뉴
아티클
외부 아티클
유용한 코드
온라인 기능
MathJax 입력기
최근 덧글
[정성태] Working with Rust Libraries from C#...
[정성태] Detecting blocking calls using asyn...
[정성태] 아쉽게도, 커뮤니티는 아니고 개인 블로그입니다. ^^
[정성태] 질문이 잘 이해가 안 됩니다. 우선, 해당 소스코드에서 ILis...
[양승조
] var대신 dinamic으로 선언해서 해결은 했습니다. 맞는 해...
[양승조
] 또 막혔습니다. ㅠㅠ var list = props[i].Ge...
[양승조
] 아. 감사합니다. 어제는 안됐던것 같은데....정신을 차려야겠네...
[정성태] "props[i].GetValue(props[i])" 코드에서 ...
[정성태] 저렇게 조각 코드 말고, 실제로 재현이 되는 예제 프로젝트를 압...
[정성태] Modules 창(Ctrl+Shift+U)을 띄워서, 해당 Op...
글쓰기
제목
이름
암호
전자우편
HTML
홈페이지
유형
제니퍼 .NET
닷넷
COM 개체 관련
스크립트
VC++
VS.NET IDE
Windows
Team Foundation Server
디버깅 기술
오류 유형
개발 환경 구성
웹
기타
Linux
Java
DDK
Math
Phone
Graphics
사물인터넷
부모글 보이기/감추기
내용
<div style='display: inline'> <h1 style='font-family: Malgun Gothic, Consolas; font-size: 20pt; color: #006699; text-align: center; font-weight: bold'>warning: 'C:\ProgramData/Git/config' has a dubious owner: '...'.</h1> <p> 이전에도 한 번 다룬 적이 있는 오류인데,<br /> <br /> <pre style='margin: 10px 0px 10px 10px; padding: 10px 0px 10px 10px; background-color: #fbedbb; overflow: auto; font-family: Consolas, Verdana;' > git fetch - warning: 'C:\ProgramData/Git/config' has a dubious owner: '(unknown)'. ; <a target='tab' href='https://www.sysnet.pe.kr/2/0/12016'>https://www.sysnet.pe.kr/2/0/12016</a> </pre> <br /> 이번에는 <a target='tab' href='https://www.sysnet.pe.kr/2/0/12202#localsystem'>GitLab Runner를 Local SYSTEM 권한으로 실행하는 경우</a> 로그에 다음과 같이 'dubious owner' 경고가 발생했습니다.<br /> <br /> <pre style='margin: 10px 0px 10px 10px; padding: 10px 0px 10px 10px; background-color: #fbedbb; overflow: auto; font-family: Consolas, Verdana;' > Running with gitlab-runner 12.8.0 (1b659122) on JENNIFER .NET AGENT Build hu3PeNxo section_start:1584512771:prepare_executor Using Shell executor... section_end:1584512771:prepare_executor section_start:1584512771:prepare_script Running on J5BUILD... section_end:1584512771:prepare_script section_start:1584512771:get_sources Fetching changes with git depth set to 50... <span style='color: blue; font-weight: bold'>warning: 'C:\ProgramData/Git/config' has a dubious owner: 'TestUsr'.</span> For security reasons, it is therefore ignored. To fix this, please transfer ownership to an admininstrator. warning: 'C:\ProgramData/Git/config' has a dubious owner: 'TestUsr'. For security reasons, it is therefore ignored. To fix this, please transfer ownership to an admininstrator. Reinitialized existing Git repository in D:/GitLab-Runner/builds/hu3PeNxo/0/testusr/testprj/.git/ warning: 'C:\ProgramData/Git/config' has a dubious owner: 'TestUsr'. For security reasons, it is therefore ignored. To fix this, please transfer ownership to an admininstrator. warning: 'C:\ProgramData/Git/config' has a dubious owner: 'TestUsr'. For security reasons, it is therefore ignored. To fix this, please transfer ownership to an admininstrator. ...[생략]... </pre> <br /> 실제로, psexec.exe를 이용해 "Local SYSTEM" 계정의 cmd.exe 창을 띄운 후 "git fetch origin" 명령을 실행해 보면 동일한 경고가 뜹니다.<br /> <br /> <pre style='margin: 10px 0px 10px 10px; padding: 10px 0px 10px 10px; background-color: #fbedbb; overflow: auto; font-family: Consolas, Verdana;' > c:\temp> <span style='color: blue; font-weight: bold'>psexec -s -i cmd.exe</span> D:\GitLab-Runner\builds\hu3PeNxo\0\testusr\testprj> <span style='color: blue; font-weight: bold'>git fetch origin</span> warning: 'C:\ProgramData/Git/config' has a dubious owner: 'TestUsr'. For security reasons, it is therefore ignored. To fix this, please transfer ownership to an admininstrator. warning: 'C:\ProgramData/Git/config' has a dubious owner: 'TestUsr'. For security reasons, it is therefore ignored. To fix this, please transfer ownership to an admininstrator. warning: 'C:\ProgramData/Git/config' has a dubious owner: 'TestUsr'. For security reasons, it is therefore ignored. To fix this, please transfer ownership to an admininstrator. remote: HTTP Basic: Access denied fatal: Authentication failed for 'https://gitlab-ci-token:_....git/' </pre> <br /> 이번에는 "C:\ProgramData/Git/config" 파일도 있었기 때문에, 따라서 현재 로그인 계정으로는 저 경고가 발생하지 않으므로 다른 해결 방법이 필요했습니다. 혹시나 싶어, 출력된 메시지에 따라 "ownership"을 "administrator"로 줬는데 여전히 경고는 없어지지 않고 대신 사용자 이름만 "Administrator"로 바뀌었습니다.<br /> <br /> <pre style='margin: 10px 0px 10px 10px; padding: 10px 0px 10px 10px; background-color: #fbedbb; overflow: auto; font-family: Consolas, Verdana;' > D:\GitLab-Runner\builds\hu3PeNxo\0\testusr\testprj> <span style='color: blue; font-weight: bold'>git fetch origin</span> warning: 'C:\ProgramData/Git/config' has a dubious owner: '<span style='color: blue; font-weight: bold'>Administrator</span>'. For security reasons, it is therefore ignored. To fix this, please transfer ownership to an admininstrator. warning: 'C:\ProgramData/Git/config' has a dubious owner: 'Administrator'. For security reasons, it is therefore ignored. To fix this, please transfer ownership to an admininstrator. warning: 'C:\ProgramData/Git/config' has a dubious owner: 'Administrator'. For security reasons, it is therefore ignored. To fix this, please transfer ownership to an admininstrator. remote: HTTP Basic: Access denied fatal: Authentication failed for 'https://gitlab-ci-token:_....git/' </pre> <br /> 어쩔 수 없이 검색을 해봤더니,<br /> <br /> <pre style='margin: 10px 0px 10px 10px; padding: 10px 0px 10px 10px; background-color: #fbedbb; overflow: auto; font-family: Consolas, Verdana;' > Latest Update brings Github error on pull, push, or sync ; <a target='tab' href='https://stackoverflow.com/questions/57592530/latest-update-brings-github-error-on-pull-push-or-sync'>https://stackoverflow.com/questions/57592530/latest-update-brings-github-error-on-pull-push-or-sync</a> </pre> <br /> Administrator가 아닌 "Administrators" 그룹으로 ownership을 주어야 한다는 것입니다. ^^; 그래서 다음과 같이 설정해 주면,<br /> <br /> <img alt='dub_owner_by_system_1.png' src='/SysWebRes/bbs/dub_owner_by_system_1.png' /><br /> <br /> "dubious owner" 경고가 없어집니다.<br /> <br /> <pre style='margin: 10px 0px 10px 10px; padding: 10px 0px 10px 10px; background-color: #fbedbb; overflow: auto; font-family: Consolas, Verdana;' > D:\GitLab-Runner\builds\hu3PeNxo\0\testusr\testprj> <span style='color: blue; font-weight: bold'>git fetch origin</span> remote: HTTP Basic: Access denied fatal: Authentication failed for 'https://gitlab-ci-token:_....git/' </pre> <br /> <hr style='width: 50%' /><br /> <br /> 물론 "dubious owner" 경고는 무시해도 됩니다. 단지, 로그 파일이 지저분한 것을 못 봐주는 제 성격상... ^^; 저런 처리까지 한 것입니다.<br /> <br /> 참고로, Active Directory 환경이라면 도메인 범주로는 로컬 "Administrators" 그룹이 선택되지 않으므로 "Select User or Group" 창의 "Locations..." 버튼을 눌러 "컴퓨터" 이름에 대해 명시적인 선택을 해야 합니다.<br /> <br /> 그나저나... "Local SYSTEM"의 사용으로 인해 저렇게 지속적인 괴롭힘을 당하고 싶지 않다면, 애당초 GitLab Runner의 서비스 구동 계정을 로그인 계정과 동일한 것으로 변경하는 것이 좋습니다. ^^<br /> </p><br /> <br /><hr /><span style='color: Maroon'>[이 글에 대해서 여러분들과 의견을 공유하고 싶습니다. 틀리거나 미흡한 부분 또는 의문 사항이 있으시면 언제든 댓글 남겨주십시오.]</span> </div>
첨부파일
스팸 방지용 인증 번호
6656
(왼쪽의 숫자를 입력해야 합니다.)