I switched from the arch Linux image to the latest Debian Jessie lite 2017-01-11 image and added a new user as root.
# adduser sampletext
Then I added on the sudoers-file a new line with:
sampletext ALL = (ALL) NOPASSWD: ALL
Then running runuser -l sampletext
I get
>>>/etc/sudoers: syntax error near line 28 <<<
sudo: parse error in /etc/sudoers near line 28
sudo: no valid sudoers sources found, quitting
sudo: unable to initialize policy plugin
The same error also displays when I try sudo on the pi account.
I noticed that the pi-user wasn't present when I first opened the sudoers-file even though I did sudo su
on it.
Is there a way to add another user with the same privileges as the pi-user?
sampletext ALL=NOPASSWD: ALL