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.
Asked
Active
Viewed 113 times
1 Answers
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
- 996
- 5
- 12
-
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