2006年12月13日
Fedora Core6
内容
Fedora Core6をインストール後FFFTPでログインできない
原因
ファイアウォールとSELinuxが有効になっていた為
解決
別でファイアウォールを設定するためファイアウォールとSELinuxを無効にする
ファイアウォールの停止
[root@restrat ~]# /etc/rc.d/init.d/iptables stop
[root@restrat ~]# chkconfig iptables off
[root@restrat ~]# /etc/rc.d/init.d/ip6tables stop
[root@restrat ~]# chkconfig ip6tables off
SELinuxを無効にする
[root@restrat ~]# setenforce 0
[root@restrat ~]# getenforce
Permissive
[root@restrat ~]# vi /etc/sysconfig/selinux
SELINUX=disabled ← enforcingをdisabledに変更
2006年12月12日
[root@restart~]#slogin user@servername
でログイン時にエラーとなる
原因
[root@restart~]#cd /home
[root@restart~]#ll
[root@restart~]#drwxrwxrwx 3 user user 4096 12月 11 18:12 user
ユーザーホルダのバーミッションがグループ、その他のユーザーへも
書き込み権限、実行可能権限がついていた為
[root@restart~]#chmod 700 user
[root@restart~]#drwxr------ 3 user user 4096 12月 11 18:12 user
環境
Fedora Core6
2006年05月21日
Fedora Core4
インストール
#yum -y install vsftpd
設定ファイル編集
#vi /etc/vsftpd/vsftpd.conf
anonymous_enable=NO <--- anonymousユーザでのログインを禁止
ascii_upload_enable=YES <--- アスキーのアップロードを許可
ascii_download_enable=YES <--- アスキーのダウンロードを許可
chroot_local_user=YES <--- ホームディレクトリより上層へ移動できない
ls_recurse_enable=YES <--- ディレクトリの削除を可能にする
2006年05月12日
国内のミラーサイトについては、FedoraCoreの公式サイトより「Japan」のところから取得
KDDI研究所 ftp://ftp.kddilabs.jp を設定
/etc/yum.repos.d/ 配下のファイル
fedora.repo
fedora-updates.repo
fedora-extras.repo
を以下のように修正
fedora.repo
[base]
name=Fedora Core $releasever - $basearch - Base
baseurl=http://ftp.kddilabs.jp/Linux/packages/fedora/core/$releasever/$basearch/os/
enabled=1
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-fedora
fedora-updates.repo
[updates-released]
name=Fedora Core $releasever - $basearch - Released Updates
baseurl=http://ftp.kddilabs.jp/Linux/packages/fedora/core/updates/$releasever/$basearch/
enabled=1
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-fedora
fedora-extras.repo
[extras]
name=Fedora Extras $releasever - $basearch
baseurl=http://ftp.kddilabs.jp/Linux/packages/fedora/extras/$releasever/$basearch/
enabled=1
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-fedora-extras
[root@res-system.com~]# service yum start
[root@res-system.com~]# chkconfig yum on
[root@res-system.com~]# yum -y update <---最後に最新の状態に更新
2006年05月11日
ちなみに現在は、新サービスの構築のためのテストサーバを構築中です。
/etc/sysconfig/i18n を修正
旧
LANG="ja_JP.UTF-8"
SYSFONT="latarcyrheb-sun16"
SUPPORTED="ja_JP.UTF-8:ja_JP:ja"
新
LANG="ja_JP.eucJP"
SUPPORTED="ja_JP.eucJP:ja_JP:ja"
SYSFONT="latarcyrheb-sun16"
2006年04月14日
シェル初期化ファイルに追加
[root@res-system.com ~]# vi .bashrc
# .bashrc
# User specific aliases and functions
alias rm='rm -i'
alias cp='cp -i'
alias mv='mv -i'
alias log='tail -f /var/log/messages' ←追加
# Source global definitions
if [ -f /etc/bashrc ]; then
. /etc/bashrc
fi
[root@res-system.com ~]#source .bashrc
[root@res-system.com ~]# log
2006年02月28日
1.コマンドラインから
ssh-keygen -d
を実行し鍵を生成
2.ホームディレクトリの.sshディレクトリに
identityとidentity.pubが作成
3.id_dsa.pubをログイン先のユーザーの.sshへコピー
cat id_dsa.pub >> authorized_keys
4.ログイン
ssh USER@SverName