@JeffSchaller No, it's for Linux but it shouldn't make any difference. I'm wondering when that file is read, not how to read it. It's supposed to be read automatically, I thought by login shells, but doesn't seem to be.
@JeffSchaller Hmm. The answer mentioning pam also states:
> All of this, of course, relies on whatever binary you're using (crond, login shells etc) are compiled against PAM.
Which would suggest login shells read it but mine don't. I'm not entirely sure what kind of pam setup I have though. I've never touched it, only whatever Debian set up.
@Archemar Empty in Debian as well but I'm wondering when it's read.
Jeff found a post that suggests it is only read by PAM which may very well be the case.
see /etc/pam.d/login, how as for question in U&L, unless you modify it quiet often, there is no need to source it for EVERY terminal opened. (unless OP has an XY problem)
@terdon By pam_env, so by the process that logs you in (login, sshd, xdm, …). It isn't read by a shell. If you want to test it, use something like ssh localhost.
@ElijahRockers Somehow you have managed to create a second account, which is why your edit is going through the review queue. (Ok, I shouldn't say "somehow", the site makes it unfortunately easy). unix.stackexchange.com/contact should be able to help you merge the two accounts. — derobert5 mins ago
While attempting to install openssh-server on Ubuntu 14.04 64-bit, I get the following error:
Package openssh-server is not available but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source
E: Package 'openss...
I'm surprised the folks deleting the Sandesh answer didn't protect the question. Though I guess the review queue allows enough <20k rep folks to delete an answer, so maybe none of them could.