今天有用户在使用某个内部工具时遇到这样一个问题:
Not owner of .exrc or .exrc is group or world writable
Error detected in .exrc.[Hit return to continue]
他说这个问题只在某些server上存在,大多数server上不会遇到。上穷碧落下黄泉地在公司内部搜索了一遍,没发现有用的信息。
郁闷中想起Google,于是试了一下,结果却是大喜过望,原来这是一个常见的vi引起的问题。
http://bugs.opensolaris.org/bugdatabase/view_bug.do?bug_id=4938594有详细的解释,转载如下:
Description |
If a user has a $HOME/.exrc file, and runs vi while su'ed to root,
the error:
Not owner of .exrc or .exrc is group or world writable
Error detected in .exrc.[Hit return to continue]
|
Work Around |
set the EXINIT environment variable. Please search the vi man pages for "EXINIT" for infomation on this.
Here's is what I added to my .cshrc file:
setenv EXINIT 'set tabstop=4 wrapscan nomesg | map @4 :set tabstop=4^M |
map @8 :set tabstop=8^M | map @L :set list^M | map @l :set nolist^M |
map @n :w/!^M:n^M | map @N :n^M | map @r :w/!^M:rewind^M|map @R
:rewind/!^M |
map @W :w/!^M^Z | map @D Oopen(DB,">>/tmp/dbgdrc");^Mprint DB
"/n";^Mclose(DB);^['
NOTES:
1) ^M is a ctrl-M (entered as ctrl-v ctrl-m) and ^[ is an escape
character (ctrl-v Esc).
2) The '!' has to be escaped with the backslash to prevent it being
interpreted by the shell.
3) Everything between the single quotes is on a single line. It is
broken here for readability.
4) Rename/delete the .exrc file or you'll get the same error as before.
xxxxx@xxxxx.com 2004-12-10 23:57:36 GMT
|
Comments |
N/A
|
To avoid error "Not owner of .exrc or .exrc is group or world writable" in vi-- Posted by inturi on Wednesday, January 23 2008 set this environment variable export EXINIT="set noexrc"
|
分享到:
相关推荐
Moving.and.Accessing.SAS.9.2.Files
hibernate常见错误解决方案
Chapter 12: Accessing Network Resources . . . . . 209 Chapter 13: Doing Remote System Administration . . . 229 Chapter 14: Locking Down Security . . . . . . . .247 Appendix A: Using vi or Vim Editors ...
vi Contents Running the GUI . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-20 Creating GUIs with GUIDE What Is GUIDE? 4 GUIDE: Getting Started . . . . . . . . . . . . . . . . . ...
5.2.3 Use of Pointers as Function Arguments . . . 5.2.4 Sending Arrays to Functions . . Example: A Function to Calculate the Scalar Product of Two Vectors . . . . . . . . . . . . . . . . . . . . . . ...
Accessing and Editing ABAP Repository Objects .....................................423 Introduction to the SAP NetWeaver Development Infrastructure (NWDI)..........446 Glossary ..........................
1.5.3 Database as Whitebox ....................................... 59 1.5.4 Required Qualifications for Developers ............. 61 2 Introducing the Development Environment ................. 63 2.1 ...
讲解了stm32f103运行main函数之前微控制器所做的工作。 总结启动文件的整个过程,分为如下: (1) 系统初始化,包括对中断向量表的重新映射; (2) 加载 RW 段; ...(3) ZI 段清零;...(5) 初始化微库(具体干...
runApplication 47.3.2. Extensions 47.4. Dependency management 47.5. @ConfigurationProperties 47.6. Testing 47.7. Resources 47.7.1. Further reading 47.7.2. Examples 48. What to Read Next V. Spring ...
Chapter 17• Error Handling and Debugging. . . . . . . . . . . . . . . . . . . . . . . . . . 791 Chapter 18• Recursive Programming. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 811 ...
1.2 Using Liferay Portal as a collaborative platform . . . . . . . . . . . . . . 6 1.3 Using Liferay as a social platform . . . . . . . . . . . . . . . . . . . . . 7 1.4 Using Liferay as a web ...
- A printer to run the printer test, set-up as the default printer in Windows. - A CD ROM + 1 Music CD or Data CD to run the CD test. - A CD-RW to run the CD burn test. - A network connection and the ...
Microsoft.Press.MCTS.Self.Paced.Training.Kit.Exam.70-516.Accessing.Data.with.Microsoft.NET.Framework.4
Error Detection and Reporting Policy Hooks ............................................... 18 Task Switch Hook Support .............................................................................. 18...
Accessing loaded media as data.783 Loading data786 Loading embedded content from SWF files imported into a security domain..788 Working with legacy content..789 Setting LocalConnection permissions.790...
vi Prerequisites ...............................................................................................................................vii Chapter 1 Introduction ...............................
3.8 SMACH: Tasks as State Machines.....................................................................17 3.8.1 SMACH review...............................................................................
Android is an open source and Linux-based operating system for mobile devices such as smartphones and tablet computers. Android was developed by the Open Handset Alliance, led by Google, and other ...
In previous releases of Greenplum Database, PXF supported accessing a single Hadoop cluster secured with Kerberos, and this Hadoop cluster must have been configured as the default PXF server. ...
云计算英文版课件:Chapter 3 Accessing the Cloud.pdf