Sponsored Link

« Debianのインストール | メイン | 時刻の設定 »

2005年11月09日

Debianの初期設定

rootでログイン
rootパスワード変更
# passwd
Enter new UNIX password: (パスワード記入)
Retype new UNIX password: (上と同じパスワード記入)
passwd: password updated successfully
新規ユーザ登録
# adduser
guestの削除
# deluser
LANでリモートするためtelnetdとftpdをインストールします。
# apt-get update
# apt-get install telnetd
telnetdはrootでログインできないので# suを使うといい。
# apt-get install ftpd
ftpdはrootでログインできないので/etc/ftpusersを変更(外向けに公開する場合はやめておいた方がいい)
# vi /etc/ftpusers
カーソルでrootと書いてあるところまで持っていきddと押しrootと書いてある部分を消し:wqで保存終了。
デフォルトのumaskが027なので022に変更(ファイルを転送したとき、パーミッションが640になるのを644にすること)
# vi /etc/inetd.conf
ftp stream tcp nowait root /usr/sbin/tcpd /usr/sbin/in.ftpd

ftp stream tcp nowait root /usr/sbin/tcpd /usr/sbin/in.ftpd -u 022
これでシリアル接続から開放される。

投稿者 chihansen : 2005年11月09日 00:52

コメント

コメントしてください




保存しますか?