- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - Linux
- >
- rexec illegal seek
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-20-2003 11:10 PM
05-20-2003 11:10 PM
rexec illegal seek
I am trying to execute simple "ls" command on remote machine using rexec command. But I am getting following error messages
---------------------------
rexec: Error in rexec system call
rexec: (The following system error may itself be in error)
rexec: Illegal seek
-----------------------------
Can any body tell me what is the problem..?
Regards,
Prasad.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-20-2003 11:27 PM
05-20-2003 11:27 PM
Re: rexec illegal seek
Make sure that REXEC has been enabled on the target system as a service controlled by xinetd (from desktop, check "System, Service Configuration"). Additionally "rexec" has to be added to the file /etc/securetty as well in this case.
Can also be a PAM problem. Try this first and post if it doesn't solve.
J
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-21-2003 01:18 AM
05-21-2003 01:18 AM
Re: rexec illegal seek
I have made the "rexec" service as "automatic" service, and hence it should get started when system started. Is there a way to check whether it is running or not..?
"/etc/security" folder has many files. which file shall I need to modify...?
How can I know whether it is PAM problem or not..?
regards,
Prasad.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-21-2003 02:00 AM
05-21-2003 02:00 AM
Re: rexec illegal seek
chkconfig --list | grep rexec
It's not security, but securetty, a shorter file indeed, just edit it and check that 'rexec' is in it. If not, just add it at the end.
J
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-21-2003 02:25 AM
05-21-2003 02:25 AM
Re: rexec illegal seek
Thanks for the reply.
The command "chkconfig --list | grep rexec" shown that rexec is "on".
I thought that securetty is a typo of security. Sorry for this.
I have added "rexec" to "/etc/securetty.org" but no use. Still same error is coming. Any other suggestions..?
Regards,
Prasad.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-21-2003 03:53 AM
05-21-2003 03:53 AM
Re: rexec illegal seek
back after lunch. It's securetty, not .org, isn't it ?
Basically, prob is that you do not have rw rights on the remote machine. Being local root doesn't make you remote root. Are you remote root ?
Is the service running on remote machine ?
Read this step by step about it :
http://www.auggy.mlnet.com/ibm/3376c48.html
BTW? r-utilities are nevertheless considered as very dangerous on a network, as they send password in plain text. That's why most recent distro block them, that's the role of PAM module here.
Why not use ssh instead ? It'll be easier to set up than turning off all the security of your systems...
Read this :
http://www.linuxdocs.org/HOWTOs/Security-HOWTO-4.html
and this to set up ssh :
https://www.itso.iu.edu/howto/ssh-unix.epl
J
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-21-2003 04:53 AM
05-21-2003 04:53 AM
Re: rexec illegal seek
The file /etc/securetty is not there in my system. For ur information I am working on Linux Red Hat 7.2.
I am root on local meanchine and remote machine as well.
The problem was found. That is, in the remote machine rexec port has been under linux system firewall. I have modified the /etc/sysconfig/ipchains file to accept rexec port 512 and restarted the machine and it is working fine.
Regards,
Prasad.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-21-2003 05:00 AM
05-21-2003 05:00 AM
Re: rexec illegal seek
But still pay attention to this security leak on your system...
J
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-21-2003 07:57 AM
05-21-2003 07:57 AM
Re: rexec illegal seek
/etc/securetty used to specify ports on which
root user can do login to the system (get from getty).If it doesn't exist - root can login freely (not advised).Usually should put console there.
And no need to restart computer if you change firewall settings :)
Best Wishes
Zeev
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-22-2003 01:06 AM
05-22-2003 01:06 AM
Re: rexec illegal seek
Could u please send me a copy of securetty file, so that I will also try with that.
After modifying ipchains file, rexec is not working with out restarting the system. I dont know whether restarting is mandatory or not, but that is my experience.
Thanks and regards,
Prasad.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-22-2003 01:47 AM
05-22-2003 01:47 AM
Re: rexec illegal seek
Ipchains ? You do not use iptables ? Do you run kernel 2.4 ? then iptbles would be a better idea.
After setting sth in ipchains, rebooting normally flushes the rules, unless you have saved them. It seems that you ruleset is preventing your rexec.
To restart something, better use /etc/rc.d/init.d/service_name restart than restarting the whole machine.
J
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-25-2003 09:51 PM
05-25-2003 09:51 PM
Re: rexec illegal seek
I tried with securetty file but not working. I did the following.
I have created a file with name "securetty" and put it in "etc" directory. The file contents are same as yours and also "rexec" added at the end. Also restarted the machine.
Yes . I am running Kernal 2.4.
Regards,
Prasad.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-25-2003 10:23 PM
05-25-2003 10:23 PM
Re: rexec illegal seek
- does rsh work?
Vitaly