News for hackers. Stuff that matters.
Re:/bin/false is not security (2005) by icebraining on Friday December 29, 2017 @07:07AM (#16029065)
You can't LD_PRELOAD on a SUID binary like sudo. That said, I agree with your main point - one should use a different account altogether.
Re:/bin/false is not security (2005) by jwilk on Friday December 29, 2017 @07:25AM (#16029130)
I meant preloading it in the shell. The real /usr/bin/sudo would be never executed, so it wouldn't matter if it's suid or not.
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?
Re:/bin/false is not security (2005) by jwilk on Friday December 29, 2017 @10:52AM (#16030025)
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:

https://bugs.debian.org/761600

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.

Re:/bin/false is not security (2005) by lvh on Saturday December 30, 2017 @09:28AM (#16035343)
You can still exec into a new shell, for example.