NUTHIN BUT NEWS USENET NEWSGROUPS



Usenet Newsgroups

Re: Using SUDO to edit /etc/hosts

From: jollyroger@pobox.com (Jolly Roger)


In article <stevewjackson-BFAF7A.13404429062010@news.individual.net>,
 "Steve W. Jackson" <stevewjackson@knology.net> wrote:

in the Terminal environment,
you could use the "su" command to take on the identity of the admin
account, which would in turn already be in that sudoers file mentioned
in the message.  While doing so, you could edit that file successfully. 
When complete, you'd need to exit from the shell started by "su" back
into your own identity.  Try "People Pictures">man su" for more details.

This is the best advice yet. You simply:

     su adminaccount
     sudo blah blah blah

Simple.

--
Send responses to the relevant news group rather than email to me.
E-mail sent to this address may be devoured by my very hungry SPAM
filter. Due to Google's refusal to prevent spammers from posting
messages through their servers, I often ignore posts from Google
Groups. Use a real news client if you want me to see your posts.

JR


Subject
* Using SUDO to edit /etc/hosts
+* Re: Using SUDO to edit /etc/hosts
|+* Re: Using SUDO to edit /etc/hosts
||+* Re: Using SUDO to edit /etc/hosts
|||+* Re: Using SUDO to edit /etc/hosts
||||`* Re: Using SUDO to edit /etc/hosts
|||| `* Re: Using SUDO to edit /etc/hosts
||||  +* Re: Using SUDO to edit /etc/hosts
||||  |`- Re: Using SUDO to edit /etc/hosts
||||  +- Re: Using SUDO to edit /etc/hosts
||||  `- Re: Using SUDO to edit /etc/hosts
|||`- Re: Using SUDO to edit /etc/hosts
||`* Re: Using SUDO to edit /etc/hosts
|| +- Re: Using SUDO to edit /etc/hosts
|| +* Re: Using SUDO to edit /etc/hosts
|| |`* Re: Using SUDO to edit /etc/hosts
|| | `* Re: Using SUDO to edit /etc/hosts
|| |  `* Re: Using SUDO to edit /etc/hosts
|| |   `- Re: Using SUDO to edit /etc/hosts
|| `- Re: Using SUDO to edit /etc/hosts
|`- Re: Using SUDO to edit /etc/hosts
+* Re: Using SUDO to edit /etc/hosts
|`* Re: Using SUDO to edit /etc/hosts
| `* Re: Using SUDO to edit /etc/hosts
|  `* Re: Using SUDO to edit /etc/hosts
|   `* Re: Using SUDO to edit /etc/hosts
|    `- Re: Using SUDO to edit /etc/hosts
`- Re: Using SUDO to edit /etc/hosts


Nuthinbutnews Usenet Newsgroups  -  Nuthinbutnews Usenet Newsgroups Groups  -  Privacy Policy