2012-02-01から1ヶ月間の記事一覧
良し悪しは分かれるところだが、sshdの設定で何とかする
passwd -d shutdownパスワード入力なしでログインできるように
shutdown ALL=(ALL) NOPASSWD: ALLshutdownユーザーでshutdownをsudoできるように設定全コマンドを実行できるようにしている。あんまり良くないかも。
shutdown:x:6:0:shutdown:/sbin:/root/script/shutdown.shユーザーshutdownのログインシェルにshutdownシェルを指定する
#!/bin/bash sudo /sbin/shutdown -h now/root/script/shutdown.sh としておきましょうか。
linuxだと無効になってるみたいですね。ログインしたらshutdownが走るshutdownユーザーを作ろうというお話。
htmlヘルパーとか、formヘルパーなんかで生成されたURLって基本的に相対パスで書かれる。これを絶対パスで書いてもらおうとするお話。とりあえず、cake/lib/router.phpを見てみる * @param mixed $full If (bool) true, the full base URL will be prepended…