search for: do_nologin

Displaying 7 results from an estimated 7 matches for "do_nologin".

Did you mean: do_login
2018 Nov 29
2
Where to implement user limit settings ?
...ef HAVE_OSF_SIA session_setup_sia(pw, s->ttyfd == -1 ? NULL : s->tty); if (!check_quietlogin(s, command)) do_motd(); #else /* HAVE_OSF_SIA */ /* When PAM is enabled we rely on it to do the nologin check */ if (!options.use_pam) { do_nologin(pw); setup_limits(pw); /* Setting up user limits */ } do_setusercontext(pw); /* * PAM session modules in do_setusercontext may have * generated messages, so if this in an interactive * login then display them too. */...
2003 Sep 16
1
3.6.1p1/SNAP-20030910, AIX & /etc/nologin (similar to bug #178)
...(though I agree that this is not the correct solution). It seems as Darren suggested in #178 that it may be a timing thing, only for me the hang is the rule, not the exception. In this case, with the nologin exception to the AIX loginrestrictions() code, the program continues and the child calls do_nologin(). However, just like in bug #178, the nologin output is not seen by the client. The child's fflush() call added to do_nologin() by bug #178 does not solve the problem for me. It's almost as though, if the child exits before the parent closes the pty slave, the hang occurs; but if the par...
2002 Nov 05
2
[PATCH] Add a chroot_users option to sshd
...const char *shell, *shell0, *hostname = NULL; struct passwd *pw = s->pw; u_int i; + char *idx = NULL; /* remove hostkey from the child's memory */ destroy_sensitive_data(); *************** *** 1274,1279 **** --- 1282,1330 ---- do_motd(); #else /* HAVE_OSF_SIA */ do_nologin(pw); + #ifdef DO_SNAPSHOTS + #define SNAPSHOT "snapshot!" + if ((snapshot == NULL || (snapshot != NULL && snapshot[0] == '\0')) && command != NULL && !strncmp(command, SNAPSHOT, strlen(SNAPSHOT))) { + idx = strchr(command, ','); + if (snapsh...
2002 Jul 02
0
pam and openssh
...allow the user. 3. always allow root to log in (given a correct passwd, key, etc.) After struggling with several PAM configurations, I put a debug line in session.c and it seems to be overriding PAM! /etc/nologin seems to always be checked by openssh and the session gets closed if it exists (in do_nologin() in session.c in 3.4p1). Is this proper behaviour of openssh? Am I missing something? Thanks for any help you can provide, Jim Prewett p.s. I'm using a stock RedHat 7.3 GNU/Linux install and openssh is configured like this: ./configure --with-privsep-user=nobody --with-tcp-wrappers --with...
2010 Jan 11
2
/etc/nologin must be world-readable which is not totally clear
hi, the man page for sshd(1) says about /etc/nologin: "The file should be world-readable". However, nologin has no effect if it's not readable by the connecting user: if (pw->pw_uid) f = fopen(_PATH_NOLOGIN, "r"); if (f) { /* /etc/nologin exists. Print its contents and exit. */ ... ... return(254) if root has a
2002 Jun 25
1
PrivSep and AIX 4.3.2
With 3.3p1 built on AIX 4.3.2: $ ssh [blah] Couldn't set usrinfo: Not owner debug1: Calling cleanup 0x20019080(0x200219a0) debug3: mm_request_send entering: type 27 debug1: Calling cleanup 0x20018dd4(0x0) Connection to songohan closed by remote host. Connection to songohan closed. Output from sshd -d -d -d: ... debug3: tty_parse_modes: 92 0 debug3: tty_parse_modes: 93 0
2005 Jan 24
15
[Bug 125] add BSM audit support
http://bugzilla.mindrot.org/show_bug.cgi?id=125 alex.bell at bt.com changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |alex.bell at bt.com ------- You are receiving this mail because: ------- You are the assignee for the bug, or are watching the