1825768 Members
2107 Online
109687 Solutions
New Discussion

Re: Problems with FTP

 
Pedro Luis Estraño
Contributor

Problems with FTP

Why only the root user can be ftp command.
Can anything user run ftp command ?

Thank.
Hello everyone
3 REPLIES 3
Alex Glennie
Honored Contributor

Re: Problems with FTP

depends what errors are they getting ?

some ideas anyway ....

Check permission on /etc/services... 664 ?

check permissions on /usr/bin/telnet & /usr/bin/ftp &
check permissions on /dev/tty 666 ?

make sure users shell is listed in /etc/shells ?
Rita C Workman
Honored Contributor

Re: Problems with FTP

The first thing I would check is the /var/adm/inetd.sec to see if it has denied ftp access.

/rcw
Shannon Petry
Honored Contributor

Re: Problems with FTP

There are quite a few things to look at.

FTP looks for /etc/shells to define shells allowed to connect via ftp.
>cat /etc/shells
/usr/bin/csh
/usr/bin/ksh
/sbin/sh
/bin/sh

The shell must be defined by the standard definitions in /etc/passwd or nis,nis+ passwd file. Shells are matched based on the existance of the shell, nothing else.
I.E. User has a shell of /bin/ksh which is really a link to /usr/bin/ksh. If the /etc/shells file has only /usr/bin/ksh, the user will be denied access.

Next item is /etc/ftpusers. If a user is listed in this file, they will be denied access.
>cat /etc/ftpusers
root
daemon
bin
uucp

Another thing to check is that the users home directories exist and have correct permissions. If the home directory can not be accessed then the connection will break after authorization.

Next thing is (as someone else mentioned) /var/adm/inetd.sec. Users and hosts can be restricted access based on entries in this file.

Next is make sure that your ftp daemon has correct permissions. Since root can ftp in, then the problem should not be with /etc/inetd.conf, or /etc/services.

Regards,
Shannon
Microsoft. When do you want a virus today?