the .netrc file is in the home of the non-linux machine and the syntax is: machine <your-linux-machine> login <login-name> password <your-password> ciao, Hermann
On Wed, Jul 02, 2003 at 01:53:50PM -0700, SAWYER Charlotte M wrote: > YEAH!!! A solid lead! > > So the .netrc file is in the users' directory? What should the content of > it be and in what syntax? > > -----Original Message----- > From: Hermann Kaiser [mailto:[EMAIL PROTECTED] > Sent: Wednesday, July 02, 2003 1:41 PM > To: [EMAIL PROTECTED] > Subject: Re: rexec via xinetd help > > > hmm, you get simple a timeout on the rexec command. > In the moment I remember what's wrong ... rexec doesn't > use the .rhost file, you need a .netrc file, for .rhosts you > should use rsh ... both files need to work a permission of 600. > ciao, > Hermann > > On Wed, Jul 02, 2003 at 12:14:47PM -0700, SAWYER Charlotte M wrote: > > Yeap, the daemon is running -- triggered from xinetd > > Don't need (or WANT) root -- would like to use the config options of > xinetd > > to control which hosts can do this..... > > > > Below are outputs from: > > ======================================================== > > USER DESKTOP:============================================== > > ============================================================= > > [EMAIL PROTECTED] root]# rexec -n svr-1 ls > > Username at svr-1: DOR > > Password: > > svr-1: No such file or directory > > rexec: Error in rexec system call, > > rexec: (The following system error may itself be in error) > > rexec: Illegal seek > > [EMAIL PROTECTED] root]# > > > > ============================================================== > > xinetd -d call showing debug info ============================== > > =============================================================== > > [EMAIL PROTECTED] log]# xinetd -d > > 03/7/[EMAIL PROTECTED]:05:22: ERROR: 3444 {handle_includedir} /etc/xinetd.d/hold > > is not > a > > regular file. It is being skipped. > > 03/7/[EMAIL PROTECTED]:05:22: DEBUG: 3444 {handle_includedir} Reading included > > configuration file: /etc/xinetd.d/rexec [line=15] > > 03/7/[EMAIL PROTECTED]:05:22: DEBUG: 3444 {handle_includedir} Reading included > > configuration file: /etc/xinetd.d/telnet [line=14] > > 03/7/[EMAIL PROTECTED]:05:22: DEBUG: 3444 {handle_includedir} Reading included > > configuration file: /etc/xinetd.d/wu-ftpd [line=14] > > Service defaults > > CPS = max conn:15 wait:30 > > PER_SOURCE = 5 > > Bind = All addresses. > > Only from: All sites > > No access: No blocked sites > > Logging to syslog. Facility = authpriv, level = debug > > Log_on_success flags = HOST PID > > Log_on_failure flags = HOST ATTEMPT USERID > > > > Service configuration: exec > > id = exec > > flags = IPv4 > > socket_type = stream > > Protocol (name,number) = (tcp,6) > > port = 512 > > Groups = no > > PER_SOURCE = 5 > > Bind = All addresses. > > Server = /usr/sbin/in.rexecd > > Server argv = in.rexecd > > Only from: All sites > > No access: No blocked sites > > Logging to syslog. Facility = authpriv, level = debug > > Log_on_success flags = HOST PID > > Log_on_failure flags = HOST ATTEMPT USERID > > > > Service configuration: telnet > > id = telnet > > flags = REUSE IPv4 > > socket_type = stream > > Protocol (name,number) = (tcp,6) > > port = 23 > > Groups = no > > PER_SOURCE = 5 > > Bind = All addresses. > > Server = /usr/sbin/in.telnetd > > Server argv = in.telnetd > > Only from: 10.15.38.130(NUMERIC) 10.15.38.132(NUMERIC) > > 10.15.100.21(NUMERIC) 10.15.100.31(NUMERIC) 10.15.38.131(NUMERIC) > > 10.15.38.130(NUMERIC) > > No access: No blocked sites > > Logging to syslog. Facility = authpriv, level = debug > > Log_on_success flags = HOST PID > > Log_on_failure flags = HOST ATTEMPT USERID > > > > Service configuration: ftp > > id = ftp > > flags = IPv4 > > socket_type = stream > > Protocol (name,number) = (tcp,6) > > port = 21 > > Nice = 10 > > Groups = no > > PER_SOURCE = 5 > > Bind = All addresses. > > Server = /usr/sbin/in.ftpd > > Server argv = in.ftpd -lLioX -r > > Only from: All sites > > No access: No blocked sites > > Logging to syslog. Facility = authpriv, level = debug > > Log_on_success flags = HOST DURATION PID USERID > > Log_on_failure flags = HOST ATTEMPT USERID > > > > 03/7/[EMAIL PROTECTED]:05:22: DEBUG: 3444 {cnf_start_services} Started service: > > exec > > 03/7/[EMAIL PROTECTED]:05:22: DEBUG: 3444 {cnf_start_services} Started service: > > telnet > > 03/7/[EMAIL PROTECTED]:05:22: DEBUG: 3444 {cnf_start_services} Started service: ftp > > 03/7/[EMAIL PROTECTED]:05:22: DEBUG: 3444 {cnf_start_services} mask_max = 8, > > services_started = 3 > > 03/7/[EMAIL PROTECTED]:05:22: NOTICE: 3444 {main} xinetd Version 2.3.11 started > > with > > libwrap loadavg options compiled in. > > 03/7/[EMAIL PROTECTED]:05:22: NOTICE: 3444 {main} Started working: 3 available > > services > > 03/7/[EMAIL PROTECTED]:05:22: DEBUG: 3444 {main_loop} active_services = 3 > > 03/7/[EMAIL PROTECTED]:05:36: DEBUG: 3444 {main_loop} select returned 1 > > 03/7/[EMAIL PROTECTED]:05:36: DEBUG: 3444 {server_start} Starting service exec > > 03/7/[EMAIL PROTECTED]:05:36: DEBUG: 3444 {main_loop} active_services = 3 > > 03/7/[EMAIL PROTECTED]:05:36: DEBUG: 3445 {exec_server} duping 9 > > 03/7/[EMAIL PROTECTED]:05:36: DEBUG: 3444 {main_loop} active_services = 3 > > 03/7/[EMAIL PROTECTED]:05:36: DEBUG: 3444 {main_loop} select returned 1 > > 03/7/[EMAIL PROTECTED]:05:36: DEBUG: 3444 {check_pipe} Got signal 17 (Child exited) > > 03/7/[EMAIL PROTECTED]:05:36: DEBUG: 3444 {child_exit} waitpid returned = 3445 > > 03/7/[EMAIL PROTECTED]:05:36: DEBUG: 3444 {server_end} exec server 3445 exited > > 03/7/[EMAIL PROTECTED]:05:36: INFO: 3444 {conn_free} freeing connection > > 03/7/[EMAIL PROTECTED]:05:36: DEBUG: 3444 {child_exit} waitpid returned = -1 > > 03/7/[EMAIL PROTECTED]:05:36: DEBUG: 3444 {main_loop} active_services = 3 > > > > ===================================================== > > syslog logging being sent to daemonlog file============== > > also shows successful 2 ssh log-ins > > ===================================================== > > [EMAIL PROTECTED] log]# tail daemonlog > > Jul 2 10:58:56 svr-1 sshd[3273]: Accepted password for root from > > 10.15.38.25 port 1306 ssh2 > > Jul 2 12:03:05 svr-1 sshd[3373]: Accepted password for root from > > 10.15.38.25 port 1689 ssh2 > > Jul 2 12:03:28 svr-1 in.rexecd[3421]: connect from css38025.dor > > Jul 2 12:04:26 svr-1 xinetd[523]: Exiting... > > Jul 2 12:05:36 svr-1 in.rexecd[3445]: connect from css38025.dor > > [EMAIL PROTECTED] log]# > > ===================================================================== > deleted the rest > > > -- > redhat-list mailing list > unsubscribe mailto:[EMAIL PROTECTED] > https://www.redhat.com/mailman/listinfo/redhat-list > > > -- > redhat-list mailing list > unsubscribe mailto:[EMAIL PROTECTED] > https://www.redhat.com/mailman/listinfo/redhat-list -- redhat-list mailing list unsubscribe mailto:[EMAIL PROTECTED] https://www.redhat.com/mailman/listinfo/redhat-list