- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- /etc/hosts is read only
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
Discussions
Discussions
Discussions
Forums
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
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
тАО10-27-2008 09:28 AM
тАО10-27-2008 09:28 AM
Dears,
Please can someone help me solve this problem?
When i tried to add my system host name and ip address in /etc/hosts host file using vi the /etc/hosts shows read only therefore can't save anything.
Pls help.
Nadine
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-27-2008 09:32 AM
тАО10-27-2008 09:32 AM
SolutionJeff Traigle
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-27-2008 09:33 AM
тАО10-27-2008 09:33 AM
Re: /etc/hosts is read only
Only the 'root' user should be maintaining this file and then, as 'root' the permissions of the file are meaningless. That is, you can 'vi' the file and using ':wq!" replace the old version when done.
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-27-2008 06:58 PM
тАО10-27-2008 06:58 PM
Re: /etc/hosts is read only
to save read only file you need to save it by vi editor is :wq!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-27-2008 07:40 PM
тАО10-27-2008 07:40 PM
Re: /etc/hosts is read only
Use the ":wq!" that saves & quit the editor.
Read the vi editor Quick reference.
http://www.adminschoice.com/docs/vi_editor_ref.htm
Regards,
Asif Sharif
Asif Sharif
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-27-2008 08:18 PM
тАО10-27-2008 08:18 PM
Re: /etc/hosts is read only
As everybody says, to save any readonly file in vi you have to use :wq!
wq! => save and quit
Suraj
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-27-2008 10:08 PM
тАО10-27-2008 10:08 PM
Re: /etc/hosts is read only
may be you are using other user, use super user root and try with
#vi /etc/hosts
the save
#!wq
thanks
khairul
Bangladesh
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-27-2008 10:42 PM
тАО10-27-2008 10:42 PM
Re: /etc/hosts is read only
Thanks Dears,
I will all that and get back to you.
Nadine
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-28-2008 01:24 AM
тАО10-28-2008 01:24 AM
Re: /etc/hosts is read only
It works.
Nadine