Computing.Net > Forums > Solaris > Change Permission

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

Change Permission

Reply to Message Icon

Name: Ram
Date: July 11, 2002 at 12:45:05 Pacific
Comment:

I am new to Unix. I installed Solaris8 on my computer. I want to setup my computer to connect to the network. when i try to edit /etc/hosts, /etc/hostname.elxl0 file using Vi editor it looks like read only. I try to change permission. But it is not allowing me to do so. What could be the problem.



Sponsored Link
Ads by Google

Response Number 1
Name: esu (by Raj)
Date: July 12, 2002 at 00:58:43 Pacific
Reply:

hi Ram,
to edit in /etc/hosts... you must be as root then only root may edit in those files.

if you touched a file then change the permision with chmod command (man chmod)

for example:

#touch /etc/hostname.xxx
#chmod a+w /etc/hostname.xxx


0

Response Number 2
Name: Ed
Date: July 18, 2002 at 12:53:13 Pacific
Reply:

Thats right, the hosts file is read only,
however that can be overwritten by using
the following sequence to save the read
only file esc :wq!

If you try the old Shift-ZZ trick, it will tell you
that it is read only. You do have to be root
though to write over a protected file with
the :wq! sequence


0

Sponsored Link
Ads by Google
Reply to Message Icon

Related Posts

See More


Solaris PC Netlink Share ... The Intel PC reboots by h...



Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Solaris Forum Home


Sponsored links

Ads by Google


Results for: Change Permission

Login Messages www.computing.net/answers/solaris/login-messages/1554.html

How to exit vi?? www.computing.net/answers/solaris/how-to-exit-vi/2291.html

Autofs www.computing.net/answers/solaris/autofs/1051.html