1- PiHole time is not in sync with DiePi. when i run “date” the DietPi has the correct date but not on the PiHole. I was told to use:
timedatectl list-timezones
to set the time but timedatectl does not seem to be on DietPi. Any help?
2- I wanted to create a new user with root privlidges so I used the command " useradd -ou 0 -g 0 (username) " then I used "passwd (username) " to se the password.
when I do “~echo (username)” it shoes its in the /home directory. When I go to the home directory and do “ls” there is only DietPi.
I tried to ssh in with that username, I enter the set password, I get "Connection to (DietPi) closed. Any idea whats going on?
timedatectl should be available as part of systemd package. However it require dbus package to run. Check if dbus was already installed
dpkg -l dbus
If needed just install via apt
apt update
apt install dbus
Anyway timedatectl list-timezones doesn’t do anything except listing down all available time zone. If you need to change time zone, use dietpi-config pls. There you can set required time zone. Checking actual time zone can be done as well by running
ls -l /etc/localtime
Anyway there are not much reason why a single application is running on a different time than system. But as trendy already ask, what is the time difference? Full hours? or minutes?
By default DietPi is not doing anything on PiHole configuration to have the time deviating from system clock.
Regarding the user. As stated by the other, create a new user and assign them to sudoers. Following guide is for Ubuntu, but it’s working same on Debian