Page 1 of 1

root privilege

Posted: Friday 12 February 2016 9:08
by ricorico94
Hi,

I have a question related to user Root : where can I find the login/password for login as root ? I installed Domoticz on a Pi2 using the default SD image, and I can't find the password.
I searched in the forum, but I only found a message telling "you should look at wiki".. but when looking in wiki, I only found one page about installation in another context, with password 1234.. but it doesn't work with root/1234.
I could read there are ways to make pi user behave like root (with sudo, but also in a "hardcoded" way), but what I'd like is to make sure I can log as root if I need to.

br,
Ricorico94

Re: root privilege

Posted: Friday 12 February 2016 9:13
by Sneezydevil
You could just reset the password

Login with your pi user, and do:

Code: Select all

sudo su
passwd
I did not test this on a Pi but on a similar system, and I'm not saying I recommend doing this, I prefer using sudo.

Re: root privilege

Posted: Friday 12 February 2016 9:28
by gizmocuz
That latest line you do not need (passwd)
you should always use sudo, or issue

sudo su

no need to change the root password, or login as root