Displaying 20 results from an estimated 36 matches for "do_exec_no_pty".
2001 Jun 18
2
Patch for changing expired passwords
...llowGroups",
+ pw->pw_name);
return 0;
}
ga_free();
*** session.c.O Mon Jun 18 13:59:57 2001
--- session.c Mon Jun 18 14:15:29 2001
***************
*** 93,98 ****
--- 93,99 ----
void session_close(Session *s);
void do_exec_pty(Session *s, const char *command);
void do_exec_no_pty(Session *s, const char *command);
+ void do_exec(Session *s, const char *command);
void do_login(Session *s, const char *command);
void do_child(Session *s, const char *command);
void do_motd(void);
***************
*** 270,286 ****
command = NULL;
packet_integrity_check(plen, 0, t...
2001 Oct 23
2
PAM problem - sshd segfault on Solaris
...n strncpy () from /usr/lib/libc.so.1
#1 0xff0b61b0 in pam_sm_open_session () from /usr/lib/security/pam_unix.so.1
#2 0xff372b88 in pam_open_session () from /usr/lib/libpam.so.1
#3 0x2cc88 in do_pam_session (username=0x115fb0 "wyodlows", ttyname=0x0)
at auth-pam.c:283
#4 0x32360 in do_exec_no_pty (s=0x1108ac, command=0x121950 "ls")
at session.c:433
#5 0x32884 in do_exec (s=0x1108ac, command=0x121950 "ls") at session.c:668
#6 0x34008 in session_exec_req (s=0x1108ac) at session.c:1742
#7 0x3417c in session_input_channel_req (id=0, arg=0x0) at session.c:1795
#8 0x3a...
2001 Sep 28
2
2.9.9p2 bug in PAM support
...he server, I'm not able to do scp or "ssh
machinename command" in general to any of my Suns!
I tracked this down a bit; the problem occurs only when PAM support is
enabled. However, if I remove line 430 of session.c,
"do_pam_session(s->pw->pw_name, NULL);" inside of do_exec_no_pty, the
problem goes away.
It looks like the following entry in the Changelog may be responsible:
20010627
- (djm) Reintroduce pam_session call for non-pty sessions.
Let me know if you need any additional info to track this down.
Thanks,
Brent Nelson
Director of Computing
Dept. of Physics
Univ...
2005 Dec 02
3
[Bug 1129] sshd hangs for command-only invocations due to fork/child signals
...mindrot.org
ReportedBy: mak-openssh-bugs at greenhills.co.uk
I've encountered a problem similar (or identical to) 967,
but in a modern version, and with more details.
I found a problem where executing ssh with a command (`ssh host date`
would often hang. Debugging sshd I found that do_exec_no_pty() calls
do_child() after the fork(), and that then execve()s. That
execve doesn't appear to complete, and the parent doesn't
appear to return from the fork. Observe:
Dec 2 03:23:14 yoda sshd[7463]: debug1: calling fork in do_exec_no_pty
Dec 2 03:23:14 yoda sshd[7464]: debug1: permanently...
2001 Sep 06
1
lastlog on Solaris with PAM (patch included)
...ive with that, since there's no way short of reading it
directly to find out whether or not it has been updated, and even then,
there's a mostly harmless race condition.
A separate but slightly related issue that I'm nailing at the same time (as
well as an explanation for the change in do_exec_no_pty): It's possible for
pam_setcred to print messages that should be considered part of the session,
and that would need to be done after the stdio and pty plumbing.
Finally, I'm not too thrilled about the use of strlcpy to get the hostname
out of lastlog. The ll_host field of lastlog is a fi...
2001 Oct 29
2
pam_open_session w/o tty on Solaris
Hello, all-
Apparently, under Solaris (I can personally confirm SunOS 5.7 and 5.8),
pam_open_session will generate a segfault if PAM_TTY is not set. The
obvious symptom of this is that OpenSSH 2.9.9p2 will segfault on any
operation that does not request a tty (do_exec_no_pty).
Based on a quick google search, this seems to have been encountered
by others, though the specific symptoms seem to have changed a bit.
(eg http://www.castaglia.org/proftpd/doc/devel-guide/src/modules/mod_pam.c.html
contains a reference to this problem -- the first instance of PAM_TTY)
I wasn&...
2011 Jun 30
4
sshd and .bashrc
...f81033fec2b80 10237328 socket
... whereas the same child process spawned by the sshd
which I'd just built had this ...
0r FIFO 0,6 3093574 pipe
So what was responsible for this difference? It turns
out that there's some code in session.c (specifically,
in the do_exec_no_pty() function) conditionalized with ...
#ifdef USE_PIPES
[ ... ]
#else
[ ... ]
#endif
... so this might lead one to believe that there would be
something in one of the .h files that would govern which
of those chunks of code would get used, particularly in
light of the fact that defines.h contains...
2001 May 25
3
Problem with OpenSSH with UseLogin.. AGAIN!!!
...---------- My OLD message ----------
Hello,
I have just discoverd that ssh -T does not work with servers which have
UseLogin option enabled. This happends becouse /bin/login can not work if
there is no tty. To correct this, it is necessary to add:
options.use_login = 0;
at the top of the "do_exec_no_pty" function from the "session.c" file.
---------- My OLD message ----------
Best regards,
Krzysztof Oledzki
2003 Sep 12
15
[Bug 637] ssh records that the user has logged out even though an sftp session is active
http://bugzilla.mindrot.org/show_bug.cgi?id=637
Summary: ssh records that the user has logged out even though an
sftp session is active
Product: Portable OpenSSH
Version: 3.6.1p2
Platform: All
OS/Version: All
Status: NEW
Severity: security
Priority: P1
Component: ssh
AssignedTo:
2000 Apr 14
2
More Slack7 heartbreak.
...f stdin?(this cause ssh to die w/ "You have no controlling tty.
Cannot read passphrase.\n", line 69 of readpass.c, I've made it work by
calling
password = read_passphrase(prompt, 1); instead of
password = read_passphrase(prompt, 0);
in sshconnect.c line 940
Second, in sshd.c in the do_exec_no_pty function, line 2017 or so:
if (dup2(inout[0], 1) < 0) /* stdout. Note: same socket as stdin. */
perror("dup2 stdout")
This seems to cause the forked process to segfault, as a result scp
doesn't work, nore does using ssh to send a command. What would the fix
be for this?
PS...
2000 May 22
1
future of subsystem requests
I was testing the Linux port of 2.1.0p2 and noticed that the F-Secure SSH
client for Windows 4.0 couldn't successfully connect using its secure
file-transfer facility.
The server log reported that authentication was successful, then the log
left off with a semi-cryptic "subsystem request for sftp" line. After
that, nothing.
Poking around the source, I found this little routine in
2001 Sep 28
0
openssh-2.9.9p2 session.c uses two undeclared void functions
...session.c 2001/09/28 18:17:11 2.9.9.2.0.1
@@ -126,6 +126,9 @@ static void session_pty_cleanup(void *);
void session_proctitle(Session *);
int session_setup_x11fwd(Session *);
void do_exec_pty(Session *, const char *);
+#ifdef LOGIN_NEEDS_UTMPX
+static void do_pre_login(Session *s);
+#endif
void do_exec_no_pty(Session *, const char *);
void do_exec(Session *, const char *);
void do_login(Session *, const char *);
@@ -147,6 +150,7 @@ extern int debug_flag;
extern u_int utmp_len;
extern int startup_pipe;
extern void destroy_sensitive_data(void);
+extern void record_utmp_only(pid_t, const char *, const...
2002 Feb 12
3
[Bug 83] PAM limits applied incorrectly
http://bugzilla.mindrot.org/show_bug.cgi?id=83
djm at mindrot.org changed:
What |Removed |Added
----------------------------------------------------------------------------
Summary|fork() fails when there are |PAM limits applied
|PAM limits set |incorrectly
------- You are receiving this mail because: -------
You
2007 Apr 17
1
where is the point the client command is executed?
Hi,
I met some difficult in reading ssh/sshd souce code, I want to
find out how the command that user input in client is executed on the
server. I only found out the process_input function put the command in a
buffer,but can not find how it is executed. Could you please help me on
that?
Thank you very much.
B Rgds,
Kexin
2011 Feb 02
0
Porting openssh to Windows natively
...was not recognised by the server as a command submission (CRLF).? I have to explicitly press Ctrl-J to submit the command.? Interesting enough, if I fool the unix ssh client by using "ssh username at hostname.com " "" (an empty command) to force the server side to go through the
do_exec_no_pty function, I can actually do what I want interactively if I keep the windows cmd.exe around without exiting.? Even the "enter" 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 interac...
2012 Aug 26
1
Capturing sftp logs on stderr
Hi.
I am running sshd under supervise, using the -e option to capture the
logs on stderr. I am trying to do the same for the sftp subsystem, but
I have been unable to do so. Using the same -e option to sftp-server
simply sends the debug messages to the client's stderr (instead of
sshd's stderr) which doesn't help.
Is there any way to do this? I am not averse to doing a local
2012 Aug 29
0
PATCH: Log the PID of executed commands
sshd logs the PID of the network child and the user child sshd
processes. This patch adds logging the PID of invoked commands for
completeness.
diff --git a/session.c b/session.c
index f3baea2..dd1d0e8 100644
--- a/session.c
+++ b/session.c
@@ -579,6 +579,7 @@ do_exec_no_pty(Session *s, const char *command)
do_child(s, command);
/* NOTREACHED */
default:
+ verbose("command is on pid %ld", (long)pid);
break;
}
@@ -729,6 +730,7 @@ do_exec_pty(Session *s, const char *command)
do_child(s, command);
/* NOTREACHED */
default:
+ verbose(&quo...
2019 Jan 21
4
[Regression] OpenSSH 7.7p1 no longer tests on NonStop Port
Hi All,
I finally got around to trying to test the 7.7p1 release on the HPE NonStop
Platform. 7.6p1 worked just fine - no issues at all.
In 7.7p1, when the agent test ran, the following happened (prior tests
worked perfectly):
run test agent.sh ...
Couldn't open logfile /home/git/openssh-portable/regress/ssh.log:
Permission denied
agent fwd failed (exit code 1)
failed simple agent test
2000 May 15
0
OpenSSH (1.2.3) sshd hanging when using rsync over ssh (retry)
...04fb18 in process_output (writeset=0xbfbfed04)
at /usr/src/secure/usr.sbin/sshd/../../../crypto/openssh/serverloop.c:366
#2 0x8050029 in server_loop (pid=43486, fdin_arg=9, fdout_arg=9, fderr_arg=11)
at /usr/src/secure/usr.sbin/sshd/../../../crypto/openssh/serverloop.c:563
#3 0x8053b60 in do_exec_no_pty (
command=0x80750c0 "rsync --server --sender -vlgtpr --delete . /home/ghelmer/
", pw=0xbfbfef80, display=0x806c0a0 "mocha.cs.iastate.edu:10.0",
auth_proto=0x806c100 "MIT-MAGIC-COOKIE-1",
auth_data=0x8075000 "cdf4b6cb730310be3d51a8abf77303fc")...
2001 Mar 21
1
Tru64 UNIX SIA in 2.5.2p1 is hosed (still)
...'t be some random value here if
session structure has been used before, since s->tty isn't zeroed in
session_new(). Thus you may possibly also need to add:
s->tty[0] = '\0';
into the session initialisation in session_new(), or maybe set it before
the call to do_child() in do_exec_no_pty().
On further thought, perhaps the call to sia_ses_init should be left alone
and the call to session_setup_sia() in session.c changed from:
session_setup_sia(pw->pw_name, s->tty);
to:
session_setup_sia(pw->pw_name, s->ttyfd != -1 ? s->tty : NULL);
Can someone who...