I know that the chsh
command is used to switch login shell for a user between installed shells, but it works regardless of where login comes from (tty1, tty2, ssh, ...). What I'd like to achieve is to have e.g. csh
on logins from tty7 and e.g. bash
on all other login sources.
Is this doable at all?
/dev/pts/0
..., the fixed virtual and serial terminals aretty1
... andttyS0
... The numbers of thepts/N
ones don't really mean anything, they're just allocated so that you get the next free one. – ilkkachu Feb 08 '18 at 18:32