Solved

FTP Server and Samba Server

Posted on 2001-06-19
8
313 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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
Independent Software Vendors: 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 10 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

On Demand Webinar: Networking for the Cloud Era

Did you know SD-WANs can improve network connectivity? Check out this webinar to learn how an SD-WAN simplified, one-click tool can help you migrate and manage data in the cloud.

Question has a verified solution.

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

rdate is a Linux command and the network time protocol for immediate date and time setup from another machine. The clocks are synchronized by entering rdate with the -s switch (command without switch just checks the time but does not set anything). …
It’s 2016. Password authentication should be dead — or at least close to dying. But, unfortunately, it has not traversed Quagga stage yet. Using password authentication is like laundering hotel guest linens with a washboard — it’s Passé.
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…
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.

688 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