I have re-flashed the image 3 times. for some reason the first day that I am using it to configure everything in the terminal the pi user has sudo privileges. but if I leave it overnight or for a few days come back to the terminal the Pi user has lost sudo privileges. everything I try to sudo I get
Sorry, user pi is not allowed to execute '/usr/bin/raspi-config' as root on octopi.