建議使用 vsftpd 作為 FTP 服務。如果系統中安裝了 pure-ftpd,請先將其停用。
yast2 → Network Services → Network Services (inetd),將 /usr/sbin/pure-ftpd 的狀態設為 off,將 /usr/sbin/vsftpd 的狀態設為 on,然後點擊確認完成修改。/etc/vsftpd.conf,將以下四項註解掉:#write_enable=YES #local_enable=YES #ascii_upload_enable=YES #ascii_download_enable=YES
/etc/ftpuser 檔案,將 root 使用者註解掉。/etc/init.d/xinetd restart。/etc/hosts.deny,在 ALL: ALL 行前加 # 號註解,註銷該行。/etc/hosts.allow,添加一行 ALL : ALL。/etc/xinetd.d/telnet,將 disable=yes 註解掉,或改為 disable=no。/etc/pam.d/login,在 auth required /lib/security/pam_securetty.so 行前加 # 號註解。/etc/init.d/xinetd stop /etc/init.d/xinetd start
/etc/X11/xdm/Xaccess,去掉 # * #any host can get a login window 的註解。/etc/X11/xdm/xdm-config,將 DisplayManager.requestPort: 0 註解掉。/etc/opt/gnome/gdm/gdm.conf,在 [xdmcp] 部分,將 Enable 改為 true,並去掉 #Port=177 的註解。/etc/opt/kde3/share/config/kdm/kdmrc,在 [Xdmcp] 部分,將 enable 改為 true,並去掉 #Port=177 的註解。/etc/inittab,確認運行級別設置為 5(X11 圖形介面)。運行級別說明如下:
init 0 — 關機(請勿設為 initdefault)init 1 — 單使用者模式init 2 — 多使用者模式,不帶 NFSinit 3 — 多使用者模式,帶 NFSinit 4 — 保留init 5 — X11 圖形介面多使用者模式init 6 — 重啟(請勿設為 initdefault)確保 id:5:initdefault: 設置正確,否則將僅看到命令列視窗而非桌面。
/etc/sysconfig/ipchains 或 /etc/sysconfig/iptables),在檔案頭部加入:# If you want to use GNOME/KDE, add the following line. -A input -p udp -s 0/0 -d 0/0 177 -j ACCEPT
reboot。預設情況下 root 使用者無法遠程登入,需進行以下修改:
/etc/sysconfig/displaymanager,將 DISPLAYMANAGER_ROOT_LOGIN_REMOTE="no" 改為 DISPLAYMANAGER_ROOT_LOGIN_REMOTE="yes"/etc/rc.config,添加一行:ROOT_LOGIN_REMOTE="yes"完成上述配置後,請重新啟動系統以使所有設定生效。