SuSE Linux: 버전 6.2
그래픽 로그인인 kdm이나 xdm을 환경설정하고 나면 다른 리눅스 컴퓨터에서도 X -query computername 명령으로 현재 동작하고 있는 로그인 매니저에 접속을 할 수 있게 됩니다. 이것은 xdm을 사용하고 있다면 별 문제가 되지 않지만 만약 kdm을 사용하고 있다면 다른 모든 사용자들이 kdm 로그인 스크린의 셧다운 다이알로그를 사용해서 컴퓨터를 셧다운 시 킬 수 있는 문제가 생깁니다. 즉, 해당 컴퓨터에 대한 접속 계정을 갖고 있는 않는 사람도 이 컴퓨터를 셧다운시킬 수 있다는 것입니다.
/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 windowbzw.
# 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 서 버에 의해서만 접속이 가능하게 됩니다. 그래서 네트워크를 통해서 이 매니저에 접속을 하 려는 것이 실패하게 됩니다.