"Password for Homeassistant user" We trust you have received the usual lecture from the local system administrator

Hello,

I have a zero pi w and a sensor bme680. The installation was manually done on raspian stretch system. The configuration.yaml file could be edited with user homeassistant and the homeasisstant output worked.

homeassistant @ raspberrypi: ~ / .homeassistant $

For commands lie
sudo systemctl restart nome-assistant.service

sudo nano secrets.yaml_
./certbot-auto certonly --standalone --standalone-supported-Challenges http-01 - email (YOUR EMAIL HERE) -d (YOUR NEWDOMAIN NAME HERE)

**The following error message always comes up:**

We trust you have received the usual lecture from the local system administrator. It usually boils down to these three things: # 1) Respect the privacy of others. # 2) Think before you type. # 3) With great power comes great responsibility.

Are there any missing settings in sudoers file?

My file as pi user.

# This file MUST be edited with the ‘visudo’ command as root.
#
# Please consider adding local content to /etc/sudoers.d/ instead of
# directly modifying this file.
#
# See the man page for details on how to write a sudoers file.
#
Defaults env_reset
Defaults mail_badpass
Defaults secure_path = “/ usr / local / sbin: / usr / local / bin: / usr / sbin: / usr / bin: / sbin: / bin”

# Host alias specification

# User alias specification

# Cmnd alias specification

# User privilege specification
root ALL = (ALL: ALL) ALL

# Allow members of group sudo to execute any command
% sudo ALL = (ALL: ALL) ALL

# Sudoers (5) for more information on “#include” directives:

#includedir /etc/sudoers.d

Thanks

Patrick

Switch to pi user to use sudo. It is by design.

Thank you, is there a detailed description? I’m new to this topic. :slight_smile:

The common tasks on hassbian page should cover most of what you need
https://www.home-assistant.io/docs/installation/hassbian/common-tasks/#login-to-the-raspberry-pi

1 Like

Unfortunately, I can not lead the command as pi.

pi@raspberrypi:~ $
sudo systemctl stop [email protected]
Failed to stop [email protected]: Unit [email protected] not loaded.
pi@raspberrypi:~ $

I have 2 user.

If you have named your service home-assistant.service, just replace the service with that name in the commands on the page I linked to, and you should be ok.

But you do need to use sudo as pi user. Attempting to do it as homeassistant user will not work as homeassistant user does not have sudo access.

2 Likes

Hello,

i used now this commands.

Thanks

1 Like

In case anyone is trying to install manually, and is stuck trying to log back into homeassistant user on the pi. You can delete any users passwd using sudo. See docs:
https://www.raspberrypi.org/documentation/linux/usage/users.md