password refusal

Questions about Grub, UEFI,the liveCD and the installer
Forum rules
Before you post please read how to get help
Post Reply
longshanks68
Level 1
Level 1
Posts: 33
Joined: Mon Oct 08, 2018 3:05 am

password refusal

Post by longshanks68 »

I am trying to install a piece of software into my mint 19.2 setup but within terminal and for the first time it does not recognise my password, I have not changed anything and as a test I also tried to do the same thing on my other laptop which also runs mint 19.2 but as expected just the same problem.
My Q is why has this happened and is there an easy fix.
many thanks
User avatar
Termy
Level 6
Level 6
Posts: 1465
Joined: Mon Sep 04, 2017 8:49 pm
Location: UK
Contact:

Re: password refusal

Post by Termy »

Is it actually telling you that the password was incorrect? Sometimes people get confused when they don't see characters show on the terminal as they're typing the password, but this is normal (prior to modern Mint).

Definitely not using Num or Caps Lock by mistake? Are you using sudo(8)? IE: sudo some --command -h -e -re What command are you running?
I use Linux Mint 18.3 with Cinnamon in a VirtualBox VM for testing & sandboxing.

I'm LearnLinux (LL) on YouTube: https://www.youtube.com/c/learnlinux
I'm also terminalforlife (TFL) on GitHub: https://github.com/terminalforlife
longshanks68
Level 1
Level 1
Posts: 33
Joined: Mon Oct 08, 2018 3:05 am

Re: password refusal

Post by longshanks68 »

I was trying to install Brave browser following the install instructions within terminal when I enter my password it reports "command not found" this has never happened before.it is the same p/w I use to access software manager which works ok.
buteman
Level 4
Level 4
Posts: 255
Joined: Tue Nov 29, 2011 5:36 pm
Location: North Lincolnshire

Re: password refusal

Post by buteman »

What do you type in for it to say command not found?
It doesn't sound like a password problem but some sort of syntax error.
Please try it again then copy what you typed and all the error message into a reply here.
User avatar
Termy
Level 6
Level 6
Posts: 1465
Joined: Mon Sep 04, 2017 8:49 pm
Location: UK
Contact:

Re: password refusal

Post by Termy »

I second buteman. Sounds like you just mistyped something.
I use Linux Mint 18.3 with Cinnamon in a VirtualBox VM for testing & sandboxing.

I'm LearnLinux (LL) on YouTube: https://www.youtube.com/c/learnlinux
I'm also terminalforlife (TFL) on GitHub: https://github.com/terminalforlife
SimpleLinuxUser
Level 1
Level 1
Posts: 16
Joined: Tue Feb 23, 2021 9:32 pm

Re: password refusal

Post by SimpleLinuxUser »

If it's not a typing mistake you may have been hacked.
longshanks68
Level 1
Level 1
Posts: 33
Joined: Mon Oct 08, 2018 3:05 am

Re: password refusal

Post by longshanks68 »

Hi,all thanks for your replies, the command typed in is my p/w it then reports "command not found" and believe me I have not miss typed anything, Hacked how can I tell?
User avatar
Termy
Level 6
Level 6
Posts: 1465
Joined: Mon Sep 04, 2017 8:49 pm
Location: UK
Contact:

Re: password refusal

Post by Termy »

If you show us exactly what you typed (obviously without the password) then we can determine what went wrong, otherwise we run the risk of chasing our tales. If you're just opening up the terminal and randomly typing in your password, then certainly that won't work, because your password is not a command. Also show us the exact and full error message. Usually command not found errors include what wasn't found.
I use Linux Mint 18.3 with Cinnamon in a VirtualBox VM for testing & sandboxing.

I'm LearnLinux (LL) on YouTube: https://www.youtube.com/c/learnlinux
I'm also terminalforlife (TFL) on GitHub: https://github.com/terminalforlife
buteman
Level 4
Level 4
Posts: 255
Joined: Tue Nov 29, 2011 5:36 pm
Location: North Lincolnshire

Re: password refusal

Post by buteman »

longshanks68 wrote:
Wed Feb 24, 2021 4:47 pm
Hi,all thanks for your replies, the command typed in is my p/w it then reports "command not found" and believe me I have not miss typed anything, Hacked how can I tell?
Did you think you have to type in your password just because you started up a terminal?
You only type in your password when asked such as when you run some command using sudo. Supposing you did

Code: Select all

cat /etc/shadow
you would get

Code: Select all

cat /etc/shadow
cat: /etc/shadow: Permission denied
if you typed

Code: Select all

sudo cat /etc/shadow
[sudo] password for norman: 
Then when you typed in your password you would see what was in the file.
SO typing in your password is a response to being asked for it.
User avatar
AndyMH
Level 15
Level 15
Posts: 5939
Joined: Fri Mar 04, 2016 5:23 pm
Location: Wiltshire

Re: password refusal

Post by AndyMH »

SimpleLinuxUser wrote:
Tue Feb 23, 2021 9:39 pm
If it's not a typing mistake you may have been hacked.
Very, very unlikely. This is not windows.
Homebrew i5-8400+GTX1080 Cinnamon 19.0, 3 x Thinkpad T430 Cinnamon 19.0, i7-3632 , i5-3320, i5-3210, Thinkpad T60 19.0 Mate
linux-rox
Level 6
Level 6
Posts: 1012
Joined: Sun Jul 19, 2020 9:17 pm

Re: password refusal

Post by linux-rox »

longshanks68 wrote:
Sun Feb 21, 2021 8:33 am
... as a test I also tried to do the same thing on my other laptop which also runs mint 19.2 but as expected just the same problem.
Clever test. Pretty much clinches that there's an error in your commands.

Also, proves it's not a problem of having been hacked.
buteman
Level 4
Level 4
Posts: 255
Joined: Tue Nov 29, 2011 5:36 pm
Location: North Lincolnshire

Re: password refusal

Post by buteman »

Please try what you did again and then copy and paste that and the whole error message here so we can examine it. We cannot help you otherwise.
If you have already succeeded in getting it sorted out let us know.
I don't think anyone is going to do any more until you do.
User avatar
Termy
Level 6
Level 6
Posts: 1465
Joined: Mon Sep 04, 2017 8:49 pm
Location: UK
Contact:

Re: password refusal

Post by Termy »

What buteman said. If you mistyped, which is very likely the case, there's zero shame in it; it happens to beginner and expert alike. Just recently, I came across someone who typed gzip: instead of gzip, thus was told gzip: was of course not found. Commonly, people will type Sudo instead of sudo, but since the filename for the executable is in all lowercase, Sudo therefore doesn't exist.
I use Linux Mint 18.3 with Cinnamon in a VirtualBox VM for testing & sandboxing.

I'm LearnLinux (LL) on YouTube: https://www.youtube.com/c/learnlinux
I'm also terminalforlife (TFL) on GitHub: https://github.com/terminalforlife
User avatar
Flemur
Level 19
Level 19
Posts: 9198
Joined: Mon Aug 20, 2012 9:41 pm
Location: Potemkin Village

Re: password refusal

Post by Flemur »

longshanks68 wrote:
Wed Feb 24, 2021 4:47 pm
Hi,all thanks for your replies, the command typed in is my p/w it then reports "command not found" and believe me I have not miss typed anything, Hacked how can I tell?
You weren't hacked.

Here's my guess:

If you enter sudo once, then enter the password, you don't have to enter the password again for a certain amount of time (a few minutes); if within that time you do enter sudo and enter the password again, out of instinct or habit, it'll say that your password is a "command not found".
Please edit your original post title to include [SOLVED] if/when it is solved!
Your data and OS are backed up....right?
User avatar
Termy
Level 6
Level 6
Posts: 1465
Joined: Mon Sep 04, 2017 8:49 pm
Location: UK
Contact:

Re: password refusal

Post by Termy »

And if you did try to run your password as a command, it may well be saved in history, so you'll want to remove that ASAP. It'll be in '~/.bash_history', if at all. (assuming you're using BASH)
I use Linux Mint 18.3 with Cinnamon in a VirtualBox VM for testing & sandboxing.

I'm LearnLinux (LL) on YouTube: https://www.youtube.com/c/learnlinux
I'm also terminalforlife (TFL) on GitHub: https://github.com/terminalforlife
Post Reply

Return to “Installation & Boot”