root privilege

On various Hardware and OS systems: pi / windows / routers / nas, etc

Moderator: leecollings

Post Reply
ricorico94
Posts: 94
Joined: Monday 26 October 2015 10:41
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

root privilege

Post 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
Sneezydevil
Posts: 111
Joined: Monday 18 January 2016 9:56
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: root privilege

Post 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.
User avatar
gizmocuz
Posts: 2552
Joined: Thursday 11 July 2013 18:59
Target OS: Raspberry Pi / ODroid
Domoticz version: beta
Location: Top of the world
Contact:

Re: root privilege

Post 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
Quality outlives Quantity!
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest