퇴사했습니다.

2011년 10월말일자로 퇴사했습니다.
만으로 15년을 한 회사를 다녔네요.

얼마동안은 그 근처에 가면 예전 동료들 보러 놀러도 가고 그랬는데,
떠난지 세달째에 접어드니 이젠 좀 남의회사 같네요. ㅋㅋ

당분간은,
푹 좀 쉬려고 합니다.  ^.^


selinux에서 samba설정 프로그래밍

뭐가 이리 어려워졌노~~
새로 리눅스(CentOS 6.1)를 깔았는데 십년넘게 써온 익숙한 방법으로 삼바(samba.i686)에 연결 되질 않는다. 

첫번째 문제는 방화벽이었고,
두번째 문제는 바로 이것이었다. 

SElinux에 대한 것은 차차 연구해보기로하고,
아래처럼 삼바로 공유할 폴더에 뭔가 작업을 해주지 않으면 연결할 수 없게 된다. 

chcon 이라는 생소한 명령어
#chcon -t samba_share_t /path

setsebool 이라는 역시나 생소한 명령어
#/usr/s/bin/setsebool -P samba_export_all_rw on

설정이 잘 되었는지 ls의 옵션으로 확인할 수 있다. 
[root@fedora shieder]# ls -ldZ /path
drwxr-xr-x  root root system_u:object_r:samba_share_t:s0 /path



mys.dll 이용한 서버권한 얻기 프로그래밍

mys.dll 을 검색하다가 발견한 내용
http://social.technet.microsoft.com/Forums/en-US/ITCG/thread/406324ec-ee0f-44e1-a295-48f7cebc73d9

"Hopefully I found an alternative superclass workaround.
Checked that Manage Your Server shortcut opens mys.dll/mys.hta. So I've opened mys.dll in ResHack, got to section mys.hta, an I found out that it actually is a javascript involving a ServerAdmin.ManageYourServer object, calling the GetConfiguredRoleMarkup Property, which actually gives back an xml structure including the Roles. It was just a piece of cake gathering the Roles using regEx. Putting the whole script in a batch-file, which executes it using psexec on 207 servers, making a csv output solved my problem. 

Can someone come up with any elegant and professional solution? The mess what I've done fulfills my needs, but is not quite clear and optimal to be offered for public uses."


구글번역:

다행스럽게도 필자는 대안 슈퍼 해결 방법을 발견했습니다.
서버 바로가기 mys.dll / mys.hta을 엽니다 관리되는지 점검. 그래서 섹션 mys.hta, 나는 그것이 실제로 실제로 다시 역할을 포함하여 XML 구조를 제공 GetConfiguredRoleMarkup 속성을 호출, ServerAdmin.ManageYourServer 개체를 포함하는 자바 스크립트는 걸 알게 돼, ResHack에서 mys.dll 열었습니다 . 그냥 정규식을 사용하여 역할을 수집 케잌 한조각했습니다. 그것이 CSV 출력을 만드는 207 서버에 psexec를 사용하여 실행하는 배치 파일에 전체 스크립트를 퍼팅이 내 문제를 해결.

누군가는 우아하고 전문적인 솔루션으로 올라 가도 돼? 내가 한 일을 엉망이 내 요구 사항을 충족하지만, 매우 명확하고 공공 용도로 제공하는 최적되지 않습니다.

1 2 3 4