Networking Forums

Networking Forums > Computer Networking > Linux Networking > mgetty does not work in single user mode

Reply
Thread Tools Display Modes

mgetty does not work in single user mode

 
 
wong_powah@yahoo.ca
Guest
Posts: n/a

 
      10-23-2007, 09:00 PM
I modify /etc/inittab so that mgetty should work in single user
mode. However it does not work in single user mode but work in
runlevel 6. Why?
s1:12345:respawn:/sbin/mgetty /dev/ttyS1 -s 115200 -r

/var/log/messages:
Oct 23 16:35:35 xenontc mgetty[1679]: data dev=ttyS1, pid=1679,
caller='none', cc
onn='DIRECT', name='', cmd='/bin/login', user='root'
Oct 23 16:46:19 xenontc init: Going single user

/var/log/mgetty.log.ttyS1:
10/23 16:29:31 yS1 mgetty: interim release 1.1.33-Apr10
10/23 16:29:31 yS1 check for lockfiles
10/23 16:29:31 yS1 locking the line
10/23 16:29:31 yS1 WARNING: DCD line still active, check modem
settings (AT&Dx)
10/23 16:29:31 yS1 lowering DTR to reset Modem
10/23 16:29:32 yS1 waiting...
10/23 16:35:35 ##### data dev=ttyS1, pid=1679, caller='none',
conn='DIRECT', namm
e='', cmd='/bin/login', user='root'

 
Reply With Quote
 
 
 
 
Bill Marcum
Guest
Posts: n/a

 
      10-24-2007, 07:53 AM
On 2007-10-23, (E-Mail Removed) <(E-Mail Removed)> wrote:
> I modify /etc/inittab so that mgetty should work in single user
> mode. However it does not work in single user mode but work in
> runlevel 6. Why?
> s1:12345:respawn:/sbin/mgetty /dev/ttyS1 -s 115200 -r
>

In single user mode, the file /etc/nologin is created. Users cannot
normally log in while that file exists. You could modify the /etc/pam.d
files to remove references to pam_nologin, or you could use a different
runlevel (in Debian-based distros, runlevels 2-5 are identical ny
default).

 
Reply With Quote
 
wong_powah@yahoo.ca
Guest
Posts: n/a

 
      10-24-2007, 02:09 PM
On Oct 23, 5:00 pm, wong_po...@yahoo.ca wrote:
> I modify /etc/inittab so that mgetty should work in single user
> mode. However it does not work in single user mode but work in
> runlevel 6. Why?
> s1:12345:respawn:/sbin/mgetty /dev/ttyS1 -s 115200 -r
>
> /var/log/messages:
> Oct 23 16:35:35 xenontc mgetty[1679]: data dev=ttyS1, pid=1679,
> caller='none', cc
> onn='DIRECT', name='', cmd='/bin/login', user='root'
> Oct 23 16:46:19 xenontc init: Going single user
>
> /var/log/mgetty.log.ttyS1:
> 10/23 16:29:31 yS1 mgetty: interim release 1.1.33-Apr10
> 10/23 16:29:31 yS1 check for lockfiles
> 10/23 16:29:31 yS1 locking the line
> 10/23 16:29:31 yS1 WARNING: DCD line still active, check modem
> settings (AT&Dx)
> 10/23 16:29:31 yS1 lowering DTR to reset Modem
> 10/23 16:29:32 yS1 waiting...
> 10/23 16:35:35 ##### data dev=ttyS1, pid=1679, caller='none',
> conn='DIRECT', namm
> e='', cmd='/bin/login', user='root'


It should be 'S' instead of '1' when starting single user mode:
s1:S2345:respawn:/sbin/mgetty /dev/ttyS1 -s 115200 -r

 
Reply With Quote
 
 
 
Reply

Thread Tools
Display Modes

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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
multimode fiber optic vs single mode Christo Home Networking 5 12-02-2004 04:16 PM
Router for single-computer user Peter Broadband 2 01-26-2004 08:17 PM
proxy for a single user fabio vassalli Linux Networking 0 01-13-2004 08:32 AM
BT Single User?? Col Broadband 4 12-29-2003 10:22 PM
BT business 500 single user.. run NAT rat Broadband 5 11-21-2003 12:50 PM



1 2 3 4 5 6 7 8 9 10 11