請問tcsh的root login的問題 - BBS
By Belly
at 2005-10-04T23:57
at 2005-10-04T23:57
Table of Contents
man tcsh:
....
A login shell begins by executing commands from the system files
/etc/csh.cshrc and /etc/csh.login. It then executes commands from
files in the user's home directory: first ~/.tcshrc (+) or, if
~/.tcshrc is not found, ~/.cshrc, then ~/.history (or the value of the
histfile shell variable), then ~/.login, and finally ~/.cshdirs (or the
value of the dirsfile shell variable) (+). The shell may read
/etc/csh.login before instead of after /etc/csh.cshrc, and ~/.login
before instead of after ~/.tcshrc or ~/.cshrc and ~/.history, if so
compiled; see the version shell variable. (+)
.....
可是我用root登入或是su成root,
shell都不會去讀~/.cshrc,
請問有人踫到這種情況嗎?
我~/下只建.cshrc,
但是一般user就沒問題了。
--
....
A login shell begins by executing commands from the system files
/etc/csh.cshrc and /etc/csh.login. It then executes commands from
files in the user's home directory: first ~/.tcshrc (+) or, if
~/.tcshrc is not found, ~/.cshrc, then ~/.history (or the value of the
histfile shell variable), then ~/.login, and finally ~/.cshdirs (or the
value of the dirsfile shell variable) (+). The shell may read
/etc/csh.login before instead of after /etc/csh.cshrc, and ~/.login
before instead of after ~/.tcshrc or ~/.cshrc and ~/.history, if so
compiled; see the version shell variable. (+)
.....
可是我用root登入或是su成root,
shell都不會去讀~/.cshrc,
請問有人踫到這種情況嗎?
我~/下只建.cshrc,
但是一般user就沒問題了。
--
Tags:
BBS
All Comments
Related Posts
Re: gcin怎麼使用無蝦米丫??
By Kama
at 2005-10-04T23:53
at 2005-10-04T23:53
請問可否自行修改 /etc/master.passwd
By Mia
at 2005-10-04T23:52
at 2005-10-04T23:52
Re: gcin怎麼使用無蝦米丫??
By Hardy
at 2005-10-04T23:49
at 2005-10-04T23:49
Re: gcin怎麼使用無蝦米丫??
By Lucy
at 2005-10-04T23:46
at 2005-10-04T23:46
Re: gcin怎麼使用無蝦米丫??
By Yedda
at 2005-10-04T23:40
at 2005-10-04T23:40