• 6 months ago

Category

🤖
Tech
Transcript
00:00how is it going guys I have here a fresh installation of Debian and every time I
00:08try to run a command with sudo it says that the user is not in the sudoers
00:15file there is a file that I need to edit but before that there is a group that I
00:23need to add the user to and every time I try to do such thing I kind of forget
00:28the command so this is a series where I run commands no matter how simple or
00:35complicated they are I mostly forget forgot how to do them I may not be adding
00:45so many videos to this series since I may be distracted by other stuff or I may
00:50also forget to do it so I need to add the user in my case vbox user to the group
00:57sudo in Debian and derivatives case and the group wheel and the other
01:04distributions of Linux since we cannot run the commands with sudo here we
01:12switch to root like this the password is the same as the user itself and we run
01:18the command user mod dash lowercase a uppercase G the group name and the case
01:26of Debian is sudo and decay in the case of the other distributions where you want
01:33to resolve the issue of not having the root privileges for your user it's wheel and
01:40then the user name in my case it's vbox user enter all right this is the first
01:48command in case it said to you command not found remember to replace sudo with
01:55your group name and vbox user with your user that you would like to add to the
02:01group in case you got this error you run another command which does almost the same
02:08thing gpasswd dash a and in this case in the case of this command we type the
02:21user name first in my case it's vbox user and then the group name in case you want
02:27to resolve the issue of not being able to run commands with the root privileges if it
02:33is debian and derivatives it's sudo the group if it is any other distribution it's
02:39will correct me if I'm wrong enter all right so it says add in user vbox to
02:45group sudo we still have another thing to do here which is etc sudoers we edit that
03:01file scroll down all right we need to make sure that root is uncommented and then we may need to
03:14log in and log out in order to run the commands with the root privileges I'm signing out please
03:21don't forget to subscribe like share and comment and peace

Recommended