search for: xauthfile_cleanup_proc

Displaying 11 results from an estimated 11 matches for "xauthfile_cleanup_proc".

2001 Jun 05
1
OpenSSH tmp cleanup
Hi, I noticed that Markus has fixed the temporary file cleanup problems in OpenSSH cvs. What files need patching for this ? I only noticed changes in: session.c, channels.h and channels.c. -Jarno -- Jarno Huuskonen <Jarno.Huuskonen at uku.fi>
2002 Feb 12
0
[Patch] Xauthority file in /tmp
...session.c Tue Feb 12 12:01:51 2002 @@ -151,6 +151,9 @@ extern int startup_pipe; extern void destroy_sensitive_data(void); +/* Local Xauthority file. */ +static char *xauthfile = NULL; + /* original command from peer. */ const char *original_command = NULL; @@ -220,6 +223,28 @@ #endif } +xauthfile_cleanup_proc(void *_pw) +{ + struct passwd *pw = _pw; + + debug("xauthfile_cleanup_proc called"); + + if (xauthfile != NULL) { + char *p; + temporarily_use_uid(pw); + unlink(xauthfile); + p = strrchr(xauthfile, '/'); + if (p != NULL) { + *p = '\0'; + rmdir(xauthfile); +...
2001 Mar 30
4
linux tcsetattr failed
does anyone else see this on linux: localhost sshd[14418]: Accepted password for stevesk from 15.126.45.158 port 49594 localhost sshd[14418]: Setting tty modes failed: Invalid argument redhat with kernel 2.2.17. ttymodes.c: /* Set the new modes for the terminal. */ if (tcsetattr(fd, TCSANOW, &tio) < 0) log("Setting tty modes failed: %.100s", strerror(errno)); return;
2006 Apr 12
2
[Bug 771] Add option to override XAUTHORITY env variable
http://bugzilla.mindrot.org/show_bug.cgi?id=771 openssh at faxm0dem.org changed: What |Removed |Added ---------------------------------------------------------------------------- AssignedTo|openssh-bugs at mindrot.org |bitbucket at mindrot.org ------- Comment #5 from openssh at faxm0dem.org 2006-04-13 01:12 ------- There is a patch that
2000 Aug 30
0
/etc/nologin.allow
...ug 30 12:17:13 2000 @@ -943,6 +943,9 @@ while (fgets(buf, sizeof(buf), f)) fputs(buf, stderr); fclose(f); +#ifdef NOLOGINALLOW + if (nologin_allow(pw->pw_name) != 1) +#endif /* NOLOGINALLOW */ exit(254); } } @@ -1858,4 +1861,29 @@ server_loop2(); if (xauthfile) xauthfile_cleanup_proc(NULL); +} + +int +nologin_allow(char *username) +{ + char buf[256], buf2[256]; + FILE *f = NULL; + + /* Appending an "\n" to the username since that's what it'll read like + * in the file. + */ + strcpy(buf2, username); + strcat(buf2, "\n"); + + f = fo...
2001 Jul 06
1
Xauthority location: only per-user setting possible
Hello all, $XAUTHORITY location has moved from under /tmp to ~/.Xauthority in 2.9p2. The commit message was: --- remove xauth-cookie-in-tmp handling. use default $XAUTHORITY, since we do already trust $HOME/.ssh you can use .ssh/sshrc and .ssh/environment if you want to customize the location of the xauth cookies --- The latter is true, but can only be enabled in per-user basis as far as I see.
2001 Apr 13
0
Fixed patch for Digital Unix SIA
...(!options.use_login) { #ifdef HAVE_OSF_SIA session_setup_sia(pw->pw_name, s->ttyfd == -1 ? NULL : s->tty); + if (! check_quietlogin(s, command)) + do_motd(); #else /* HAVE_OSF_SIA */ #ifdef HAVE_CYGWIN if (is_winnt) { @@ -2027,4 +2038,27 @@ server_loop2(); if (xauthfile) xauthfile_cleanup_proc(NULL); +} + +/* + * Check for quiet login, either .hushlogin or command given. + */ +int +check_quietlogin(Session *s, const char *command) +{ + char buf[256]; + struct passwd * pw = s->pw; + struct stat st; + + /* Return 1 if .hushlogin exists or a command given. */ + if (command != NULL) + re...
2001 Jun 18
1
OpenSSH + Solaris + AFS ???
...id 0 mili 10 debug1: End of interactive session; stdin 0, stdout (read 155, sent 155), stderr 0 bytes. debug1: channel_free: channel 0: status: The following connections are open: debug1: Received SIGCHLD. Disconnecting: Command terminated on signal 11. debug1: Calling cleanup 0x52040(0x0) debug1: xauthfile_cleanup_proc called debug1: Calling cleanup 0x60450(0x0) debug1: Calling cleanup 0x520f8(0x179318) debug1: pty_cleanup_proc: /dev/pts/10 debug1: Calling cleanup 0x47bd0(0x0) debug1: Cannot delete credentials[7]: Permission denied debug1: Calling cleanup 0x6fff8(0x0) debug1: Calling cleanup 0x7b100(0x0) debug1:...
2000 Sep 12
0
OpenSSH 2.2.0p1 port to QNX 4
...BUF * allocbuf(bp, fd, blksize) diff -cr openssh-2.2.0p1.orig/session.c openssh-2.2.0p1.qnx/session.c *** openssh-2.2.0p1.orig/session.c Wed Aug 30 00:21:22 2000 --- openssh-2.2.0p1.qnx/session.c Tue Sep 12 09:27:19 2000 *************** *** 1861,1863 **** --- 1861,1874 ---- if (xauthfile) xauthfile_cleanup_proc(NULL); } + + + #if defined(__QNX__) && !defined(__QNXNTO__) + /* Thanks to liug at mama.indstate.edu */ + + int initgroups(char *name,gid_t id) + { + return(0); + } + + #endif /* __QNX__ && !__QNXNTO__ */ diff -cr openssh-2.2.0p1.orig/ssh.c openssh-2.2.0p1.qnx/ssh.c *** open...
2001 Aug 03
1
Disconnecting: protocol error: rcvd type 98
...0 mili 60000 debug3: tvp!=NULL kid 0 mili 10 debug3: tvp!=NULL kid 0 mili 60000 debug3: tvp!=NULL kid 0 mili 60000 debug3: tvp!=NULL kid 0 mili 60000 debug3: tvp!=NULL kid 0 mili 60000 Received disconnect from 129.234.2.142: protocol error: rcvd type 98 debug1: Calling cleanup 0x26da0(0x0) debug1: xauthfile_cleanup_proc called debug1: Calling cleanup 0x2ea24(0x0) debug1: channel_free: channel 0: status: The following connections are open: debug1: channel_free: channel 1: status: The following connections are open: debug1: Calling cleanup 0x26e04(0xf433c) debug1: pty_cleanup_proc: /dev/pts/4 wtmp_write: problem w...
2001 Apr 11
1
openssh 2.5.2p2/Solaris 5.8 problems
...LD. debug1: channel_free: channel 0: status: The following connections are open: debug1: channel_free: channel 1: status: The following connections are open: debug1: Command exited with status 0. debug1: Received exit confirmation. debug1: session_pty_cleanup: session 0 release /dev/pts/7 debug1: xauthfile_cleanup_proc called Closing connection to 128.46.154.96 ************************************************************** On the client: tsunami:/[42] cat /var/ssh/ssh_config Host * ForwardAgent yes ForwardX11 yes RhostsAuthentication yes RhostsRSAAuthentic...