1752320 Members
5685 Online
108786 Solutions
New Discussion юеВ

Re: ftp issue

 
SOLVED
Go to solution
Patrick Wallek
Honored Contributor

Re: ftp issue

Yep, it does.

Check /etc/nsswitch.conf and see what the services line looks like.

It should look something like:

services: files

If there is something like NIS there, then you need to check your NIS maps.

Steven Schweda
Honored Contributor

Re: ftp issue

> ftp never worked I guess.

"I guess" does not inspire much confidence.
What _does_ work on this system?

> This machine is of NIS client.

So, instead of "cat /etc/services", what do
you get from:
ypcat services
?

Where's the NIS master? Do other NIS clients
work better than this one?

> In fact, I restored the original file w/o
> any luck

Which file is that? Restored what? My
psychic powers are very weak. Guessing that
you might be using NIS is about the best
you'll get from me if you want to depend on
me to guess at this stuff.
infarakesh
Advisor

Re: ftp issue

1) server works normally. Issues observing with telnet, ftp

2) # ypcat services
ypcat: no such map in server's NIS domain
#

3) restored services file from /usr/newconfig/etc/services.. which I feel is the original one from OS build

Steven Schweda
Honored Contributor

Re: ftp issue

> In fact, I restored the original file w/o
> any luck

Also, "w/o any luck" is not a very detailed
description of what you tried, or what
happened when you tried it.

Knowing nothing, I'd guess that after you
change the nsswitch configuration, you'd need
to whack inetd to get it to try everything
again.
infarakesh
Advisor

Re: ftp issue

yes.. no luck means.. updated those changes and tried to check ftp and it did not work
Steven Schweda
Honored Contributor

Re: ftp issue

> 2) # ypcat services
> ypcat: no such map in server's NIS domain

Really? That seems unusual. But, if there's
no NIS "services" map, then you probably want
an nsswitch.conf which says
services: files
instead of
services: files nis

> It should look something like:
>
> services: files

What he said.

Also potentially interesting:

ypwhich -m
infarakesh
Advisor

Re: ftp issue


# ypwhich -m
netgroup.byuser yellow
netgroup.byhost yellow
netgroup yellow
ypservers yellow
group.byname yellow
group.bygid yellow
auto_home yellow
auto_master yellow
auto_direct yellow
passwd.byuid yellow
passwd.byname yellow
netid.byname yellow
hosts.byname yellow
hosts.byaddr yellow
publickey.byname yellow
# cat /etc/nsswitch.conf|grep -i services
services: files
#

Steven Schweda
Honored Contributor

Re: ftp issue

> yes.. no luck means.. updated those
> changes and tried to check ftp and it did
> not work

Which "those changes"? "tried to check" how,
exactly? As usual, showing actual commands
with their actual output can be more helpful
than vague descriptions or interpretations.

Was there another "inetd -c" in there
anywhere?


The whole Forum points system may not be
worth much, but it might make more sense if
you waited until you found the solution to
your problem before deciding how helpful a
particular response was.
infarakesh
Advisor

Re: ftp issue

can we concentrate on only technical stuff?


see my earlier reply and if you can respond back.. thanks!
Steven Schweda
Honored Contributor

Re: ftp issue

> # ypwhich -m
> [...]

You win. No "services.byname". So you need
to use the "/etc/services" _file_.