Register for your free account! | Forgot your password?

Go Back   elitepvpers > Off-Topics > Technical Support > Unix/Linux
You last visited: Today at 18:20

  • Please register to post and access all features, it's quick, easy and FREE!

Advertisement



Raspbian root user password

Discussion on Raspbian root user password within the Unix/Linux forum part of the Technical Support category.

Reply
 
Old   #1

 
Mr.Tr33's Avatar
 
elite*gold: 2778
Join Date: Feb 2012
Posts: 3,527
Received Thanks: 1,044
Raspbian root user password

Hello,

I have a new installed raspbian on my raspberry pi 2 and I'm trying to set the password for the root user. Also I never changed the password of the user root pi.

Currently I'm in the pi user over ssh and tried those few things:
Code:
sudo passwd
Code:
sudo passwd root
Code:
sudo -i
sudo passwd
Code:
sudo su
passwd
Code:
raspi-config
After each step I tried to connect over ssh and sftp and it never worked. It worked each time with the pi user and the normal password.

Can anyone help? I can't even use no password with the root user.

Sincerely
Mr.Tr33
Mr.Tr33 is offline  
Old 12/30/2015, 15:20   #2


 
Jeoni's Avatar
 
elite*gold: 966
Join Date: Apr 2010
Posts: 1,105
Received Thanks: 681
I guess that the root login is disabled in the OpenSSH config. That is an easy security measurement, but if you want to override it, edit (e.g. via nano) /etc/ssh/sshd_config. Search (with nano ctrl+w) for the line containing "PermitRootLogin". Whatever is written there, overwrite it with "PermitRootLogin yes". Now save the file, close the editor and restart the ssh service ("service ssh restart"). Now you should be able to login with the root user right away through SSH / SCP (can't tell it for SFTP, as I don't use it).
With best regards
Jeon

P.S.: I'm sorry, if some commands may not work on your system. As I don't have a raspbian machine, I gave you the instructions for a regular debian (jessie) system, but I guess there is not much of a difference.
Jeoni is offline  
Thanks
2 Users
Old 12/30/2015, 16:31   #3

 
Mr.Tr33's Avatar
 
elite*gold: 2778
Join Date: Feb 2012
Posts: 3,527
Received Thanks: 1,044
Wow thanks it worked

Code:
PermitRootLogin without-password
That was there before. But I guess it means that I don't need a password. But it didn't work without one.
Mr.Tr33 is offline  
Old 12/30/2015, 17:44   #4


 
Jeoni's Avatar
 
elite*gold: 966
Join Date: Apr 2010
Posts: 1,105
Received Thanks: 681
I'm glad it worked.
Just for your information:
Code:
PermitRootLogin without-password
does indeed mean that you don't need a password (even if one corresponds to the root user). But (even so it's not written there), it implies, that the client, that wants to login to the root account via SSH / SCP needs a valid certificate (or key) that was issued using the SSH servers private key. Of course, that needs to be preparated.
Logging in using the root user and don't need to provide a password or a valid certificate as default option would be a bit unsecure

With best regards
Jeoni
Jeoni is offline  
Thanks
2 Users
Reply


Similar Threads Similar Threads
ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: NO)
01/23/2015 - Metin2 Private Server - 6 Replies
Moin, habe ganz normal an meinem Server gebastelt und dann machte ich ein reboot und seitdem : ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: NO) HABE SCHON ALLE PROBIERT :( P.s benutze die Daroo Files
[HILFE]Access denied for user 'root'@'localhost' (using password: YES) [GEBE 1E*GOLD]
09/02/2014 - Metin2 Private Server - 2 Replies
http://i.epvpimg.com/smgEf.png SUFU benutzt nirgenswo ein ausführliches How2 Fix gefunden ._. Habs damals auch mal gefixxt aber hab 2jahre Metin2 Pause gehabt. Kann mir jemand eben helfen bitte?
[Help]1045 - Access denied for user 'root'@'localhost' (using password: YES)
05/19/2013 - EO PServer Hosting - 11 Replies
need help..How to fix this? http://i42.tinypic.com/11scn41.jpg
1045 - Access denied for user ´root´@´5.231.228.84´(using password : YES)
05/05/2013 - Metin2 Private Server - 14 Replies
Hallo Leute, habe da ein problem mit navicat wenn ich mich verbinden will kommt folgendes : 1045 - Access denied for user ´root´@´hostname´(using password : YES) Kann mir einer da weiter helfen ! Vergebe THX dafür =)
1045 . Access denied for user `root@localhost`(using password:NO)
03/02/2012 - Last Chaos Private Server - 6 Replies
Hello, I have a create a EP1 Server and if i want connect with navicat i become this message: "1045 . Access denied for user `root@localhost`(using password:NO) I could join me in before, but now i cant join and i idk why i am not more a User. Sry for my bad english and i hope anybody can help me



All times are GMT +2. The time now is 18:21.


Powered by vBulletin®
Copyright ©2000 - 2026, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2026 elitepvpers All Rights Reserved.