Автор Тема: /etc/securetty  (Прочетена 1038 пъти)

Apache

  • Напреднали
  • *****
  • Публикации: 106
    • Профил
/etc/securetty
« -: Aug 05, 2006, 22:23 »
Добър ден. Имам един много простичък въпрос относно файла /etc/securetty .
Примерен код

# /etc/securetty: list of terminals on which root is allowed to login.
# See securetty(5) and login(1).
#vc/0
#vc/1
vc/2
#vc/3
#vc/4
#vc/5
#vc/6
#vc/7
#vc/8
#vc/9
#vc/10
#vc/11
#vc/12
#tty0
tty1
tty2
tty3
#tty4
#tty5
#tty6
#tty7
#tty8
#tty9
#tty10
#tty11
#tty12

#tts/0
#ttyS0
#tts/0

А именно какво са vc/# от първите 12 реда, както и tts# / ttyS# от последните три. tty# доколкото разбрах изброява терминалите от които root може да влиза ( тоест целия файл по принцип е за това, но tty са терминалите които се сменят с alt + F1...2..3..12 ), поправете ме ако греша. А останалите означения какво значат ?
Мерси предварително. '<img'>



Активен

the_real_maniac

  • Напреднали
  • *****
  • Публикации: 1258
  • Kernel panic, me - no panic ;-) :-)
    • Профил
/etc/securetty
« Отговор #1 -: Aug 06, 2006, 00:08 »
ttyS - това се терминалните устройства свързани със серийните портове на компютъра ти.

относно vc и tty: накратко vc се явява alias на tty.

Цитат

 In Linux the PC monitor is usually called the console and has several device special files associated with it: vc/0 (tty0), vc/1 (tty1), vc/2 (tty2), etc. When you log in you are on vc/1. To go to vc/2 (on the same screen) press down the 2 keys Alt(left)-F3. For vc/3 use Left Alt-F3, etc. These (vc/1, vc/2, vc/3, etc.) are called "virtual terminals". vc/0 (tty0) is just an alias for the current virtual terminal and it's where messages from the system are sent. Thus messages from the system will be seen on the console (monitor) regardless of which virtual terminal it is displaying.

You may log in to different virtual terminals and thus have a few different sessions with the computer going on at the same time. Only the system or the root user may write to /dev/vc/0 to which /dev/console is sometimes linked. For more info on the console see The Linux Console.




Активен

Powered by Debian GNU / LINUX /// Intel inside ...

„Насилието е последното убежище на некомпетентността“ - Айзък Азимов (1920 — 1992)

Apache

  • Напреднали
  • *****
  • Публикации: 106
    • Профил
/etc/securetty
« Отговор #2 -: Aug 09, 2006, 15:21 »
Цитат
относно vc и tty: накратко vc се явява alias на tty.

Хм мерси, странно защо са дадени и двете като опции.
Активен