0

I was trying to create a public and private share directory using samba and I ended up accidently relocated my main user to smbshare group and can no longer use sudo commands or log in as root. I will not be able to get into recovery mode.

1 Answers1

1

You will need to boot into recovery mode, mount your filesystem and edit the /etc/sudoers file. You can also do similar from live media.

grifferz
  • 1,006
  • If you know root user's password, you can use su to log in as root then edit /etc/sudoers. – Emoji Feb 08 '21 at 02:14