Siduction Forum

Siduction Forum => Installation - Support => Topic started by: Seadevil on 2023/06/18, 18:15:53

Title: Recovery in bootup menu
Post by: Seadevil on 2023/06/18, 18:15:53
There is NO recovery option in the Advanced section when i boot up.  So i cannot get into
recovery mode.

am trying to fix "USERNAME is NOT in the sudoers file.

any prompt help here is appreciated

Thanks
Title: Re: Recovery in bootup menu
Post by: devil on 2023/06/18, 19:29:37
We do not set up sudo, as we believe it is way to heavy. We offer a real, root or doas as alternatives. If you want sudo, you have to set it up yourself. There is hundreds of instructions like this on the net: https://medium.com/platform-engineer/how-to-enable-sudo-on-a-user-account-on-debian-494d3c75ee21



Title: Re: Recovery in bootup menu
Post by: dibl on 2023/06/18, 19:34:22
.... So i cannot get into
recovery mode.

am trying to fix "USERNAME is NOT in the sudoers file.

@devil was faster than me, but I will post a reply since it was already written.


Yes, you CAN log in, as root, in tty1:


On the grub boot menu, which will highlight the top line, press "e", cursor down to the end of the line that begins

"linux  /boot/vmlinuz-xxxxxx"

At the end of that line, add a space and the number "1". Then press Ctrl-X, and you will boot to the root login.

To add your user to the sudo group, the command at the root prompt is:

"# usermod -aG sudo username"

After that, you can enter "systemctl reboot" and the system will reboot and you can then boot to the GUI and in the terminal you can use "sudo" commands as needed.
Title: Re: Recovery in bootup menu
Post by: Seadevil on 2023/06/19, 19:34:14
Hello  dibl

thank you for the instructions.  I am STILL having a problem.

sudo su
[sudo] password for dave:
dave is not in the sudoers file.
This incident has been reported to the administrator.
dave@primary:~$ \


I think it may be this line you provided. 


To add your user to the sudo group, the command at the root prompt is:

"# usermod -aG sudo username"


Do i need the quotes" ??   i tried with and without quotes.   i entered:   # usermod -aG sudo username

i entered  # usermod -aG sudo dave

neither one worked. 

what am i doing wrong ?

Title: Re: Recovery in bootup menu
Post by: edlin on 2023/06/19, 20:16:57
# is only the prompt for root.
Please use the following command as root:
Code: [Select]
usermod -aG sudo dave
edlin
Title: Re: Recovery in bootup menu
Post by: Seadevil on 2023/06/19, 20:50:34
ok  thanks for that info

duh,   didn't have enough coffee this am.   lol.

anyway, i solved my problem from another google search.

someone said  to  add: 

   If you keep typing sudo, the line
Code: [Select]
alias sudo="doas" in your .bashrc will help.

and it did !!   now i can type  sudo apt install  ....anything....and it works fine.

I have been typing sudo  for  20 years  and hard to change  ......old habits die hard.   lol.
Title: Re: Recovery in bootup menu
Post by: dibl on 2023/06/19, 23:04:00



Do i need the quotes" ??  i tried with and without quotes.  i entered:  # usermod -aG sudo username

i entered  # usermod -aG sudo dave


No quotes. You did it correctly. You would have to reboot for the change to be effective in your booted session -- that may have been your problem.

Also, where I wrote to put a "1" at the end of the kernel boot line in grub, that was wrong -- must have been a senior moment. You put a "3" there and then you boot into run level 3, which is the multi-user with networking run level.
Title: Re: Recovery in bootup menu
Post by: towo on 2023/06/19, 23:18:42
And for recovery enrties:


Code: [Select]
sed -i 's/GRUB_DISABLE_RECOVERY/#GRUB_DISABLE_RECOVERY/' /etc/default/grub
update-grub
All has to be done as root!