stupid of me .should have checked the permissions. But thanks suresh for
pointing that out ( should have been flamed !!). I am thinking about
changing the permissions to

rwxr--r-- root root  /etc/hosts
  i shouldnt be that dangerous
                             sreangsu


On Tue, 12 Sep 2000, Suresh Ramasubramanian wrote:

> sreangsu acharyya rearranged electrons thusly:
> 
> >   Time to time i update that. Now instead of su ing everytime i though i
> > would do something like this:write a one line script as root containing
> > echoe -e "127.0.0.1 /t $1">>/etc/hosts
>  
> You _have_ to su in, iirc.  Or at least be logged in as root.
> In sun boxes, /etc/hosts, sendmail.cf etc are write protected by default - you
> have to save with :wq! if you want to change them.
> 
> -s
> 
> 
> ----------------------------------------------
> Find out more about this and other Linux India 
> mailing lists at http://lists.linux-india.org/
> 


----------------------------------------------
An alpha version of a web based tool to manage
your subscription with this mailing list is at
http://lists.linux-india.org/cgi-bin/mj_wwwusr

Reply via email to