Operating System - HP-UX
1834483 Members
3234 Online
110067 Solutions
New Discussion

Re: FTP ACCESS TO NEW USER

 
Pranav Pachchigar
Occasional Advisor

FTP ACCESS TO NEW USER

HOW TO GIVE FTP ACCESS TO NEW CREATED USER
REGARDS
5 REPLIES 5
Ganesan R
Honored Contributor

Re: FTP ACCESS TO NEW USER

Hi,

By default ftp access will be given to all the users except listed in /etc/ftpd/ftpusers files. Also make sure that the user shell is listed in /etc/shells file.

No need to do anything else.

If you get any errors when the user do ftp post it.
Best wishes,

Ganesh.
Pranav Pachchigar
Occasional Advisor

Re: FTP ACCESS TO NEW USER

Dear Ganesan,

but when i try to login through userid and password it is giving "login failed",
while i am able to telnet server with same userid and password

regards

pranav
Ahmed_58
Regular Advisor

Re: FTP ACCESS TO NEW USER

Hi,
You can narrow access to use only ftp by setting the ftpsehll as start-up program for the user as below in /usr/bin/ftpshell:

exit 0
chmod 555 /usr/bin/ftpshell
chown bin:bin /usr/bin/ftpshell

regards,
Ahmed


Ahmed_58
Regular Advisor

Re: FTP ACCESS TO NEW USER

Hi,
Check if FTP is Enabled on you system;

sam, Network Comm.., Network Services

Ahemd
Ganesan R
Honored Contributor

Re: FTP ACCESS TO NEW USER

Hi,

Please check the following.

1. Verify .netrc in the user's home directory.
If the .netrc file contains password or account information for use
other than for anonymous ftp, its owner must match the effective
user ID of the current process. Its read, write, and execute
permission bits for group and other must all be zero, and it must
be readable by its owner. Otherwise, the file is ignored.

So if you are unsure about this file, rename it to .netrc.old for
troubleshooting purposes.

2. Check /etc/ftpd/ftpusers.
ftpd rejects remote logins to local user accounts that are named
in /etc/ftpd/ftpusers. Each restricted account name must appear
alone on a line in the file. The line cannot contain any white
space.

User accounts that specify a restricted login shell in /etc/passwd
should be listed in /etc/ftpd/ftpusers because ftpd accesses local
accounts without using their login shells.

3. You need to add or verify /etc/shells.

/bin/sh
/bin/rsh
/bin/ksh
/bin/rksh
/bin/csh
/bin/pam
/bin/posix/sh
/sbin/sh
/usr/bin/sh
/usr/bin/rsh
/usr/bin/ksh
/usr/bin/rksh
/usr/bin/csh
/usr/bin/keysh

All shells referred to in /etc/passwd or in the NIS passwd map should be valid shells or links on this system and be listed in
/etc/shells.


Also confirm if any special character are there in the user password...
Best wishes,

Ganesh.