LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices

Reply
 
LinkBack Search this Thread
Old 03-02-2009, 08:43 AM   #1
Reginald0
LQ Newbie
 
Registered: Dec 2002
Location: Brazil
Posts: 26

Rep: Reputation: 15
telnetd/xinetd connection problem with server_args parameter


Hello folks!

I'm having a hard time trying to make telnetd work with xinetd using the server_args parameter in RHEL5. The annoying thing is that this exactly same scenario works flawlessly in RHEL4.
The purpose is substitute the default telnet login screen with my application screen, so I use the following server_args parameter in "/etc/xinetd.d/telnet" configuration file:

server_args = -L /bin/myscript

When I try to telnet to the server, I receive an error message "telnetd: /bin/myscript: Permission denied".
I have tried to chmod 777 the /bin directory as well as myscript file, but the error persists. If I change the /bin/myscript to /bin/login the default login screen opens normally. I also have tried to downgrade the telnetd and xinetd packages to the same versions that works on RHEL4, and the error continues.
Now I'm stuck with this problem, trying to understand what's wrong with something that used to work for so many years in previous versions of RHEL. Below follows the complete "/etc/xinetd.d/telnet" file:

service telnet
{
disable = no
flags = REUSE
socket_type = stream
wait = no
user = root
bind = 10.0.0.1
server = /usr/sbin/in.telnetd
server_args = -L /bin/myscript
log_on_failure += USERID
}

Thanks in advance.

Reginald0
 
Old 03-02-2009, 01:58 PM   #2
Reginald0
LQ Newbie
 
Registered: Dec 2002
Location: Brazil
Posts: 26

Original Poster
Rep: Reputation: 15
Problem solved!

The firewall was disabled, but SELinux was enforcing, causing the "Permission denied" error. I simply disabled it (/etc/selinux/config), reboot and all it's working now, the way it should.

Reginald0
 
Old 03-02-2009, 01:58 PM   #3
Reginald0
LQ Newbie
 
Registered: Dec 2002
Location: Brazil
Posts: 26

Original Poster
Rep: Reputation: 15
Problem solved!

The firewall was disabled, but SELinux was enforcing, causing the "Permission denied" error. I simply disabled it (/etc/selinux/config), reboot and all it's working now, the way it should.

Reginald0
-------------------------
Sorry for double-posting!

Last edited by Reginald0; 03-02-2009 at 02:03 PM. Reason: Sorry for double-posting!
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
telnetd xinetd fedora - no route to host a_arthur Linux - Networking 4 10-07-2009 06:02 AM
linux bash - how to use a dynamic parameter in shell parameter expansion expression nickleus Linux - General 2 08-21-2006 04:54 AM
Fedora core 3, in.tftpd/xinetd connection attempts fail trot Linux - Networking 4 03-23-2005 09:46 AM
imap+xinetd: connection not kept alive foogy Linux - Networking 3 07-08-2003 03:18 PM
kernel parameter problem? bejamex Linux - Newbie 1 06-13-2003 05:42 AM


All times are GMT -5. The time now is 10:00 AM.

Main Menu
 
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: @linuxquestions
Open Source Consulting | Domain Registration