You are not logged in.

#1 2010-04-29 16:47:23

Insane-Boy
Member
Registered: 2006-02-27
Posts: 243

unable to login as a root

Well, i've been unable to login as a root, though i could use the root account through sudo.What I mean is that i just can't login as a root, although i my password is quite ok.I remember having touched a setting related to permission of root login, however, i have rather dim recollections about which option is related to my issue.Could somebody give me a helping hand?

Offline

#2 2010-04-29 16:49:32

qaov
Member
Registered: 2009-11-06
Posts: 12

Re: unable to login as a root

You have sudores setup. Maybe you should chroot from livecd and change password wink

Offline

#3 2010-04-29 19:24:53

jdarnold
Member
From: Medford MA USA
Registered: 2009-12-15
Posts: 485
Website

Re: unable to login as a root

Well, you use your password when you use sudo, but you need to know the root password if you are logging in as the root user, which is a (hopefully) completely different thing. Sure you know your root user password?

Offline

#4 2010-04-29 19:36:08

thestinger
Package Maintainer (PM)
From: Toronto, Canada
Registered: 2010-01-23
Posts: 478

Re: unable to login as a root

if you can use sudo, you can use passwd to unlock the root account with 'sudo passwd -u root' (assuming you locked it, ! symbol in /etc/shadow), or give it a new password 'sudo passwd root'

you can also "sudo su" to switch right to the root account (different that 'sudo -i' which is just a superuser session)

also maybe you did something with pam or the root login shell?

edit: 'sudo pwck' will verify integrity of /etc/passwd and /etc/shadow so that might also be helpful

Last edited by thestinger (2010-04-29 19:41:31)

Offline

#5 2010-06-04 14:20:20

sica07
Member
Registered: 2008-06-06
Posts: 29

Re: unable to login as a root

thestinger wrote:

if you can use sudo, you can use passwd to unlock the root account with 'sudo passwd -u root' (assuming you locked it, ! symbol in /etc/shadow), or give it a new password 'sudo passwd root'

Thanks thestinger! That solved my problems with the root password.

Offline

Board footer

Powered by FluxBB