외부에서 xdm/kdm 환경으로 접속하기

고객지원 지식기반 (cg_xdmcp)
적용 범위

SuSE Linux: 버전 6.2


Symptom:

그래픽 로그인인 kdm이나 xdm을 환경설정하고 나면 다른 리눅스 컴퓨터에서도 X -query computername 명령으로 현재 동작하고 있는 로그인 매니저에 접속을 할 수 있게 됩니다. 이것은 xdm을 사용하고 있다면 별 문제가 되지 않지만 만약 kdm을 사용하고 있다면 다른 모든 사용자들이 kdm 로그인 스크린의 셧다운 다이알로그를 사용해서 컴퓨터를 셧다운 시 킬 수 있는 문제가 생깁니다. 즉, 해당 컴퓨터에 대한 접속 계정을 갖고 있는 않는 사람도 이 컴퓨터를 셧다운시킬 수 있다는 것입니다.

Cause:

표준 환경 설정에서는 모든 사람들이 xdm/kdm 로그인 매니저에 접속할 수 있도록 허용됩 니다. 이 문제는 /usr/X11R6/lib/X11/xdm/Xaccess 파일을 편집해 줌으로 해서 해결할 수 있습니다.

Solution:

/user/X11R6/lib/X11/Xaccess 파일에서 다음 라인들을 찾으십시오.

# In all cases, xdm uses the first entry which matches the terminal;
# for IndirectQuery messages only entries with right hand sides can
# match, for Direct and Broadcast Query messages, only entries without
# right hand sides can match.
#

*                                      #any host can get a login window

그리고 이 파일의 마지막 부분에 있는 다음 라인들을 찾으십시오.

# The nicest way to run the chooser is to just ask it to broadcast
# requests to the network - that way new hosts show up automatically.
# Sometimes, however, the chooser can't figure out how to broadcast,
# so this may not work in all environments.
#

*              CHOOSER BROADCAST       #any indirect host can get a chooser

이 라인들을 다음과 같이 변경시켜 줍니다. 이때 "*"앞에 "!"를 첨가시켜 주면 코멘트가 바 뀌게 됩니다.

# In all cases, xdm uses the first entry which matches the terminal;
# for IndirectQuery messages only entries with right hand sides can
# match, for Direct and Broadcast Query messages, only entries without
# right hand sides can match.
#

!*                                      #no host can get a login window
bzw.
# The nicest way to run the chooser is to just ask it to broadcast
# requests to the network - that way new hosts show up automatically.
# Sometimes, however, the chooser can't figure out how to broadcast,
# so this may not work in all environments.
#

!*              CHOOSER BROADCAST       #no indirect host can get a chooser

이렇게 변경을 해 주고 나서 xdm/kdm 로그인 매니저를 시작하면 xdm/kdm이 시작된 X 서 버에 의해서만 접속이 가능하게 됩니다. 그래서 네트워크를 통해서 이 매니저에 접속을 하 려는 것이 실패하게 됩니다.


키워드: KDM, XDM, KDE, SHUTDOWN

SDB-cg_xdmcp, Copyright SuSE Linux AG, Nrnberg, Germany - 버전: 19. Feb 2001
SuSE Linux AG - 최근에 만들어진 : 19. Feb 2001 에 의해 cg (sdb_gen 1.40.0)