rootでのログインを許可しない。
/etc/ssh/sshd_config
PermitRootLogin no
Memo of the SSH
2008/04/28
apcupsdでUPS本体の電源をOFFにする
KILLDELAYを有効にするためには、/etc/init.d/apcupsdのstart)内のstartproc $APCUPSD の引数に-pが必要。(設定後は/sbin/service/apcupsd restart)
・
・
・
case "$1" in
start)
rm -f /etc/apcupsd/powerfail
if ! grep -q '^NOLOGON[[:space:]][[:space:]]*disable' /etc/apcupsd/apcup sd.conf ; then
rm -f /etc/nologin
fi
echo -n "Starting apcupsd power management"
## Start daemon with startproc(8). If this fails
## the echo return value is set appropriate.
# startproc should return 0, even if service is
# already running to match LSB spec.
startproc $APCUPSD -p
# Remember status and be verbose
rc_status -v
;;
stop)
・
・
・
検証OS:SLES10.1
バージョン:apcupsd release 3.12.1
Apcupsd, a daemon for controlling APC UPSes
・
・
・
case "$1" in
start)
rm -f /etc/apcupsd/powerfail
if ! grep -q '^NOLOGON[[:space:]][[:space:]]*disable' /etc/apcupsd/apcup sd.conf ; then
rm -f /etc/nologin
fi
echo -n "Starting apcupsd power management"
## Start daemon with startproc(8). If this fails
## the echo return value is set appropriate.
# startproc should return 0, even if service is
# already running to match LSB spec.
startproc $APCUPSD -p
# Remember status and be verbose
rc_status -v
;;
stop)
・
・
・
検証OS:SLES10.1
バージョン:apcupsd release 3.12.1
Apcupsd, a daemon for controlling APC UPSes
2008/04/24
SLES10.1でmondo rescue
SLES10.1ではデフォルトでby-idが有効になっているので、mondoで復旧できない。
SLES10.1インストール時にパーティション設定のfstabオプションで、デバイス名を指定すると復旧できる。
TroubleShooting - MondoRescue - Trac
SLES10.1インストール時にパーティション設定のfstabオプションで、デバイス名を指定すると復旧できる。
TroubleShooting - MondoRescue - Trac
2008/04/23
2008/04/18
2008/04/14
Mondo RescueによるLinux丸ごとバックアップ術
Mondo RescueによるLinux丸ごとバックアップ術: "http://mondorescue.linjection.org/ftp/"
2008/04/09
2008/04/08
2008/04/07
2008/04/05
登録:
投稿 (Atom)