login -f changing session getlogin(2)
Jilles Tjoelker
jilles at stack.nl
Sat Oct 3 21:09:01 UTC 2015
On Thu, Oct 01, 2015 at 03:02:21PM -0700, Bryan Drewery wrote:
> Can't we use something like forkpty(3) for the child to avoid the issues
> you mention? It calls setsid(2) via login_tty(3).
This would make sense for a special impersonation tool or for a paranoid
version of su, but not for a normal login.
You can do this right now using script(1), for example
script /dev/null login -f SOMEUSER
--
Jilles Tjoelker
More information about the freebsd-arch
mailing list