Solved

linux web and ftp server

Posted on 2001-09-11
5
138 Views
Last Modified: 2013-12-16
refer to http://www.experts-exchange.com/jsp/qManageQuestion.jsp?ta=linux&qid=20181417

Dear sir,

    I've installed RH 7.1 , with ftp and web server.However, I found that if I access the web server and ftp server from localhost, it is okay. But the computers on the network cannot access it.(I type the ip address of the server).Do you know what's the problem?
    BTW, in which file can I modify the init level such that when I boot into the Red Hat, I will go into graph mode instead of text mode?Thanks!
0
Comment
Question by:hpchong7
  • 3
  • 2
5 Comments
 
LVL 4

Expert Comment

by:newmang
ID: 6476038
1) The runlevel is set in the /etc/inittab file.
In this file you will find a line reading  as follows :

id:3:initdefault:

Change the 3 to a 5 and the system will now boot into the GUI.

2) How does your system resolve host names? I found on my system that telnet & ftp did not accept external connections until I added an entry for my network DNS host.

Cheers - Gavin
0
 
LVL 2

Author Comment

by:hpchong7
ID: 6476647
Dear Gavin,
   May be I am the same as your case!!!Where do I add entry for my network DNS host?Thank you so much!
0
 
LVL 4

Accepted Solution

by:
newmang earned 0 total points
ID: 6478062
hpchong

The easiest way is to run linuxconf (as root) then select the networking section and then the name server section

The manual way to do it is to create (or modify) the /etc/resolv.conf file and add the following lines:

search domain.name.one domain.name.two
nameserver my.dns.ip.address

where the first line defines the domain names to use and the second defines the ip address of your DNS host.

You may also have to edit the /etc/nsswitch.conf file to ensure that the hosts: line includes the dns parameter.

linuxconf is the easier way to go about it.

Cheers - Gavin
0
 
LVL 2

Author Comment

by:hpchong7
ID: 6478329
I found that inside my etc/resolv.conf file:

search localhost.localdomain
nameserver  x.x.x.x

while inside /etc/nsswitch.conf file:
hosts:files dns
is already exists,

But I still cannot accept external web,ftp and telnet connection.........
0
 
LVL 2

Author Comment

by:hpchong7
ID: 6478525
Dear Gavin,

  At last I found it's the problem of the linux firewall, which block all external access by default!Anyway, thank you very much for your help which taught me a lot!
0

Featured Post

Why You Should Analyze Threat Actor TTPs

After years of analyzing threat actor behavior, it’s become clear that at any given time there are specific tactics, techniques, and procedures (TTPs) that are particularly prevalent. By analyzing and understanding these TTPs, you can dramatically enhance your security program.

Join & Write a Comment

I am a long time windows user and for me it is normal to have spaces in directory and file names. Changing to Linux I found myself frustrated when I moved my windows data over to my new Linux computer. The problem occurs when at the command line.…
I. Introduction There's an interesting discussion going on now in an Experts Exchange Group — Attachments with no extension (http://www.experts-exchange.com/discussions/210281/Attachments-with-no-extension.html). This reminded me of questions tha…
Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…
Connecting to an Amazon Linux EC2 Instance from Windows Using PuTTY.

760 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

19 Experts available now in Live!

Get 1:1 Help Now