1834711 Members
2596 Online
110069 Solutions
New Discussion

Re: FTP access

 
SOLVED
Go to solution
Greg Lamarca
New Member

FTP access

Hello,

I'm fairly new to UNIX so please forgive me if I confuse you while trying to tell you what I need help with. How do I enable, create or edit a user account for ftp? A user account was able to ftp with no problem but now is unable to. I was able to connect via ftp using the root account. This is the error message that comes up:

User (user name) access denied.
Login failed.

The hardware/software is as follows: HP 9000 with HP-UX 10.20

I appreciate any help you can give me.
10 REPLIES 10
James R. Ferguson
Acclaimed Contributor

Re: FTP access

Greg:

I'm not sure specifically what you are after, but if you do a SEARCH in this forum for the keyword FTP I think you will be more than rewarded.

...JRF...
Rita C Workman
Honored Contributor

Re: FTP access

You might want to check and make sure that ftp access is allowed.
Check your /var/adm/inetd.sec

Then try recycling inetd with: /usr/sbin/inetd -c

Just a couple thoughts...to get you started.
Regards,
Rita C Workman
Honored Contributor

Re: FTP access

Could be several reasons...but to at least get your started.
Check and make sure FTP is allowed in the following file:
/var/adm/inetd.sec

You might want to recycle inetd: /usr/sbin/inetd -c

This is just to get you started....
Kofi ARTHIABAH
Honored Contributor
Solution

Re: FTP access

By default, all users should be able to ftp as soon as they are added to the system, however, if it worked and now does not work, a number of things could have happened:

1.If the user changed his/her default shell as shown agains the login in /etc/passwd and that shell is not listed in the /etc/shells file then you could get the problem. If this is the case, add the shell to the /etc/shells file

2.if the user's login is listed in the file /etc/ftpusers it will deny them from accessing ftp.

Good luck.
nothing wrong with me that a few lines of code cannot fix!
James R. Ferguson
Acclaimed Contributor

Re: FTP access

Greg:

Check the man pages:

# man inetd.sec
# man ftpusers

These deai with security/access issues.

...JRF...
Berlene Herren
Honored Contributor

Re: FTP access

Is this a "530" error with access denied? If so, then have the user telnet to the box and run #env. Check out what shell the user has and add that to /etc/shells.

Berlene
http://www.mindspring.com/~bkherren/dobes/index.htm
Lawrence Mahan
Frequent Advisor

Re: FTP access

If you are trying to ftp to a user other than root you will have the problem with HP-UX 10.20. The problem is there is a file missing from 10.20 that you will need to create. IN the /etc directory use vi to create the file shells. In this files you will list on each line the shells used by each user in the /etc/passwd file. I usually create the file like this:

/sbin/sh
/bin/ksh

You can look at the passwd file for any other shells you will need to add.

FTP requires that the user you log in as have it's shell defined in this file.
Greg Lamarca
New Member

Re: FTP access

Thanks all for the help I was able to ftp after creating the shells file in /etc. Thank you James R. Ferguson, Rita C. Workman, Kofi ARTHIABAH, Berlene Herren and Larry Mahan.
Greg Lamarca
New Member

Re: FTP access

Thanks all for the help I was able to ftp after creating the shells file in /etc. Thank you James R. Ferguson, Rita C. Workman, Kofi ARTHIABAH, Berlene Herren and Larry Mahan.
James R. Ferguson
Acclaimed Contributor

Re: FTP access

Greg:

I'm sure I speak for all of us when I say "you're most welcome". Points, as you see fit, are appreciated too! Thanks.

...JRF...