?
Solved

FTP Server and Samba Server

Posted on 2001-06-19
8
Medium Priority
?
350 Views
Last Modified: 2013-12-15
Hi all,
I have set up a Linux Server: RedHat 7.1
I want to share resources with other PC (platform Win 9x and Win NT).
I have setup FTP and Samba server but they didn't work properly.
Do you have any step by step set up documents or any idea about this?

Thanks.
0
Comment
Question by:NBee
  • 4
  • 4
8 Comments
 
LVL 40

Expert Comment

by:jlevie
ID: 6209108
What problems are you having with FTP and Samba?
0
 

Author Comment

by:NBee
ID: 6209171
As I said they didn't work properly.
When I sit on server and try to connect to ftp, it ask me to enter name and then password but I always get the error message: Login Incorrect, Login failed.
When I sit on Window98 client and try to connect to server through ftp, i get this:
ftp> open 220.200.150.25
ftp: connect :10071
and then failed.
???????????????

0
 
LVL 40

Expert Comment

by:jlevie
ID: 6210356
Are you trying to connect to the FTP server as an ordinary user or as root. Access to ftp by root is specifically denied for security reasons. Try an ordinary, unprivliged, account and see what happen then. The other place you can get into trouble is if you took the default firewall configuration when installing 7.1. That will essentially lock the system down w/respect to outside connections. In that case you need to modify the firewall rules to allow the inbound connections you wish to allow, or take the firewall down completely. Check for firewall rules being active with "ipchains -L" if all of the rules aren't "ACCEPT", then firewall rules are likely your problem.
0
Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 

Author Comment

by:NBee
ID: 6212814
Yes, I have tried 2 accounts: root and test (but test belong to group root). Does that make anything wrong???
Do you have any step by step configuration guide about those???
Thankx
0
 
LVL 40

Expert Comment

by:jlevie
ID: 6216946
Okay, you say that you've set up FTP. Lets see if it is actually set up correctly. If the server is installed you should be able to do:

wilowisp> rpm -q wu-ftpd
wu-ftpd-2.6.1-16

You need xinetd installed to be able to use FTP and you can check that with:

wilowisp> rpm -q xinetd
xinetd-2.1.8.9pre15-2

And xinetd needs to configured to enable FTP and that means that /etc/xinetd.d/wu-ftpd should look like:

service ftp
{
        socket_type             = stream
        wait                    = no
        user                    = root
        server                  = /usr/sbin/in.ftpd
        server_args             = -l -a
        log_on_success          += DURATION USERID
        log_on_failure          += USERID
        nice                    = 10
        disable                 = yes
}

I'm going to assume that you haven't messed with the various /etc/ftp* files and they are still "as installed". Now we need an ordinary user account to test with and that means that the UID and GID must be 100 or greater. While on the server try "ftp localhost" and see if you can connect.

If that works we can see if a connection can be made from the windows box. First we want to check basic network connectivity with a "ping -n IP--of-windows" from the server and a corresponding "ping IP-of-server" from the windows box. Next we want to check to see that we won't run afoul of any firewall rules by looking at the rulesets with "ipchains -L". If all are the rules are not "ACCEPT" the firewall need adjusting before FTP or Samba will work. If that looks okay try an ftp connection from the windows box to the server.
0
 

Author Comment

by:NBee
ID: 6223827
Yeah, right! The main problem is the firewall. Thanks so much.
But what about the Samba Server? After configuring the Samba Server on RedHat 7.1, I use Window 98 to connect to Linux Server to get share things. but it shows this dialog:

Enter network password
You must supply a password to make this connection:
Resource: \\XSDG1\IPC$
Password:


XSDG1 is my Linux Server's name. I have entered many passwords (include root password) but it still prompt invalid password.
Anything's wrong????
0
 
LVL 40

Accepted Solution

by:
jlevie earned 40 total points
ID: 6224330
When you set up Samba did you enable encrypted passwords in the smb.conf file? That's required for win98 to talk to the Samba server. And it is necessary to create an SMB compatible copy of the encrypted password with "smbpasswd some-username". Note that root is specifically prohibited from useing the Samba server, only ordinary user accounts are permitted access.

On the windows side you must set up the win98 system so that you are required to login to windows using the same username & password (case sensitive) that you use on Linux. And the win98 box must be in the same Workgroup that Samba is configured to be in (see smb.conf).

0
 

Author Comment

by:NBee
ID: 6226091
I got it! Thanks so much!
0

Featured Post

Vote for the Most Valuable Expert

It’s time to recognize experts that go above and beyond with helpful solutions and engagement on site. Choose from the top experts in the Hall of Fame or on the right rail of your favorite topic page. Look for the blue “Nominate” button on their profile to vote.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Fine Tune your automatic Updates for Ubuntu / Debian
I have written articles previously comparing SARDU and YUMI.  I also included a couple of lines about Easy2boot (easy2boot.com).  I have now been using, and enjoying easy2boot as my sole multiboot utility for some years and realize that it deserves …
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.
How to Install VMware Tools in Red Hat Enterprise Linux 6.4 (RHEL 6.4) Step-by-Step Tutorial
Suggested Courses
Course of the Month15 days, 8 hours left to enroll

850 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