Follow up on--Re: [Leaplist] Still can't get online

John Simpson jms1 at jms1.net
Wed Oct 8 23:00:07 EDT 2008


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 2008-10-08, at 1206, William H. Ferguson wrote:
>
>  Thanks very  much, John. I did some of what you've suggested since  
> it's
> relatively easy to do quickly.
>
> The ping to your inbox worked perfectly.
> So now I know that I'm actually able to get online (tho' I didn't  
> know it)
>
> "ping" must be a very useful command!

it is, if you understand what it does. too many people use "ping" when  
they should be using "nslookup".


> John then wrote: "it looks like you need to remove that file.
> if "cp" running as root cannot remove it, it may have the  
> "immutable" flag turned on. "
>
> (William: I assume "cp" is the copy command?  I'm not familiar with  
> "cp" being used to remove a file.)

if it's copying one file OVER another one, it has to remove the other  
file first.


> John then wrote:
> # chattr -i /etc/resolv.conf.predhclient.eth0
> # rm /etc/resolv.conf.predhclient.eth0
> # /etc/init.d/network restart
>
> I'm assuming that, as root,  you are suggesting I run the above  
> three commands?
> I looked at the man page chattr and deduce that, as root, even
> the  "i" attribute will not shield the file?
> So then, running "rm"  should do the job?
>
> And the third command asks Linux to restart the network?

the "chattr" command removes the "i", or "immutable", flag. this is  
one of the few things which can prevent root from being able to modify  
or remove a file.

after that flag is gone, the "rm" command removes the file normally.

and "/etc/init.d/network restart" is a shorter way to run the "cd",  
"cd", and "./network restart" commands you had in your original message.


> As you can see, I'm  no doubt unnecessarily cautious but I don't  
> want to
> further compound the problem here.
>
> One more nudge, John, and I'll  step back into the batter's box.

no problem. there's certainly nothing wrong with wanting to understand  
a command before you type it.

- --------------------------------------------------------
| John M. Simpson  --  KG4ZOW  --  Programmer At Large |
| http://www.jms1.net/                 <jms1 at jms1.net> |
- --------------------------------------------------------
|   Hope for America  --  http://www.ronpaul2008.com/  |
- --------------------------------------------------------





-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.8 (Darwin)

iEUEARECAAYFAkjtc7gACgkQj42MmpAUrRphXwCYlVDwVCD6wlS0R1wFw8iDVnG9
tQCguC09u5HXPDowEnD5SPWDBfvI3jk=
=KbUX
-----END PGP SIGNATURE-----

-- 
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.



More information about the Leaplist mailing list