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.
Add non root user
Re: Add non root user
Hi Keith
if you need it, you can do this really simple:
if you need it, you can do this really simple:
Code: Select all
root@DietPi:~# adduser Keith
root@DietPi:~# adduser Keith sudo
-
- Posts: 41
- Joined: Mon May 23, 2016 2:55 pm
Re: Add non root user
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.k-plan wrote:Hi Keith
if you need it, you can do this really simple:
Code: Select all
root@DietPi:~# adduser Keith root@DietPi:~# adduser Keith sudo
Cheers,
Keith.
Re: Add non root user
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.
-
- Posts: 3
- Joined: Wed Mar 08, 2017 1:18 pm
Re: Add non root user
I also had to do this to get sudo on my 'user
chown root:root /usr/bin/sudo && chmod 4755 /usr/bin/sudo'
chown root:root /usr/bin/sudo && chmod 4755 /usr/bin/sudo'