FTP Server and Samba Server

Posted on 2001-06-19
Medium Priority
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?

Question by:NBee
  • 4
  • 4
LVL 40

Expert Comment

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

Author Comment

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
ftp: connect :10071
and then failed.

LVL 40

Expert Comment

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.
A proven path to a career in data science

At Springboard, we know how to get you a job in data science. With Springboard’s Data Science Career Track, you’ll master data science  with a curriculum built by industry experts. You’ll work on real projects, and get 1-on-1 mentorship from a data scientist.


Author Comment

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???
LVL 40

Expert Comment

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

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

wilowisp> rpm -q xinetd

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.

Author Comment

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$

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

Accepted Solution

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).


Author Comment

ID: 6226091
I got it! Thanks so much!

Featured Post

Get expert help—faster!

Need expert help—fast? Use the Help Bell for personalized assistance getting answers to your important questions.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Join Greg Farro and Ethan Banks from Packet Pushers (http://packetpushers.net/podcast/podcasts/pq-show-93-smart-network-monitoring-paessler-sponsored/) and Greg Ross from Paessler (https://www.paessler.com/prtg) for a discussion about smart network …
In part one, we reviewed the prerequisites required for installing SQL Server vNext. In this part we will explore how to install Microsoft's SQL Server on Ubuntu 16.04.
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:
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…
Suggested Courses

588 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