Home > Archive > Linux/Unix > December 2002 > ISP set up





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author ISP set up
iggy4270

2002-12-15, 12:05 am

Back to trying to configure my ISP. As I stated earlier I have the Instructions from earthlink. Here's the first 2 steps that they sent 1. First make sure that you have the two programs pppd and chat by doing a whereis command. I did and I do have them. 2. Once you locate the files, we'll need to manually edit them in vi, you'll need to change to the /etc directory first. then locate the following files: /etc/resolv.conf
and /etc/HOSTNAME.
Now here's the problem. whether I try in root or logged on as iggy I get the following after I type in /etc/resolv.conf.... bash: /etc/resolv.conf: permission denied. I'm confused, as the sole administrator do I not have the right to edit files or is this a security feature that I am unaware of.
Boulware5

2002-12-15, 12:10 am

root should be able to open it. As root, cd to that directory and give a ls -l. Then you can use the chmod command to change its permission. Let me know how it turns out.
mikop

2002-12-15, 12:11 am

*vi /etc/resolv.conf* to edit them
Boulware5

2002-12-15, 12:13 am

LOL, good eyes, mikeop. I didn't notice he just typed "/etc/resolv.conf". To edit a file, iggy, it's "editor [name of file]".
ccieToBe

2002-12-15, 12:13 am

What's happening is that you're trying to execute a configuration file. To edit it, use the command "program filename" where program is the name of the editer you want to use. vi works, but if you're not familiar with it, ee and pico are much more intuitive. It seems like most OSS OSs come with one or the other.
mikop

2002-12-15, 12:15 am

he is trying to execute them by typing it in bash

[root@eva3 etc]# /etc/resolv.conf
bash: /etc/resolv.conf: Permission denied
[root@eva3 etc]# ls -l resolv.conf
-rw-r--r-- 1 root root 24 Dec 10 05:42 resolv.conf
[root@eva3 etc]#
mikop

2002-12-15, 12:16 am

sorry didn't refresh to see all the new posts. heres one for redundancy
Boulware5

2002-12-15, 12:17 am

quote:
Originally posted by ccieToBe
What's happening is that you're trying to execute a configuration file. To edit it, use the command "program filename" where program is the name of the editer you want to use. vi works, but if you're not familiar with it, ee and pico are much more intuitive. It seems like most OSS OSs come with one or the other.


Yeah, use PICO. It's a lot easier than vi. With vi you have to know some commands, but pico is very straightforward.

# pico /etc/resolv.conf
iggy4270

2002-12-15, 12:18 am

Hey great response guys thanks. But what I understood from the instructions was that I first had to change to /etc ,pull the file and then go into vi and edit it. Bare with me.
Boulware5

2002-12-15, 12:19 am

quote:
Originally posted by iggy4270
Hey great response guys thanks. But what I understood from the instructions was that I first had to change to /etc ,pull the file and then go into vi and edit it. Bare with me.


You can do that -or- you can type pico /etc/resolv.conf. Does the same. If you feel more comfortable, do:

# cd /etc
# pico resolv.conf
mikop

2002-12-15, 12:22 am

no.

you can be in any directory
simply type

vi /etc/resolv.conf


it open the file for edit, go to insert mode add the following line


nameserver 111.111.111.111


<--- whatever ip they give you

save exit done

esc :wq
iggy4270

2002-12-15, 12:22 am

$ Command not found
Boulware5

2002-12-15, 12:24 am

quote:
Originally posted by iggy4270
$ Command not found


what command did you type?
mikop

2002-12-15, 12:27 am

quote:
Originally posted by Boulware5
To edit a file, iggy, it's "editor [name of file]".


[root@eva3 root]# editor /etc/resolv.conf
bash: editor: command not found
[root@eva3 root]#

iggy4270

2002-12-15, 12:27 am

O.k. This is the file I created the other day according to their instructions can you tell me if this is correct and can I go on to the next step.: /etc/resolv.conf/domain earthlink,net/search earthlink.net/nameserver 207.217.77.82/nameserver 207.217.120.83/nameserver 207.217.126.81
Boulware5

2002-12-15, 12:29 am

quote:
Originally posted by mikop
[root@eva3 root]# editor /etc/resolv.conf
bash: editor: command not found
[root@eva3 root]#




LOL.... I guess I should be more clear and have said a particular editor
mikop

2002-12-15, 12:33 am

quote:
Originally posted by iggy4270
you'll need to change to the /etc directory first. then locate the following files: /etc/resolv.conf
and /etc/HOSTNAME




hmmmm I seem to remember you use RH and RH use /etc/sysconfig/network instead of /etc/hostname
Boulware5

2002-12-15, 12:33 am

quote:
Originally posted by iggy4270
O.k. This is the file I created the other day according to their instructions can you tell me if this is correct and can I go on to the next step.: /etc/resolv.conf/domain earthlink,net/search earthlink.net/nameserver 207.217.77.82/nameserver 207.217.120.83/nameserver 207.217.126.81


Yeah if it is what they told you to put. resolv.conf is a resolver. It contains a listing of DNS servers. A basic one is usually put together when you install Linux

BTW, has there ever been a post on examnotes that has gotten so many replies in a short period of time like this one has?
iggy4270

2002-12-15, 12:41 am

quote:
Posted by Boulware - BTW, has there ever been a post on examnotes that has gotten so many replies in a short period of time like this one has?
Honestly I don't think there has, but I really want to thank you guys for all your patience while I detox from M$ lol. O.K one more before I call it a night. I had to edit that file because I had a space after one of my / that should not have been there. after I went to save I got the message 'readonly' option is set (use ! to override) can I do this in vi or do I have to do it in chmod.
Boulware5

2002-12-15, 12:44 am

quote:
Originally posted by iggy4270
Honestly I don't think there has, but I really want to thank you guys for all your patience while I detox from M$ lol. O.K one more before I call it a night. I had to edit that file because I had a space after one of my / that should not have been there. after I went to save I got the message 'readonly' option is set (use ! to override) can I do this in vi or do I have to do it in chmod.


Make sure you are doing this as root. The root user should have write access to resolv.conf. Imagine the havick a user other than root could cause if they can write to important system files like resolv.conf.
iggy4270

2002-12-15, 12:55 am

What a DH In my haste I created the file in iggy. I'll just do it over in root. Guys, especially you Boulware I really appreciate your time and patience. I know I may have to post again before I finish this project but I promise not to post until I have exhausted all my resources. Thanks again. I love you man. LOL
Boulware5

2002-12-15, 1:07 am

iggy,

So you know, there's no need to log out now. Just type su and enter your root password. Or even you can type:

$ su -c "vi /etc/resolv.conf"

Then it will ask you for your root password.

Just a tip...
iggy4270

2002-12-15, 1:22 am

Got it Boulware, worked perfectly. I recreated the file in root. Hey speaking of number of posts in a short time did you see how many views this post got also. I hope everybody had their notebooks out. LOL. Thanks. Just looking over the instructions that the tech sent me I realize that he really did a great job but the way he wrote the instructions is kind of confusing. Actually this next step is very confusing. Anyway time for a couple of cold ones, I'll try to work it out this afternoon.
Thanks.
Sponsored Links





Free Braindumps | MCSE braindumps software forum

Copyright 2003 - 2008 examnotes.net