login directly as root


5 posts
by Yacine » Sun Jan 06, 2013 1:02 am
Hi all,

I was able to login as root. But since today not anymore.
I already changed my root password. I'm using Putty to login.

So why i can't login anymore directly as a root ?
http://www.shadowblog.fr/ <= Blog pour ceux qui débutent avec le Raspberry Pi
Posts: 26
Joined: Thu Dec 20, 2012 4:48 pm
Location: Paris
by malakai » Sun Jan 06, 2013 1:19 am
what error do you get?
http://www.raspians.com - always looking for content feel free to ask to have it posted. Or sign up and message me to become a contributor to the site. Raspians is not affiliated with the Raspberry Pi Foundation. (RPi's + You = Raspians)
User avatar
Posts: 1383
Joined: Sat Sep 15, 2012 10:35 am
by Yacine » Sun Jan 06, 2013 4:05 am
Incorrect password. But i'm sure i'm putting the right password. Althought il changed it several time from pi user with the command : sudo passwd root.
But when i'm trying to log as root user it says incorrect password.
http://www.shadowblog.fr/ <= Blog pour ceux qui débutent avec le Raspberry Pi
Posts: 26
Joined: Thu Dec 20, 2012 4:48 pm
Location: Paris
by malakai » Sun Jan 06, 2013 4:40 am
Change password type

su

This should prompt for the root password does that work if so its a setting with your ssh client

try ssh root@xxx.xxx.xxx.xxx where x is your ip this will prompt for root password not sure how your connecting over ssh
http://www.raspians.com - always looking for content feel free to ask to have it posted. Or sign up and message me to become a contributor to the site. Raspians is not affiliated with the Raspberry Pi Foundation. (RPi's + You = Raspians)
User avatar
Posts: 1383
Joined: Sat Sep 15, 2012 10:35 am
by rew » Sun Jan 06, 2013 3:38 pm
some systems have configured that you cannot login on non-secure terminals as "root". Usually networked-terminals are considered not secure, and so root login on them is denied. To prevent hackers from learning that they have the correct password, the error message shown is the same as for a bad password.

Check /var/log/auth.log for more info about why a login was denied.

Check for "permitrootlogin" in /etc/ssh/sshd_config (or whatever it's called).
Check out our raspberry pi addons: http://www.bitwizard.nl/catalog/
User avatar
Posts: 391
Joined: Fri Aug 26, 2011 3:25 pm