Unable to connect using ftp


 
Thread Tools Search this Thread
Operating Systems Solaris Unable to connect using ftp
# 1  
Old 02-15-2017
Unable to connect using ftp

hi
I am having issues when trying to connect using ftp, I am having the following error:
Code:
User (10.100.48.73:(none)): moz
331 Password required for moza.
Password:
530 Login incorrect.
Login failed.
ftp> by
221 Goodbye.

I have created a user like this:
Code:
useradd -g 10 -d /lam/moza -m -s /bin/bash moza

Code:
passwd moza

Code:
ftpconfig -d /lam/moza

Code:
in.ftpd -a

I did make sure that the username was in /etc/ftpd/ftpaccessfile

But I am still having that error
# 2  
Old 02-15-2017
Quote:
Originally Posted by fretagi
Code:
User (10.100.48.73:(none)): moz
331 Password required for moza.
Password:
530 Login incorrect.
Login failed.
ftp> by

The network connection itself seems to work and "moz" (instead of "moza") is, i suppose, a just a typo.

A possible reason is how the system is configured to authorize user accounts: in case you have, say, LDAP users primarily it might well be that the password ftp asks for is for a (hypothetical) LDAP-user "moza" instead of the local user "moza". The same might be the case for NIS (instead of LDAP), a native kerberos-domain, and similar systems.

I hope this helps.

bakunin
# 3  
Old 02-15-2017
Code:
ftp 10.100.48.73
Connected to 10.100.48.73.
220 nikira-app1 FTP server ready.
User (10.100.48.73:(none)): moza
331 Password required for moza.
Password:
530 Login incorrect.
Login failed.
ftp> by
221 Goodbye.

I did use now the correct username, but no luck
# 4  
Old 02-15-2017
You need to also check the sense of the file /etc/ftpd/ftpaccess. In the config file for your FTP server, there will be several lines to describe it and it can be either an "only allow in this list" or an "exclude this list" so you will have to read what it says carefully. It can be very confusingly written.

What is the FTP server you are using? I could guess vsftpd for a Linux server, but that is not certain to be on Solaris. There is probably a pkginfo command that will list out all packages. Pipe this through grep for the string ftpd and see what you get.



Robin
# 5  
Old 02-15-2017
Hi

I may ave missed out something, please help:
Code:
bash-3.00# pkginfo | grep ftp
system      SUNWftpr                         FTP Server, (Root)
system      SUNWftpu                         FTP Server, (Usr)
system      SUNWtftp                         Trivial File Transfer Server
system      SUNWtftpr                        Trivial File Transfer Server (Root)
bash-3.00#

and on the /etc/ftpd/ftpaccessfile, did not see:

Code:
 cat /etc/ftpd/ftpaccess
# ident "@(#)ftpaccess  1.2     03/05/14 SMI"
#
# FTP server configuration file, see ftpaccess(4).
#

class           realusers       real            *
class           guestusers      guest           *
class           anonusers       anonymous       *

loginfails      3
passwd-check    trivial         warn
private         no
shutdown        /etc/ftpd/shutdown.msg
# email         user@hostname
# guestuser     username
 guestuser      moza
# rhostlookup   no

keepalive       yes
recvbuf         65536           real,guest,anonymous
sendbuf         65536           real,guest,anonymous
# flush-wait    no              anonymous
# passive       ports           0.0.0.0/0       32768   65535
# timeout       data            600
# timeout       idle            300

banner          /etc/ftpd/banner.msg
greeting        brief
message         /etc/ftpd/welcome.msg   login
message         .message                cwd=*
readme          README*                 login
readme          README*                 cwd=*
# quota-info    *

chmod           no              anonymous
delete          no              anonymous
overwrite       no              anonymous
rename          no              anonymous
umask           no              anonymous

compress        yes             realusers guestusers anonusers
tar             yes             realusers guestusers anonusers

path-filter     guest,anonymous /etc/ftpd/filename.msg  ^[[:alnum:]._-]*$ ^[.-]

noretrieve      relative        class=anonusers         /
allow-retrieve  relative        class=anonusers         /pub

upload          class=anonusers    *    *         no  nodirs
# upload        class=anonusers    *    /incoming yes ftpadm ftpadm 0440 nodirs

# log           commands        real,guest,anonymous
# log           security        real,guest,anonymous
# log           transfers       real,guest,anonymous    inbound,outbound
# xferlog       format  %T %Xt %R %Xn %XP %Xy %Xf %Xd %Xm %U ftp %Xa %u %Xc %Xs %Xr

# limit-time    anonymous       30
# limit         anonusers       10      Wk0730-1800       /etc/ftpd/toomany.msg
# limit         anonusers       50      SaSu|Any1800-0730 /etc/ftpd/toomany.msg
bash-3.00#

# 6  
Old 02-15-2017
According to your posted session transscript i think that the ftp server is up ad running and the entry in /etc/ftpd/ftpaccess is OK as well. Otherwise you shouldn't ge as far as you came.

I still think you may have a different authorisation scheme (kerberos, NIS, LDAP, ....) in place and you are not asked for a local users password but a, say, LDAP-users password, which might be quite different from what you gave to the local user.

I am no specialist in Solaris, but with this hint you should be able to investigate if this might be the case or not.

I hope this helps.

bakunin
This User Gave Thanks to bakunin For This Post:
# 7  
Old 02-16-2017
Hi

the fact that I am trying to create this ftp user on a non-global zone, does not make an issue?
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. AIX

Unable to connect ASMI

After following the instructions given by resident moderator Bakunin over here https://www.unix.com/aix/279862-installed-memory-32gb-but-shows-only-16gb.html #1 Connect to ASMI #2 Configure the deconfigured memory #3 Start the machine OK, everything is fine, however now cannot connect to... (5 Replies)
Discussion started by: filosophizer
5 Replies

2. Red Hat

Unable to connect Wireless

I have managed to install Broadcom BCM43228 Wireless adapter on a laptop running CentOS 5.9 using instructions at: wiki.centos.org/HowTos/Laptops/Wireless/Broadcom I had the problem "Error for wireless request "Set Encode" (8B2A): SET failed on device... mentioned on the same page and solved... (0 Replies)
Discussion started by: cooltoad
0 Replies

3. Linux

Unable to connect to Server machine from a client machine using ftp service

Hi, Could you please help me with the below issue.. I'm running RHEL6 OS on both server (192.168.0.10) and client machines (192.168.0.1). I'm trying to connect to server from the client machine using ftp service. I have installed vsftpd daemon on both the machines. I'm getting... (4 Replies)
Discussion started by: raosr020
4 Replies

4. UNIX for Advanced & Expert Users

Unable to use FTP command to connect from one server to another

Hi, I have two unix servers A and B. from A i am trying to use the ftp command to connect to B but I am getting the "ftp: connect: A remote host refused an attempted connect operation." I checked the following things : 1.) Unix Server details for A and B after running the command uname -a... (3 Replies)
Discussion started by: mick_000
3 Replies

5. HP-UX

[Solved] Unable to rename file in ftp server .Net:FTP perl

Hello All, I am trying to connect to ftp server and get the files. Also i need to rename the file in other ftp dir. rename method is not allowing me to rename the file in other dir. When i tried copy command by using net::FTP:FILE then perl says it is not installed. Can some body help me to... (2 Replies)
Discussion started by: krsnadasa
2 Replies

6. AIX

ftp connect in passive mode , ftp settings

how to connect to ftp server in passive mode? ftp server.abc and how can i see ftp settings, doesn't exist some ftpd.conf there is some other file where i check the options and configurations of ftp server? Thanks (3 Replies)
Discussion started by: prpkrk
3 Replies

7. Emergency UNIX and Linux Support

Unable to connect using SFTP

I shall explain the situation that I am facing to the best extent possible. I require some help, as this situation is an urgent one. I am trying to automate sending data from one AIX machine to another. A script runs that tries to push data received from an upstream application to another AIX... (7 Replies)
Discussion started by: ggayathri
7 Replies

8. Solaris

Unable to connect to Internet

Hi friends recently i have installed SXDE 1/08 into my machine,and i installed wifi driver also its working fine,Recently i was unable to connect to Internet,I have not changed any configurations and any installations,thing is that i got my iwk0 interface is UP and IP address also and i can... (6 Replies)
Discussion started by: srinivas2828
6 Replies

9. Shell Programming and Scripting

ftp script not able to connect to ftp server.

I have the following ftp script to get files from a remote location. However, on running the script I find that I am not even able to connect to ftp server. I am able to connect to ftp server using other GUI ftp tools like WS_FTP using the same IP. IP used here is a dummy IP. What can go... (3 Replies)
Discussion started by: gram77
3 Replies

10. HP-UX

Unable to connect to HP-UX 11.11 via eXceed 7.1

Hello HP-UX Gurus, I am having issues trying to start an x-session via eXceed 7.1. When I bring up eXceed via XDMCP Braodcast I see the host name and IP Address but when I try to connect the X window does not come up. I made the modification to the following file “/etc/dt/config/Xaccess”... (2 Replies)
Discussion started by: smokie
2 Replies
Login or Register to Ask a Question