Jump to content

Debian 11's Terminal isn't working as expected.

Go to solution Solved by LloydLynx,

Become root with

su -

Install a text editor called Nano

apt install nano

Run "visudo" using the Nano text editor

env EDITOR=nano visudo

Scroll down and change these lines to look like mine.

Screenshotat2023-12-1421-50-27.png.37a861233a480fda5ffe6f87e0a7a66b.png

Exit Nano with Ctrl+x, then choose yes to "Save modified buffer".

 

Now run usermod to add yourself to the sudo group.

usermod -aG sudo <your username>

If you don't know your username exactly, you can open a new terminal and run "whoami" to find out.

 

Now that you've completed all steps, logout and log back in.

Just so I said it, I am a complete newbie to Linux, and know next to nothing about it.

Anyways, here's the problem:

I installed debian 11, but, when I try to do anything in Terminal that requires me to enter my password, this happens:

20231214_211021.thumb.jpg.c428798f79017c73c9165df6ea5ab129.jpg

What am I doing wrong?

English is not my first language, so please excuse any confusion or misunderstandings on my end.

I like to edit my posts a lot.

 

F@H-Stats

The Folding rig:

CPU: Core i7 4790K

RAM: 16 8GB (2x4GB) DDR3-1600

GPU 1: RTX 2070 Super

GPU 2: GTX 1060 3GB

PSU: Gigabyte P450B EVGA 600BR EVGA 750BR

OS: Windows 11 Home

 

Linux let me down.

.- -- --- --. ..- ...         

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Hello!

Link to comment
Share on other sites

Link to post
Share on other sites

12 minutes ago, Average nerd said:

What am I doing wrong?

Simply put, you are not root and root did not authorize your to use sudo.

 

So either log in as root and do the update, or log in as root and add your normal users to sudoers, so you can use sudo.

Remember to either quote or @mention others, so they are notified of your reply

Link to comment
Share on other sites

Link to post
Share on other sites

26 minutes ago, thevictor390 said:

Are you a standard user instead of administrator?

https://vitux.com/how-to-make-a-user-an-administrator-in-debian/

 

I was. After some messing around I got that changed. But it still doesn't work. I get the same results.

18 minutes ago, Eigenvektor said:

log in as root and add your normal users to sudoers

How do I do that?

English is not my first language, so please excuse any confusion or misunderstandings on my end.

I like to edit my posts a lot.

 

F@H-Stats

The Folding rig:

CPU: Core i7 4790K

RAM: 16 8GB (2x4GB) DDR3-1600

GPU 1: RTX 2070 Super

GPU 2: GTX 1060 3GB

PSU: Gigabyte P450B EVGA 600BR EVGA 750BR

OS: Windows 11 Home

 

Linux let me down.

.- -- --- --. ..- ...         

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Hello!

Link to comment
Share on other sites

Link to post
Share on other sites

Become root with

su -

Install a text editor called Nano

apt install nano

Run "visudo" using the Nano text editor

env EDITOR=nano visudo

Scroll down and change these lines to look like mine.

Screenshotat2023-12-1421-50-27.png.37a861233a480fda5ffe6f87e0a7a66b.png

Exit Nano with Ctrl+x, then choose yes to "Save modified buffer".

 

Now run usermod to add yourself to the sudo group.

usermod -aG sudo <your username>

If you don't know your username exactly, you can open a new terminal and run "whoami" to find out.

 

Now that you've completed all steps, logout and log back in.

lumpy chunks

 

Expand to help Bunny reach world domination

(\__/)
(='.'=) This is Bunny. Copy Bunny into your signature to
(")_(") help him on his way to world domination.

 -Rakshit Jain

Link to comment
Share on other sites

Link to post
Share on other sites

1 hour ago, LloydLynx said:

Become root with

su -

Install a text editor called Nano

apt install nano

Run "visudo" using the Nano text editor

env EDITOR=nano visudo

Scroll down and change these lines to look like mine.

Screenshotat2023-12-1421-50-27.png.37a861233a480fda5ffe6f87e0a7a66b.png

Exit Nano with Ctrl+x, then choose yes to "Save modified buffer".

 

Now run usermod to add yourself to the sudo group.

usermod -aG sudo <your username>

If you don't know your username exactly, you can open a new terminal and run "whoami" to find out.

 

Now that you've completed all steps, logout and log back in.

I'll try that as soon as I'm back from school, thanks!

English is not my first language, so please excuse any confusion or misunderstandings on my end.

I like to edit my posts a lot.

 

F@H-Stats

The Folding rig:

CPU: Core i7 4790K

RAM: 16 8GB (2x4GB) DDR3-1600

GPU 1: RTX 2070 Super

GPU 2: GTX 1060 3GB

PSU: Gigabyte P450B EVGA 600BR EVGA 750BR

OS: Windows 11 Home

 

Linux let me down.

.- -- --- --. ..- ...         

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Hello!

Link to comment
Share on other sites

Link to post
Share on other sites

1 hour ago, LloydLynx said:
usermod -aG sudo <your username>

If you don't know your username exactly, you can open a new terminal and run "whoami" to find out.

Or combine these two commands into one like this:

usermod -aG sudo $(whoami)

 

$(some command) will run "some command", then use its output as part of the outer command. So in the above case it'll run "whoami", then insert its return value into the usermod command.

Remember to either quote or @mention others, so they are notified of your reply

Link to comment
Share on other sites

Link to post
Share on other sites

9 minutes ago, Eigenvektor said:

Or combine these two commands into one like this:

usermod -aG sudo $(whoami)

 

$(some command) will run "some command", then use its output as part of the outer command. So in the above case it'll run "whoami", then insert its return value into the usermod command.

It'll just output "root" in this case, since usermod is being executed by root in a root shell.

lumpy chunks

 

Expand to help Bunny reach world domination

(\__/)
(='.'=) This is Bunny. Copy Bunny into your signature to
(")_(") help him on his way to world domination.

 -Rakshit Jain

Link to comment
Share on other sites

Link to post
Share on other sites

1 minute ago, LloydLynx said:

It'll just output "root" in this case, since usermod is being executed by root in a root shell.

🤦‍♂️ Yeah, you're right of course… didn't think of that

Remember to either quote or @mention others, so they are notified of your reply

Link to comment
Share on other sites

Link to post
Share on other sites

12 hours ago, LloydLynx said:

Become root with

su -

Install a text editor called Nano

apt install nano

Run "visudo" using the Nano text editor

env EDITOR=nano visudo

Scroll down and change these lines to look like mine.

Screenshotat2023-12-1421-50-27.png.37a861233a480fda5ffe6f87e0a7a66b.png

Exit Nano with Ctrl+x, then choose yes to "Save modified buffer".

 

Now run usermod to add yourself to the sudo group.

usermod -aG sudo <your username>

If you don't know your username exactly, you can open a new terminal and run "whoami" to find out.

 

Now that you've completed all steps, logout and log back in.

This worked, thank you very much!

 

Annoyingly I will have to buy a new PSU for the computer before I can actually use it tough, because its current one decided to die during a restart. Now the computer will turn on, but a built-in surge protection of the mobo prevents it from actually booting up, claiming the PSU is "unstable". That's some perfect timing.

English is not my first language, so please excuse any confusion or misunderstandings on my end.

I like to edit my posts a lot.

 

F@H-Stats

The Folding rig:

CPU: Core i7 4790K

RAM: 16 8GB (2x4GB) DDR3-1600

GPU 1: RTX 2070 Super

GPU 2: GTX 1060 3GB

PSU: Gigabyte P450B EVGA 600BR EVGA 750BR

OS: Windows 11 Home

 

Linux let me down.

.- -- --- --. ..- ...         

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Hello!

Link to comment
Share on other sites

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×