去掉下面的注釋
- #* #any host can get a login window
2 修改啟動模式/etc/inittab
3修改/etc/gdm/custom.conf
- # GDM configuration storage
-
- [daemon]
-
- [security]
- AllowRemoteRoot=true
- DisallowTCP=false
- [xdmcp]
- Enable=true
- Port=177
- [greeter]
-
- [chooser]
-
- [debug]
4修改/etc/X11/xdm/xdm-config用 ! 注釋下面的語句
- !DisplayManager.requestPort: 0
5 修改以下文件權限,確保有444權限
- # ll /etc/X11/xdm/Xservers
- -rw-r--r--. 1 root root 485 Jan 6 22:35 /etc/X11/xdm/Xservers
- # ll /etc/X11/xdm/Xsetup_0
- -rwxr-xr-x. 1 root root 938 Aug 20 2010 /etc/X11/xdm/Xsetup_0
7 修改/etc/securetty
- tty1
- tty2
- tty3
- tty4
- tty5
- tty6
- tty7
- tty8
- tty9
- tty10
- tty11
- rsh
- rexec
- rlogin
添加
- pts/0
- pts/1
- pts/2
- pts/3
- pts/4
8 修改/etc/pam.d/login
注釋掉
- #auth [user_unknown=ignore success=ok ignore=ignore default=bad] pam_securetty.so
- auth include system-auth
- account required pam_nologin.so
- account include system-auth
- password include system-auth
- # pam_selinux.so close should be the first session rule
- session required pam_selinux.so close
- session required pam_loginuid.so
- session optional pam_console.so
- # pam_selinux.so open should only be followed by sessions to be executed in the user context
- session required pam_selinux.so open
- session required pam_namespace.so
- session optional pam_keyinit.so force revoke
- session include system-auth
- -session optional pam_ck_connector.so
9 修改 /etc/pam.d/remote
注釋掉
- #auth required pam_securetty.so
- auth include password-auth
- account required pam_nologin.so
- account include password-auth
- password include password-auth
- # pam_selinux.so close should be the first session rule
- session required pam_selinux.so close
- session required pam_loginuid.so
- # pam_selinux.so open should only be followed by sessions to be executed in the user context
- session required pam_selinux.so open
- session required pam_namespace.so
- session optional pam_keyinit.so force revoke
- session include password-auth
9關閉防火墻,或開放UDP 177端口
可以使用system-config-firewall操作防火墻
可以使用/etc/init.d/iptables stop關閉防火墻
10重啟機器
以上操作,順序及原因不詳,望指點,很多操作都是照葫蘆畫瓢,不講原因,弄對了就OK,下次還是不明白。
參考:
http://lmdkfs.blog.163.com/blog/static/7461132420124445749639/
http://wenku.baidu.com/view/ac4a2f1aa8114431b90dd842.html
http://blog.sina.com.cn/s/blog_7065a1e40100mahz.html
http://hi.baidu.com/edeed/item/7e511dd9d1e4003e48e1dd8a