Add non root user

Hi there,

I setup DietPi last night with LAMP stack and openVPN on a Raspberry Pi. So quick and easy. Thanks very much.

However I think a nice option would be to add a non-root user so the distro can be used without logging in as root for day to day stuff.

Cheers,
Keith.

Hi Keith

if you need it, you can do this really simple:

root@DietPi:~#  adduser Keith

root@DietPi:~#  adduser Keith sudo

Thanks, yes it’s not hard, I would have had to google it, its not something I do a lot. Thought it would be nice to have it as an option.

Cheers,
Keith.

As the program is called dietPI - it would make sense if the default non-root user (with sudo access) were PI - that would help when using scripts meant for the Pi.

I also had to do this to get sudo on my 'user

chown root:root /usr/bin/sudo && chmod 4755 /usr/bin/sudo’