1753879 Members
7418 Online
108809 Solutions
New Discussion юеВ

getty without Login

 
Luis Lino_1
Advisor

getty without Login

Dear friends,
Can I disabled login and password when I try to connect by tty2aX?.

Could you help me, please?

Thanks
Luis Lino
6 REPLIES 6
Steven E. Protter
Exalted Contributor

Re: getty without Login

Shalom,

I'm sure you can by blanking out the password in /etc/passwd

This would have a few effects:
1) It would enable the user without a password from any type of login.
2) It would cause you to FAIL you rnext security audit.

There are means of getting access to a system that won't cause the above effects.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Kent Ostby
Honored Contributor

Re: getty without Login

What is it your trying to do on that tty?

Perhaps there is another command that you can use to do what you would like to do.
"Well, actually, she is a rocket scientist" -- Steve Martin in "Roxanne"
Bill Hassell
Honored Contributor

Re: getty without Login

It's not clear what you want to accomplish. If you do not want any logins from tty2aX then remove the getty line in inittab or change :respawn: to :off: and then kill that specific getty. On the other hand, if you want getty to set a permanent baud rate, parity and other settings, then you can add an entry similar to the systty entry in inittab:

tt2x::sysinit:/sbin/stty 9600 clocal icanon echo opost onlcr ixon ixoff icrnl ignpar
Now at the startup of the system, the port will be set to those stty settings. The default for an unset port is 300 baud.


Bill Hassell, sysadmin
Darren Prior
Honored Contributor

Re: getty without Login

Are you looking for a way to have someone connect via a particular tty and get logged in without being asked for a login name or password? If so you should seriously consider the security implications. You could have a user without a password, but they would then be able to login from anywhere without a password.

What is your specific need for this functionality?

regards,

Darren.
Calm down. It's only ones and zeros...
Luis Lino_1
Advisor

Re: getty without Login

I want to send information to Muxtiplexor by these tty2a* (from 1 to 8), but when we send the informati├Г┬│n appear the caracter login .
We have a card (PCI Serial (113f90f0)) product number A6748-60001

Thanks

Luis Lino

Bill Hassell
Honored Contributor

Re: getty without Login

Yes, this would be the case if your inittab file has getty's posted for each port. Edit the /etc/inittab file, then for each of the tty ports, replace the word respawn with the word off, or simply remove the tty entries 1 through 8 then save the file and update the init program with:

init q


Bill Hassell, sysadmin