If the "You do not have permission to shut down and restart this computer" error message is still displayed, you may need to perform a hard shutdown (by holding down the power button for at least 10 seconds) and turn the computer back on. You will then be able to shut down and restart your computer as usual.