1748246 Members
3760 Online
108760 Solutions
New Discussion юеВ

Re: FTP and Telnet

 
SOLVED
Go to solution
Dave Bunting
Frequent Advisor

FTP and Telnet

hello,
i just installed RHlinux7.1 on my intel machine. how do i configure ftp and telnet?
i changed /etc/xinetd.d/wu-ftp to disable=no but i couldnt login as root, only anonymous is allowed, any more changes i have to do?
also telnet, i changed disable=no but i get a login incorrect even with the right password

help..?

Thanks
9 REPLIES 9
Marco Paganini
Respected Contributor
Solution

Re: FTP and Telnet

Hello Dave,

You need to add a line to your /etc/ftpaccess file like:

class all real,guest,anonymous *

Chances are you already have this line as a comment on your /etc/ftpaccess file. If that's the case, just remove the comment char (#).

Note that you should be able to login as a regular user, not root. If you also want to open ftp for root (not recommended!!!):

- Edit /etc/ftpusers and remove 'root' from there
- Comment the lines (add a # on the first column) where you see 'deny-gid' and 'deny-uid' in your /etc/ftpaccess file.

Hope it helps,
Paga
Keeping alive, until I die.
Dave Bunting
Frequent Advisor

Re: FTP and Telnet

Thanks Marco,
i can now ftp and telnet to my linux machine using anonymous and 'real' user accounts. But when i try ftp'ing and telneting, i get a login incorrect error even though i supplied the correct password... why is this so?

thanks again
Marco Paganini
Respected Contributor

Re: FTP and Telnet

Hello,

You *should* be able to ftp as root if you did the configurations I mentioned above. If ftp is refusing your root connections, it should be sending something to /var/log/messages or /var/log/secure. Check it there and let me know if you find anything funny coming from ftp.

Also, if you want to telnet as root, add pts/1, pts/2, pts/3 (and a whole bunch of them until pts/N) to /etc/securetty. That should do the trick for you.

Regards,
Paga
Keeping alive, until I die.
Dave Bunting
Frequent Advisor

Re: FTP and Telnet

Thanks for the help Marco,

I still cannot ftp and telnet if im using root... here are the logs



telnet log:

Nov 29 08:47:15 hppsso42 login(pam_unix)[3274]: authentication failure; logname= uid=0 euid=0 tty=pts/1 ruser= rhost=ph17202 user=root

Nov 29 08:47:17 hppsso42 login[3274]: FAILED LOGIN 2 FROM ph17202 FOR root, Authentication failure



ftp logs:



Nov 29 08:49:25 hppsso42 ftpd[3277]: FTP LOGIN REFUSED (username in denied-uid) FROM ph17202 [127.0.0.1], root

Nov 29 08:49:31 hppsso42 ftpd[3277]: FTP session closed





Marco Paganini
Respected Contributor

Re: FTP and Telnet

Hello Dave:

Two things:

1) For telnet:

Did you put pts/1, pts/2, pts/3 etc on your /etc/securetty file?

2) For FTP

Did you comment out the 'deny-uid' and 'deny-gid' lines on /etc/ftpaccess? Also, don't forget to remove the 'root' line from /etc/ftpusers!

Let me know as it goes.

Regards,
Paga
Keeping alive, until I die.
Balaji_3
Advisor

Re: FTP and Telnet

Hi try to install ftp-0.17-6.i386 patch from Redhat CD,which is in Redhat/RPMS directory.
I will attach that file,

Bye
Balaji
The word IMPOSSIBLE itself says that I'MPOSSIBLE
Balaji_3
Advisor

Re: FTP and Telnet

Hi try to install ftp-0.17-6.i386 patch from Redhat CD,which is in Redhat/RPMS directory.
I will attach that file,

Bye
Balaji
The word IMPOSSIBLE itself says that I'MPOSSIBLE
Dave Bunting
Frequent Advisor

Re: FTP and Telnet

thanks, Paga and Balaji for the efforts....
Mary Ann Lipa
Valued Contributor

Re: FTP and Telnet

Hi Dave,



for telnet:

modify /etc/securetty and add entries for pts/1, pts2,pts/3,...etc



for ftp:

modify /etc/ftpaccess:

comment out 'dent-uid and deny-gid'

uncomment 'class all, real,guest, anonymous *'

modify /etc/ftpusers

remove 'root'

modify the following entries:

/etc/xinetd.d/wu-ftp 'disable=no'

/etc/xinetd.d/telnetd 'disable=no'



then restart xinetd daemon:

/etc/rc.d/init.d/xinetd restart



d_b
Which is worse, smoking or picking your nose in a public place?