krmanik / manjaro-fs-arm64

Manjaro rootfs with xfce4 and vncserver preinstalled. Just setup username, password and vnc password. Also one more edition with latest Anki preinstalled.
27 stars 4 forks source link

Can't do sudo #3

Open Furezuu opened 3 years ago

Furezuu commented 3 years ago

It gives this: sudo: /etc/sudo.conf is owned by uid 1000, should be 0 sudo: /usr/bin/sudo must be owned by uid 0 and have the setuid bit set Also, if it can help, after installation it messed up with groups and gave an output "chown: invalid group: 'username:password'"

krmanik commented 3 years ago

Do you installed it manually?

wiki/Faq ? #3 not able to run sudo commands

Change manjaro:manjaro with username and password

chown manjaro:manjaro /usr/bin/sudo && chmod 4755 /usr/bin/sudo
Furezuu commented 3 years ago

no, I didn't It still outputs that group is invalid, should I create it?

krmanik commented 3 years ago

You can do it.

Furezuu commented 3 years ago

it outputs this: groupadd: 'nikii:dt' is not a valid group name the problem might be with a colon

krmanik commented 3 years ago

If haven't tried, do this

chown nikii:dt /usr/bin/sudo && chmod 4755 /usr/bin/sudo
Furezuu commented 3 years ago

The problem is in creating the group, not chowning

krmanik commented 3 years ago

I have reinstalled it but didn't get the error.

jaimetrovoada commented 2 years ago

The problem is in creating the group, not chowning

instead of username: password try username: username. that's what worked for me