You are not logged in.

#1 2009-08-10 17:00:00

figue
Member
Registered: 2007-12-16
Posts: 59

[SOLVED] Can't login as root in tty

Hi,

I can't login as root in tty console, but with my user works fine. I update my /etc/inittab to transition of vc/* and tty. Here is my file:

/etc/inittab

#
# /etc/inittab
#

#  Runlevels:
#    0    Halt
#    1(S)       Single-user
#    2    Not used
#    3    Multi-user
#    4    Not used
#    5    X11
#    6    Reboot

## Only one of the following two lines can be uncommented!
# Boot to console
#id:3:initdefault:
# Boot to X11
id:5:initdefault:

rc::sysinit:/etc/rc.sysinit
rs:S1:wait:/etc/rc.single
rm:2345:wait:/etc/rc.multi
rh:06:wait:/etc/rc.shutdown
su:S:wait:/sbin/sulogin -p

# -8 options fixes umlauts problem on login
#c1:2345:respawn:/sbin/agetty -8 38400 vc/1 linux
#c2:2345:respawn:/sbin/agetty -8 38400 vc/2 linux
#c3:2345:respawn:/sbin/agetty -8 38400 vc/3 linux
#c4:2345:respawn:/sbin/agetty -8 38400 vc/4 linux
#c5:2345:respawn:/sbin/agetty -8 38400 vc/5 linux
#c6:2345:respawn:/sbin/agetty -8 38400 vc/6 linux

# -8 options fixes umlauts problem on login
#c1:2345:respawn:/sbin/agetty -8 38400 tty1 linux
c2:2345:respawn:/sbin/agetty -8 38400 tty2 linux
c3:2345:respawn:/sbin/agetty -8 38400 tty3 linux
c4:2345:respawn:/sbin/agetty -8 38400 tty4 linux
c5:2345:respawn:/sbin/agetty -8 38400 tty5 linux
c6:2345:respawn:/sbin/agetty -8 38400 tty6 linux

ca::ctrlaltdel:/sbin/shutdown -t3 -r now

# Example lines for starting a login manager
#x:5:respawn:/usr/bin/xdm -nodaemon
x:5:respawn:/usr/sbin/gdm -nodaemon
#x:5:respawn:/usr/bin/kdm -nodaemon
#x:5:respawn:/usr/bin/slim >& /dev/null

# End of file

Last edited by figue (2009-08-10 18:43:32)

Offline

#2 2009-08-10 17:12:49

jdiez
Member
Registered: 2009-08-03
Posts: 40

Re: [SOLVED] Can't login as root in tty

[deleted]

Last edited by jdiez (2013-12-01 22:09:19)

Offline

#3 2009-08-10 17:16:37

OneEyedPimp
Member
Registered: 2008-05-02
Posts: 103

Re: [SOLVED] Can't login as root in tty

Root on my system can, but I dont use tty. ;-)

It is probably a policy set in the GDM. I dont have this problem but check out this page:

http://rivviepop.wordpress.com/2008/11/ … fedora-10/

it is for Fedora, so beware some of the commands/directories may be slightly different.

Last edited by OneEyedPimp (2009-08-10 17:17:12)

Offline

#4 2009-08-10 17:25:18

Maxa
Member
Registered: 2008-11-30
Posts: 31

Re: [SOLVED] Can't login as root in tty

Does /etc/securetty have ttys? And if you haven't rebooted, 'init q' to read inittab again, then restart agettys. 'Su' should work, even if you can't login

Offline

#5 2009-08-10 17:34:27

figue
Member
Registered: 2007-12-16
Posts: 59

Re: [SOLVED] Can't login as root in tty

Thank you all,

I don't want to login into X server.
I rebooted my computer many times.
With su command I can login normally from my user.

The problem is caused because I enter in init 5 mode? :S

/etc/securetty

#
# /etc/securetty
#

console
tty1
tty2
tty3
tty4
tty5
tty6

# End of file

Offline

#6 2009-08-10 17:53:43

pizmooz
Member
Registered: 2009-01-11
Posts: 21

Re: [SOLVED] Can't login as root in tty

I am experiencing this too and haven't been able to figure it out.  Again, it appears to only happen when logging in through the vc tty devices. It is possible to use 'su' to elevate to root, also I am able to login as root through ssh.

Offline

#7 2009-08-10 18:17:50

figue
Member
Registered: 2007-12-16
Posts: 59

Re: [SOLVED] Can't login as root in tty

I think found the problem:

[20:16][figue@archlinux ~]$ ls -l /dev/tty*                                                                                                                                                                                                                                          
crw-rw-rw- 1 root tty  5, 0 ago 10 18:42 /dev/tty                                                                                                                                                                                                                                    
lrwxrwxrwx 1 root root    4 ago 10 18:42 /dev/tty0 -> vc/0                                                                                                                                                                                                                           
lrwxrwxrwx 1 root root    4 ago 10 18:42 /dev/tty1 -> vc/1                                                                                                                                                                                                                           
lrwxrwxrwx 1 root root    5 ago 10 18:42 /dev/tty10 -> vc/10                                                                                                                                                                                                                         
lrwxrwxrwx 1 root root    5 ago 10 18:42 /dev/tty11 -> vc/11
lrwxrwxrwx 1 root root    5 ago 10 18:42 /dev/tty12 -> vc/12
lrwxrwxrwx 1 root root    5 ago 10 18:42 /dev/tty13 -> vc/13
lrwxrwxrwx 1 root root    5 ago 10 18:42 /dev/tty14 -> vc/14
lrwxrwxrwx 1 root root    5 ago 10 18:42 /dev/tty15 -> vc/15
lrwxrwxrwx 1 root root    5 ago 10 18:42 /dev/tty16 -> vc/16
lrwxrwxrwx 1 root root    5 ago 10 18:42 /dev/tty17 -> vc/17
lrwxrwxrwx 1 root root    5 ago 10 18:42 /dev/tty18 -> vc/18
lrwxrwxrwx 1 root root    5 ago 10 18:42 /dev/tty19 -> vc/19
lrwxrwxrwx 1 root root    4 ago 10 18:42 /dev/tty2 -> vc/2
[ ... ]

Offline

#8 2009-08-10 18:43:14

figue
Member
Registered: 2007-12-16
Posts: 59

Re: [SOLVED] Can't login as root in tty

I found the udev rule that creates the links. I moved the file to my backup directory and after restart I can login as root in the TTYs...

The file is:

udev.rules

# Udev rules for Archlinux by Tobias Powalowski <tpowa@archlinux.org>
#                                                                    
# This ruleset should provide a DevFS-compatible device tree.        
#                                                                    
# There are a number of modifiers that are allowed to be used in some
# of the different fields. They provide the following subsitutions:

I hope this is an old file from my old Arch installation wink

Offline

#9 2009-08-28 23:27:27

GregW
Member
From: 53°24'N 2°35'W
Registered: 2008-02-09
Posts: 56

Re: [SOLVED] Can't login as root in tty

figue wrote:

I think found the problem:

[20:16][figue@archlinux ~]$ ls -l /dev/tty*                                                                                                                                                                                                                                          
crw-rw-rw- 1 root tty  5, 0 ago 10 18:42 /dev/tty                                                                                                                                                                                                                                    
lrwxrwxrwx 1 root root    4 ago 10 18:42 /dev/tty0 -> vc/0                                                                                                                                                                                                                           
lrwxrwxrwx 1 root root    4 ago 10 18:42 /dev/tty1 -> vc/1                                                                                                                                                                                                                           
lrwxrwxrwx 1 root root    5 ago 10 18:42 /dev/tty10 -> vc/10                                                                                                                                                                                                                         
lrwxrwxrwx 1 root root    5 ago 10 18:42 /dev/tty11 -> vc/11
lrwxrwxrwx 1 root root    5 ago 10 18:42 /dev/tty12 -> vc/12
lrwxrwxrwx 1 root root    5 ago 10 18:42 /dev/tty13 -> vc/13
lrwxrwxrwx 1 root root    5 ago 10 18:42 /dev/tty14 -> vc/14
lrwxrwxrwx 1 root root    5 ago 10 18:42 /dev/tty15 -> vc/15
lrwxrwxrwx 1 root root    5 ago 10 18:42 /dev/tty16 -> vc/16
lrwxrwxrwx 1 root root    5 ago 10 18:42 /dev/tty17 -> vc/17
lrwxrwxrwx 1 root root    5 ago 10 18:42 /dev/tty18 -> vc/18
lrwxrwxrwx 1 root root    5 ago 10 18:42 /dev/tty19 -> vc/19
lrwxrwxrwx 1 root root    4 ago 10 18:42 /dev/tty2 -> vc/2
[ ... ]

Can you enlighten me please? Mine looks the same and I can login either. What am I supposed to change?

Ah, right I think I'm now enlightened. Is it because the udev.rules file is created a depricated VC symlink? I moved the file below out of the \etc\udev\rules.d direcory, rebooted and root can login again.

cheers
GregW

Last edited by GregW (2009-08-28 23:36:15)

Offline

Board footer

Powered by FluxBB