1

I've successfully installed Server 19.10, then got a desktop (Lubuntu) going on a single Raspberry Pi 4 (4gb). I went with the 32-bit version, having heard the 64-bit is not very stable. (Please contradict me if not so.) Some weirdness came with the desktop (e.g., doesn't show network icon in panel), but basically functional. My problem is the install created a passworded account named ubuntu, but this appears to be root. I didn't notice that when doing sudo apt-get install, I wasn't being prompted for the password, i.e., this must be root, correct? I blithely installed many packages, moved over files before I noticed this, BTW. So, I assume I really should create a "normal" Ubuntu account with sudo privileges? Then I should move everything in this original /home/ubuntu user/group-wise over to the normal account? The main reason I'm worried about this is I am a teacher and I want to set up many RPi4's, and they can't all be user ubuntu with automatic root privileges. What can I do at this point?

Update

My /etc/sudoers has this

Defaults    env_reset
Defaults    mail_badpass
Defaults    secure_path="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/snap/bin"

# Host alias specification

# User alias specification

# Cmnd alias specification

# User privilege specification
root    ALL=(ALL:ALL) ALL

# Members of the admin group may gain root privileges
%admin ALL=(ALL) ALL

# Allow members of group sudo to execute any command
%sudo   ALL=(ALL:ALL) ALL

# See sudoers(5) for more information on "#include" directives:

#includedir /etc/sudoers.d

Inside the /etc/sudoers.d/ is a file 90-cloud-init-users which has the line

ubuntu ALL=(ALL) NOPASSWD:ALL

which no doubt is why I'm getting no sudo prompt. BTW, what is 90-cloud...?

I guess I need some coaching on how to create a new account user/passwd with good sudo privilege, and then how to move /home/ubuntu stuff over to this new account.

  • The user ubuntu is not root but the user ubuntu. But it seems that it hast the permission to become root without password. What's he content of /etc/sudoers and /etc/sudoers.d/? – jake Jan 5 at 23:58
  • I went with the 32-bit version, having heard the 64-bit is not very stable. Deal. – M. Rostami Jan 6 at 0:36
  • search for passwordless sudo - you'll find a lot of information – Jaromanda X Jan 6 at 1:09
  • @jake See my update. – 147pm Jan 6 at 1:17
  • So you could just delete that file. How to create new users is also not hard to find on the internet. – jake Jan 6 at 2:03

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.