This content has been marked as final. Show 4 replies
If your editing with vi, you can force it to overwrite the readonly status by exiting with :w!
Otherwise you can use chmod u+w /etc/hosts to make it writable.
naw_deepak wrote:su -
When I try to assign IP address or hostname by editing files
These files only open in read-only mode. I can't change the parameter. Any suggestion would be appreciable.
alan.pae wrote:I'm presuming he was already root. 'vi' still gives that message even to root if an unforced write is tried to a file with read-only permissions set.
#chmod 644 /etc/inet/hosts
#chmod 644 /etc/inet/ipnodes