Re:/bin/false is not security (2005)
by icebraining on Friday December 29, 2017 @08:18AM
(#16029319)
How can you preload in the shell? Isn't it launched by sshd, which you can't configure?
[ Parent
| on HN ]
You can't configure which shell is run, but you can usually configure the shell (in ~/.profile or a similar file).
Or, if the server is running Debian, you can set environment variables the .pam_environment file:
Re:/bin/false is not security (2005)
by icebraining on Friday December 29, 2017 @01:03PM
(#16030795)
I don't think .profile runs before the shell is spawned, does it?
The .pam_environment one is interesting, thanks for the link.