Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

Mosh should not display motd if ~/.hushlogin exists #216

Closed
kmcallister opened this Issue · 0 comments

2 participants

Keegan McAllister Keith Winstein
Keegan McAllister
Collaborator

See #190.

OpenSSH actually does a more complicated check involving the function login_getcapbool on BSD. I don't know whether we need to understand and implement this part.

Jay Freeman (saurik) saurik referenced this issue from a commit
Commit has since been removed from the repository and is no longer available.
Jay Freeman (saurik) saurik referenced this issue from a commit in saurik/mosh
Jay Freeman (saurik) saurik Replace libutempter with... Unix login.
Fix #47: hostname is set in utmpx by login
Fix #61: login handles utmpx on Mac OS X
Obsolete #190: motd is now handled by login
Fix #193: login correctly sets cwd to home
Obsolete #199: shell lookup is done by login
Fix #201: login understands username maps
Fix #216: .hushlogin is handled by login

As hostnames can no longer be set dynamically, the hostname is now statically set to the PID of mosh-server without a hostname (which happens to fix the truncated PIDs reported on FreeBSD by zi).

I seriously doubt that this commit will ever be merged to upstream, however, as it requires mosh-server to be setuid root (upstream seems against mosh-server even having temporary priviledges).
46b7052
Keith Winstein keithw closed this in 1508d40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.