LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices

Reply
 
Search this Thread
Old 02-09-2005, 09:06 PM   #1
stakhous
Member
 
Registered: May 2003
Location: PA
Posts: 82

Rep: Reputation: 15
What is /sbin/mingetty?


Hi,

Recently I checked my ps listing, and I noticed /sbin/mingetty running on tty1-6. Now I checked the man pages and google, and this is the explanation I found.


Quote:
mingetty is a minimal getty for use on virtual consoles. Unlike
agetty(8), mingetty is not suitable for serial lines. I recommend
using mgetty(8) for this purpose.
What does this exactly mean? Should this be running as 5 different processes?

Any ideas or help would be much appreciated.

Cheers

Fusion
 
Old 02-09-2005, 09:25 PM   #2
jailbait
Guru
 
Registered: Feb 2003
Location: Blue Ridge Mountain
Distribution: Debian Wheezy, Debian Jessie
Posts: 7,530

Rep: Reputation: 178Reputation: 178
"What does this exactly mean? Should this be running as 5 different processes?"

The various getty programs are used to watch idle terminals waiting for somebody to log on. So yes, you have five different processes each using mingetty to watch a virtual terminal. You only have one copy of mingetty in memory. If you type in <Ctrl> <Alt> <Fx> then the process watching virtual terminal x will give you a login prompt.


------------------------------
Steve Stites
 
Old 03-12-2008, 11:56 AM   #3
vimal
Red Hat India
 
Registered: Nov 2004
Location: Kerala/Pune,india
Distribution: RedHat, Fedora
Posts: 260

Rep: Reputation: 34
Hello,

mingetty is configured to restart itself if logged out or killed, note that logging out is actually killing the process. This is due to the 'respawn' directive in /etc/inittab. If you feel that you don't need the default number of ttys, you can remove them. You can execute the following commands to remove them :

First of all you will have to put off the required number of lines as the below :

1:2345:respawn:/sbin/mingetty tty1
2:2345ff:/sbin/mingetty tty2
3:2345ff:/sbin/mingetty tty3
4:2345ff:/sbin/mingetty tty4
5:2345ff:/sbin/mingetty tty5
6:2345ff:/sbin/mingetty tty6

# telinit q (reloads inittab file)

# deallocvt /dev/tty[2-9] /dev/tty[0-9][0-9] (de-allocates the specified tty)

# rm /dev/tty[2-9] /dev/tty[0-9][0-9] (removes the ttys)

This would make the mingettys not starting...
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
/sbin/rc: line 271: /sbin/devfsd: No such file or directory Alexander.s Linux - General 3 04-22-2005 04:44 PM
Want2use /sbin cmds undr non-root account w/o sudo. Is it safe 2 add /sbin 2 my PATH? kornerr Linux - General 4 02-25-2005 09:29 AM
/usr/sbin and /sbin world read/executable... why? lazlow69 Slackware 3 04-29-2004 05:06 PM
As root, not seeing /sbin and /usr/sbin in path weghman Linux - Newbie 3 04-25-2004 01:06 PM
/sbin/clock and /sbin/hwclock: out of memory problems victor2000 Linux - General 0 07-29-2003 03:16 PM


All times are GMT -5. The time now is 01:20 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration