I have a server with some serial ports. One is /dev/console, another is /dev/term/b(the ttyS1 under linux and the COM2 under dos). I want root to login under /dev/term/b but..
myserver termb login: root
Password:
Not on system console
myserver termb login:
An easy solution is to edit /etc/default/login
and comment the line CONSOLE
but with this solution root login is allowed on ALL ports,
I want to permit access root on /dev/console
, /dev/term/b
but not on /dev/term/a
or /dev/pts/*
for example.
On some good old unix and unix-like(Sco,BSD,Slackware)
we have to edit /etc/securetty
and enable the line
where we want grant root access..and on Solaris?
Solaris version is 11.4 and root is normal user and not role.