search for: ptyfd

Displaying 20 results from an estimated 39 matches for "ptyfd".

Did you mean: pty_fd
2000 Aug 28
1
PTY-Allocation under SCO 5
Hello, I used the sshd under SCO 5, and always get the error that the deamon couldn't allcoate a pseudo tty. This depends on that SCO use a different method to create the tty's in the /dev directory. The pseudo tty line looks like: /dev/ttypXXX where XXX depends on the number of pseudo tty's entered in the scoadmin Tool for the network interface. So I change the allocation routine in
2002 May 09
4
make distprep broken?
Hello All, Doing a make distprep doesn't seem to work anymore: $ make -f Makefile.in distprep make: @SH@: Command not found make: *** [catman-do] Error 127 I've seen this on AIX & Redhat (gnu make) and Solaris (native make). I suspect this occurs on most platforms. Is this still the recommended way of autoreconf'ing CVS releases for building? -Daz.
2001 Oct 12
2
bug report: last login time vs PAM in portability release
..., it reads the already updated lastlog file and reports the time :of the session just started. To fix this, I moved the pam_open_session :call into do_login: : :--- session.c Fri Oct 12 13:05:58 2001 :+++ .snapshot/nightly.3/session.c Mon Oct 8 15:52:02 2001 :@@ -541,6 +541,11 @@ : ptyfd = s->ptyfd; : ttyfd = s->ttyfd; : :+#if defined(USE_PAM) :+ do_pam_session(s->pw->pw_name, s->tty); :+ do_pam_setcred(1); :+#endif :+ : /* Fork the child. */ : if ((pid = fork()) == 0) { : :@@ -698,11 +703,6 @@ : last_login_time = get_l...
2000 Nov 14
0
2.3.0p1, Solaris 7 and last login (fwd)
...ention that in general, OpenSSH rocks? :) -- UNIX System Administrator - Boi Sletterink Phone: +31-15-278 2504 -------------- next part -------------- *** session.c.orig Sat Oct 28 05:19:58 2000 --- session.c Tue Nov 14 16:04:21 2000 *************** *** 590,600 **** --- 590,616 ---- int fdout, ptyfd, ttyfd, ptymaster; pid_t pid; + #define BOIS_DIRTY_PATCH + #ifdef BOIS_DIRTY_PATCH + char hostname[MAXHOSTNAMELEN]; + time_t last_login_time; + struct passwd * pw = s->pw; + char *time_string; + #endif + if (s == NULL) fatal("do...
2002 Jun 07
4
openssh for UWIN
...hentication if not running as root. */ ! #if define(HAVE_CYGWIN) || defined(_UWIN) /* Ignore uid if running under Windows */ if (!options.use_privileged_port) { #else *** sshpty.c.orig Thu Dec 20 22:45:52 2001 --- sshpty.c Thu May 30 16:37:50 2002 *************** *** 124,130 **** close(*ptyfd); return 0; } ! #ifndef HAVE_CYGWIN /* * Push the appropriate streams modules, as described in Solaris pts(7). * HP-UX pts(7) doesn't have ttcompat module. --- 124,130 ---- close(*ptyfd); return 0; } ! #if !defined(HAVE_CYGWIN) && !defined(_UWIN) /* *...
2002 Jan 30
0
[Bug 87] New: Last logon that gets reported upon login is the current login time
...ssion *, const char *); void do_exec(Session *, const char *); -void do_login(Session *, const char *); +void do_login(Session *, const char *, const time_t, const char *); #ifdef LOGIN_NEEDS_UTMPX static void do_pre_login(Session *s); #endif @@ -548,11 +548,17 @@ { int fdout, ptyfd, ttyfd, ptymaster; pid_t pid; + char hostname[MAXHOSTNAMELEN]; + time_t last_login_time; if (s == NULL) fatal("do_exec_pty: no session"); ptyfd = s->ptyfd; ttyfd = s->ttyfd; + /* Get the time and hostname when the u...
2002 Aug 28
5
Tru64 privsep patch testing
...g1: session_by_channel: session 0 channel 0 debug1: session_input_channel_req: session 0 req shell debug1: fd 4 setting TCP_NODELAY debug1: channel 0: rfd 12 isatty debug1: fd 12 setting O_NONBLOCK debug2: fd 11 is O_NONBLOCK debug1: Setting controlling tty using TIOCSCTTY. debug3: : tty /dev/ttyp2 ptyfd 7 debug3: entering debug3: : checking request 38 Error in terminal setup. Couldn't establish session for dhp from xxxx.phy.anl.gov debug1: Calling cleanup 0x12004fb60(0x140031218) debug1: session_pty_cleanup: session 0 release /dev/ttyp2 [--- end ---]
2001 Feb 22
0
Solaris and Latest snapshot (2001-02-21) (fwd)
...81,6 +481,10 @@ > > session_proctitle(s); > > +#ifdef USE_PAM > + do_pam_setcred(); > +#endif /* USE_PAM */ > + > /* Fork the child. */ > if ((pid = fork()) == 0) { > /* Child. Reinitialize the log since the pid has changed. */ > @@ -593,6 +597,11 @@ > ptyfd = s->ptyfd; > ttyfd = s->ttyfd; > > +#ifdef USE_PAM > + do_pam_session(pw->pw_name, s->tty); > + do_pam_setcred(); > +#endif /* USE_PAM */ > + > /* Fork the child. */ > if ((pid = fork()) == 0) { > /* Child. Reinitialize the log because the pid has...
2008 Jul 28
0
PTY allocation without being root
...limiting. Right now I'm using this patch, which actually seems to work on my system: | --- crypto/openssh/session.c | +++ crypto/openssh/session.c | @@ -1867,7 +1867,7 @@ | | /* Allocate a pty and open it. */ | debug("Allocating pty."); | - if (!PRIVSEP(pty_allocate(&s->ptyfd, &s->ttyfd, s->tty, sizeof(s->tty)))) { | + if (!pty_allocate(&s->ptyfd, &s->ttyfd, s->tty, sizeof(s->tty))) { | if (s->term) | xfree(s->term); | s->term = NULL; I can imagine this is not the right way to do it. I predict this breaks badly when t...
2001 Feb 17
2
Where is OpenSSH 2.5.0p1?
....c,v retrieving revision 1.31 diff -u -r1.31 pty.c --- pty.c 2001/02/09 02:11:24 1.31 +++ pty.c 2001/02/17 16:06:49 @@ -49,15 +49,19 @@ { #if defined(HAVE_OPENPTY) || defined(BSD4_4) /* openpty(3) exists in OSF/1 and some other os'es */ - char buf[64]; + char *name; int i; - i = openpty(ptyfd, ttyfd, buf, NULL, NULL); + i = openpty(ptyfd, ttyfd, NULL, NULL, NULL); if (i < 0) { error("openpty: %.100s", strerror(errno)); return 0; } - strlcpy(namebuf, buf, namebuflen); /* possible truncation */ + name = ttyname(*ttyfd); + if (!name) + fatal("openpty returns de...
2001 Aug 07
1
do_pre_login() used before declared
...verse_mapping_check), + (struct sockaddr *)&from); +} +#endif + /* * This is called to fork and execute a command when we have no tty. This * will call do_child from the child, and server_loop from the parent after @@ -621,34 +649,6 @@ /* server_loop _has_ closed ptyfd and fdout. */ } } - -#ifdef LOGIN_NEEDS_UTMPX -void -do_pre_login(Session *s) -{ - socklen_t fromlen; - struct sockaddr_storage from; - pid_t pid = getpid(); - - /* - * Get IP address of client. If the connection is not a socket, let - * the address be...
2014 Sep 08
1
possible deadcodes in sources
...*intptr = *intptr + 1; - } break; case sClientAliveInterval: * monitor_wrap.c:720:dead_error_line ? Execution cannot reach this statement "close(tmp2);".o --- a/monitor_wrap.c +++ b/monitor_wrap.c @@ -714,10 +714,8 @@ mm_pty_allocate(int *ptyfd, int *ttyfd, char *namebuf, size_t namebuflen) if ((tmp1 = dup(pmonitor->m_recvfd)) == -1 || (tmp2 = dup(pmonitor->m_recvfd)) == -1) { error("%s: cannot allocate fds for pty", __func__); - if (tmp1 > 0) + if (tmp1 &g...
2001 Oct 23
1
Compilation error on Solaris Workshop 6 (+patch)
...un\" -DHAVE_CONFIG_H -c session.c "session.c", line 628: identifier redeclared: do_pre_login current : static function(pointer to struct Session {int used, int self, pointer to struct passwd {..} pw, pointer to struct Authctxt {..} authctxt, int pid, pointer to char term, int ptyfd, int ttyfd, int ptymaster, int row, int col, int xpixel, int ypixel, array[64] of char tty, pointer to char display, int screen, pointer to char auth_proto, pointer to char auth_data, int single_connection, int chanid, int is_subsystem}) returning void previous: function() returning int : &...
2001 Sep 06
1
lastlog on Solaris with PAM (patch included)
...m_setcred might print things that belong to the + session, put it after the stdio plumbing. + Mark Mentovai, 20010906 */ + do_pam_setcred(1); +#endif /* USE_PAM */ + /* Do processing for the child (exec command etc). */ do_child(s, command); /* NOTREACHED */ @@ -570,11 +573,6 @@ ptyfd = s->ptyfd; ttyfd = s->ttyfd; -#if defined(USE_PAM) - do_pam_session(s->pw->pw_name, s->tty); - do_pam_setcred(1); -#endif - /* Fork the child. */ if ((pid = fork()) == 0) { /* Child. Reinitialize the log because the pid has changed. */ @@ -609,6 +607,23 @@ else do_...
2002 Feb 12
1
SSH Client Hangs after logging in to SSHD
I'm not a ssh expert and I don't know if the log is good or bad, but I too am running OpenSHH under OpenServer. I find that after I connect, the return key has no effect unless I first type: stty sane <Ctrl>j If you've hit <ENTER> before that you must first press <Ctrl>j a couple of times to clean out the buffer. After I type the above command, everything
2010 Jan 14
9
[Bug 1698] New: Connection stalls on PTY allocation failure
...on."); return 0; } if (s->ttyfd != -1) { packet_disconnect("Protocol error: you already have a pty."); return 0; } ... debug("Allocating pty."); if (!PRIVSEP(pty_allocate(&s->ptyfd, &s->ttyfd, s->tty, sizeof(s->tty)))) { if (s->term) xfree(s->term); s->term = NULL; s->ptyfd = -1; s->ttyfd = -1; error("session_pty_req: session %d...
2001 Aug 13
0
Latest won't compile under Solaris 8
...;/var/ssh\" -DHAVE_CONFIG_H -c session.c "session.c", line 628: identifier redeclared: do_pre_login current : function(pointer to struct Session {int used, int self, pointer to struct passwd {..} pw, pointer to struct Authctxt {..} authctxt, int pid, pointer to char term, int ptyfd, int ttyfd, int ptymaster, int row, int col, int xpixel, int ypixel, array[64] of char tty, pointer to char display, int screen, pointer to char auth_proto, pointer to char auth_data, int single_connection, int chanid, int is_subsystem}) returning void previous: function() returning int : &...
2004 Aug 27
0
Terminal modes
...e 26 debug3: mm_request_receive entering debug3: monitor_read: checking request 25 debug3: mm_answer_pty entering debug1: session_new: init debug1: session_new: session 0 debug3: mm_request_send entering: type 26 debug3: Trying to reverse map address 10.4.1.27. debug3: mm_answer_pty: tty /dev/pts/3 ptyfd 4 debug3: mm_request_receive entering debug1: session_pty_req: session 0 alloc /dev/pts/3 debug3: tty_parse_modes: SSH2 n_bytes 21 debug3: tty_parse_modes: 53 0 debug3: tty_parse_modes: 54 0 debug3: tty_parse_modes: 55 0 debug3: tty_parse_modes: 56 0 debug1: server_input_channel_req: channel 0 requ...
2004 Aug 31
0
Terminal mode (repost)
...e 26 debug3: mm_request_receive entering debug3: monitor_read: checking request 25 debug3: mm_answer_pty entering debug1: session_new: init debug1: session_new: session 0 debug3: mm_request_send entering: type 26 debug3: Trying to reverse map address 10.4.1.27. debug3: mm_answer_pty: tty /dev/pts/3 ptyfd 4 debug3: mm_request_receive entering debug1: session_pty_req: session 0 alloc /dev/pts/3 debug3: tty_parse_modes: SSH2 n_bytes 21 debug3: tty_parse_modes: 53 0 debug3: tty_parse_modes: 54 0 debug3: tty_parse_modes: 55 0 debug3: tty_parse_modes: 56 0 debug1: server_input_channel_req: channel 0 requ...
2011 Feb 02
0
Porting openssh to Windows natively
...quot; key and "local echo" is there.? Can anyone tell what is missing for my interactive session?? Ah, I have to back up a bit about what I did for the interactive session.? Since on windows, there is no concept of tty, instead of allocating a pty, I just created a sockpair to hook up the ptyfd and ttyfd when forking the child from do_exec_pty.? The ttyfd contains one of the socket of the socket pair, and the socket handle was passed? as the stdin/stdout/stderr of the windows cmd shell that is started by the child.? Could that be the reason?? Is the client always working on the raw mode??...