- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Can I remove .exrc from all user in the system
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-17-2003 01:55 AM
01-17-2003 01:55 AM
Can I remove .exrc from all user in the system
I plan to remove .exrc from all users in may system.
Is there any issue to do that?
It seem to be this file contain key mapping.
what is the impact of delete?
Regards
Sonny
Sonny
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-17-2003 02:16 AM
01-17-2003 02:16 AM
Re: Can I remove .exrc from all user in the system
Hi, Sonny
to verify, i have deleted .exrc files of some users, users are not complaining anything.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-17-2003 03:29 AM
01-17-2003 03:29 AM
Re: Can I remove .exrc from all user in the system
Since the dot files in the users' home directories usually contain personal configurations and adaptions for all kinds of system programs that the users may have invested a lot of effort in,
I would consider it a little rude to remove these files as root without asking for confirmation.
The .exrc is the user's config file for the ex editor (which also is a subset of vi).
In it users can put their own settings (those that a "set all" shows in vi on the ex-mode line), as well as macros aka map definitions.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-17-2003 04:13 AM
01-17-2003 04:13 AM
Re: Can I remove .exrc from all user in the system
I would leave them where they are. They should not be taking up much space, and although some users may not even notice if you removed them, some people might be annoyed to lose their personal editor settings.
Just my opinion,
JOhn
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-17-2003 04:22 AM
01-17-2003 04:22 AM
Re: Can I remove .exrc from all user in the system
Bill Hassell, sysadmin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-17-2003 05:52 AM
01-17-2003 05:52 AM
Re: Can I remove .exrc from all user in the system
(1) You want to remove those .exrc files which are exact copies of the original (presumably to make newer parameters available). By using diff in a loop you can affect only those files:
while read userdir
do diff /etc/skel/.exrc $userdir/.exrc && rm $userdir/.exrc
done
This will keep those people who have customized their .exrc happy.
(2) You want to remove/rename all .exrc files which contain some specific problem pattern (I don't know what that would be), so grep comes into the game:
while read userdir
do grep 'Bad Line' $userdir/.exrc && mv $userdir/.exrc $userdir/.exrc.old
done
Hopefully you won't need either of these, but they're somewhat less distructive than going after everything.
-Scott-
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-17-2003 06:44 AM
01-17-2003 06:44 AM
Re: Can I remove .exrc from all user in the system
Since .exrc is not used by anything except the editors, they really pose no threats to security that I can see. If you fear that a user has a bad .exrc or the .exrc file is causing problems with vi, then copy the system shipped default from /etc/skel/.exrc to the users home directory.
Regards,
Shannon