LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   what is the difference bewteen tty and vc in file /etc/securetty (https://www.linuxquestions.org/questions/linux-general-1/what-is-the-difference-bewteen-tty-and-vc-in-file-etc-securetty-127737/)

wqhhust 12-21-2003 02:06 AM

what is the difference bewteen tty and vc in file /etc/securetty
 
I think vc is short for virtual console,and when the linux startup at level 5.And pressing CTRL+F <1-6> can make a terminate ,Is that virtual console?
And what is the tty? If running a terminate in the x windows ,is that also a virtual console or a tty?

jailbait 12-21-2003 07:04 PM

"pressing CTRL+F <1-6> can make a terminate ,Is that virtual console?"

Yes. That is a virtual console.


" And what is the tty?"

A tty is a file, /dev/tty*. It used to represent a physical device. Now it usually represents a pathway through which a X Window terminal can communicate with the keyboard and monitor.

___________________________________
Be prepared. Create a LifeBoat CD.
http://users.rcn.com/srstites/LifeBo...home.page.html

Steve Stites

wqhhust 12-23-2003 07:01 AM

Thanks for your reply,then I know that if comment vc1,vc2:

#vc1
#vc2
in /etc/secretty,then root can not log in at the terminal triggered by CTRL+F1,CTRL+F2,
but if comment on tty1,tth2
#tty1
#tty2
then what will be forbidden?

jailbait 12-23-2003 09:20 AM

" if comment on tty1,tth2
#tty1
#tty2
then what will be forbidden"

I think that you will not be able to use various application programs that use the command line. You will get messages like "unable to open console".

___________________________________
Be prepared. Create a LifeBoat CD.
http://users.rcn.com/srstites/LifeBo...home.page.html

Steve Stites


All times are GMT -5. The time now is 07:36 PM.