[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[plamo:30837] Re: prompt が .bashrcで変更できません。



 こんにちは,田向です。

From: "nori" <ja5ibp@xxxxxxxxxxxxxxx>
Subject: [plamo:30829] prompt が .bashrc で変更できません。
Date: Tue, 23 Nov 2010 16:14:15 +0900

> plamoは4.72です。
> ちょっとお遊びのつもりでpromptを変えてみようと
> 件名の通り.bashrcに手を加えてみました。
> 
> ところが、変化しません。

 本件は,PlamoLinux Wikiの不具合報告/4.7/49で報告されていた既知の不具
合で,Plamo-4.73b1以降で修正済みです。

----------------------------------------------------------------------
平成22年7月15日(木)

・su で root になったときのプロンプトを /root/.bashrc にて設定。
  (plamo/00_base/aaa_base-4.5-noarch-P5.tgz)
・個人設定しているプロンプト変数が上書きされないように修正。ついでに,
  /etc/passwd の ftp のエントリを修正(報告 thanks! > misty さん)。
  (plamo/00_base/etc-4.5-noarch-P32.tgz)

  -- tamuki
----------------------------------------------------------------------

 Plamo-4.72をご利用とのことなので,以下の修正パッチを参考に,設定ファ
イルを書き換えてお試しください。

diff -Nur aaa_base-4.5-noarch-P4/root/.bashrc aaa_base-4.5-noarch-P5/root/.bashrc
--- aaa_base-4.5-noarch-P4/root/.bashrc	2006-04-24 18:49:33.000000000 +0900
+++ aaa_base-4.5-noarch-P5/root/.bashrc	2010-07-15 16:10:08.000000000 +0900
@@ -9,6 +9,8 @@
 export LS_OPTIONS
 alias ls='ls $LS_OPTIONS'
 
+PS1='\u@\h:\w\$ '
+
 # Source global definitions
 if [ -f /etc/bashrc ] ; then
   . /etc/bashrc
diff -Nur etc-4.5-noarch-P31/etc/bashrc etc-4.5-noarch-P32/etc/bashrc
--- etc-4.5-noarch-P31/etc/bashrc	2010-01-16 19:06:54.000000000 +0900
+++ etc-4.5-noarch-P32/etc/bashrc	2010-07-15 16:12:44.000000000 +0900
@@ -1,8 +1,6 @@
 # /etc/bashrc: This file contains system-wide defaults used by
 # all Bourne (and related) shells. (sourced by ~/.bashrc)
 
-PS1='\u@\h:\w\$ '
-
 function ls() {
   local args=""
   local arg
diff -Nur etc-4.5-noarch-P31/etc/npasswd etc-4.5-noarch-P32/etc/npasswd
--- etc-4.5-noarch-P31/etc/npasswd	2009-09-12 17:24:20.000000000 +0900
+++ etc-4.5-noarch-P32/etc/npasswd	2010-07-15 16:14:05.000000000 +0900
@@ -17,7 +17,7 @@
 pop:x:16:12:Pop Account:/dev/null:/bin/false
 wnn:x:17:1:Wnn:/usr/lib/wnn:
 sshd:x:18:18:sshd privsev:/var/empty:/bin/false
-ftp:x:19:FTP server:/home/ftp:/bin/bash
+ftp:x:19:19:FTP server:/home/ftp:/bin/bash
 polkituser:x:21:21:PolicyKit daemon:/dev/null:/bin/true
 avahi:x:22:22:Zeroconf daemon:/dev/null:/usr/sbin/avahi-daemmon
 gdm:x:23:23:GNOME Display Manager:/var/lib/gdm:/bin/true

----
田向 正一  tamuki@xxxxxxxxxxx


Follow-Ups
[plamo:30840] Re: prompt が .bashrc で変更できません。, nori
References
[plamo:30829] prompt が .bashrc で変更できません。, nori

[検索ページ] [メール一覧]
Plamo ML 公開システム