Discussion Locked

Login on ttyS0

0 helpful
3 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.

I installed mgetty service on a linux Red Hat 7.1 in order to have an access point from external to manage assistance on a couple of unix/linux machines. The service functions properly. Now I would like to allow only an user to login into the linux machine on which runs mgetty when the attempt comes into ttyS0 (/dev/ttyS0=modem for mgetty). All other logins present in the system must be refused on a connection on ttyS0. I looked for /etc/login.access or /etc/usertty files but there aren't. Tried to create a /etc/login.access file but not solved (perhaps I wronged some passages).
Any suggestion?
Thanking You
Andy

3 replies

by bg4

Read the "login" manual by typing "man login" and see the section regarding the file "/etc/userttys". Create a "user" profile for the user concerned. This should solve your problem.

Hope this helps.

This discussion is closed to new replies.