May
24
Category: Linux
Posted by: fuku
XAMPPのセキュリティホールの設定を行う

# /opt/lampp/lampp security
XAMPP: Quick security check...
XAMPP: Your XAMPP pages are NOT secured by a password.
XAMPP: Do you want to set a password? [yes] yes
XAMPP: Password:
XAMPP: Password (again):
XAMPP: Password protection active. Please use 'lampp' as user name!
XAMPP: MySQL is accessable via network.
XAMPP: Normaly that's not recommended. Do you want me to turn it off? [yes] yes
XAMPP: Turned off.
XAMPP: Stopping MySQL...
XAMPP: Starting MySQL...
XAMPP: The MySQL/phpMyAdmin user pma has no password set!!!
XAMPP: Do you want to set a password? [yes] yes
XAMPP: Password:
XAMPP: Password (again):
XAMPP: Setting new MySQL pma password.
XAMPP: Setting phpMyAdmin's pma password to the new one.
XAMPP: MySQL has no root passwort set!!!
XAMPP: Do you want to set a password? [yes]
XAMPP: Write the password somewhere down to make sure you won't forget it!!!
XAMPP: Password:
XAMPP: Password (again):
XAMPP: Setting new MySQL root password.
XAMPP: Change phpMyAdmin's authentication method.
XAMPP: The FTP password for user 'nobody' is still set to 'lampp'.
XAMPP: Do you want to change the password? [yes]
XAMPP: Password:
XAMPP: Password (again):
XAMPP: Reload ProFTPD...
XAMPP: Done.

http://XXXXX/xampp/index.php
ユーザー lampp
パスワード 設定したパスワード

http://XXXXX/phpMyAdmin/index.php
ユーザーpma
パスワード 設定したパスワード
May
07
Category: Linux
Posted by: fuku
grep -v -e '#' 
Dec
13
Category: Linux
Posted by: fuku
環境

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に変更



Dec
12
Category: Linux
Posted by: fuku
内容

[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


May
21
Category: Linux
Posted by: fuku
環境

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 <--- ディレクトリの削除を可能にする

May
12

12/05: yum の設定

Category: Linux
Posted by: fuku
yumのミラーサイトを国内のミラーサイトに変更

国内のミラーサイトについては、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 <---最後に最新の状態に更新

May
11
Category: Linux
Posted by: fuku
サーバの初期設定でUTF-8→eucJPへ変更しました。

ちなみに現在は、新サービスの構築のためのテストサーバを構築中です。


/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"



Apr
14
Category: Linux
Posted by: fuku

シェル初期化ファイルに追加
[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


Feb
28
Category: Linux
Posted by: fuku
LINUXサーバからLINUXサーバへログインするための設定について

1.コマンドラインから

ssh-keygen -d



を実行し鍵を生成

2.ホームディレクトリの.sshディレクトリに
identityとidentity.pubが作成

3.id_dsa.pubをログイン先のユーザーの.sshへコピー

cat id_dsa.pub >> authorized_keys



4.ログイン

ssh USER@SverName


Feb
23
Category: Linux
Posted by: fuku
お昼過ぎから

Linuxの設定作業を行いました。

PHP 5.1.2
MYSQL 4.1.16
httpd-2.2.0



をインストール済みです。

サービスサイト構築についても考えねば。。。