Re: I'm somehow not in the sudoers file.
Posted: 2023-03-12 06:51
Thank you ok will try chromium. thank you. i will start new thread or search for tightvnc. thanks
The Debian Project User and Community Forums
https://plethora.debian.net/
Code: Select all
apt-get update
Code: Select all
su
Code: Select all
su -
That video shows editing the sudoers file which is the hard way to do it. sudoers file already contains permissions for members of sudo group to run as sudo so all you need to do is add the user to sudo group:eor2004 wrote: ↑2023-10-14 18:57 @ OP: Hi, try this on this video, mabe it'll help you like it helped me , cheers!
https://youtu.be/WBgkuGQkwzk?si=4IOpAmo-7BiUNxBd
Code: Select all
su -
adduser <username> sudo
I was using debian 10, the hard disk that had Debian 10 died like four months ago, so I installed Debian 11 on the new one and had this issue of not being able to add myself to sudoers file or group, So, maybe that's why it didn't worked for me back then when I tried adding myself to sudoers group, I needed to use "su -" with the "-" hypen, because using "su" without the "-" hypen, didn't worked for me, but this has only happened to me so far on Debian 11, because in the past I was able to add myself to sudoers group using only "su" without the hypen since version 7, maybe something changed on this version of Debian 11 and I didn't RTFM or missed something on the release notes?sunrat wrote: ↑2023-10-15 00:19That video shows editing the sudoers file which is the hard way to do it. sudoers file already contains permissions for members of sudo group to run as sudo so all you need to do is add the user to sudo group:eor2004 wrote: ↑2023-10-14 18:57 @ OP: Hi, try this on this video, mabe it'll help you like it helped me , cheers!
https://youtu.be/WBgkuGQkwzk?si=4IOpAmo-7BiUNxBdof course, replace <username> with your actual username. You need to log out and back in to effect it.Code: Select all
su - adduser <username> sudo
For future reference, live-Calamares gives the primary user sudo privileges and does not enable the root account. The latter can be done easily post-installation, of course, with sudo passwd root.
To gain Root access use the following command andarochester wrote: ↑2022-07-21 16:49 If you give a Root password and a User password the User is not on the sudo file.
If you give no Root password then a User password the user is in the sudo file.
To correct this and grant sudo access to the default user:
AS ROOT
Code: Select all
su -
No, you do have to reboot - logout/login does not cure the problem - but rebooting takes care of it.arochester wrote: ↑2022-07-21 16:49 apt-get update
apt-get install sudo
usermod -a -G sudo <username>
Now reboot the system.
(It's just enough to logout/login and not necessary to reboot the system)