OPNsense
  • Home
  • Help
  • Search
  • Login
  • Register

  • OPNsense Forum »
  • Archive »
  • 21.7 Legacy Series »
  • problem shell
« previous next »
  • Print
Pages: [1]

Author Topic: problem shell  (Read 1154 times)

Darkopnsense

  • Full Member
  • ***
  • Posts: 147
  • Karma: 6
    • View Profile
problem shell
« on: September 01, 2021, 11:40:22 am »
hi guy,

cannot work in console mode

an idea ?

_________________________________________________________________________________________
FreeBSD/amd64 (PareFeu-NG.debnet) (ttyu0)

login: Stephane
Password:
Last login: Fri Aug 27 21:13:03 on ttyu0
----------------------------------------------
|      Hello, this is OPNsense 21.7          |         @@@@@@@@@@@@@@@
|                                            |        @@@@         @@@@
| Website:      https://opnsense.org/        |         @@@\\\   ///@@@
| Handbook:     https://docs.opnsense.org/   |       ))))))))   ((((((((
| Forums:       https://forum.opnsense.org/  |         @@@///   \\\@@@
| Code:         https://github.com/opnsense  |        @@@@         @@@@
| Twitter:      https://twitter.com/opnsense |         @@@@@@@@@@@@@@@
----------------------------------------------
$ sudo su
Password:
Sorry, try again.
Password:
Sorry, try again.
Password:
sudo: 3 incorrect password attempts
$ su Stephane
$ sudo Stephane
Password:
Stephane is not in the sudoers file.  This incident will be reported.
$ sudo su
Password:
Sorry, try again.
Password:
Sorry, try again.
Password:
sudo: 3 incorrect password attempts
$ sudo Stephane
Password:
Stephane is not in the sudoers file.  This incident will be reported.
$ sudo su
Password:
Sorry, try again.
Password:
Sorry, try again.
Password:
sudo: 3 incorrect password attempts
$
_________________________________________________________________________________________

regards,
Logged
Depuis 2017
X7SPA-HF, Intel(R) ATOM(TM) D525, 4Go RAM, 120Go, 2 Lan 23.1.4_1
APU4c, 4Go RAM, 120Go, 4 Lan 23.1.4_1
APU3a, 2Go RAM, 60Go, 3 Lan 23.1.4_1
APU2C, 2Go RAM, 60Go, 3 Lan 23.1.4_1
BIOS A JOUR (v4.19.0.1).

Greelan

  • Hero Member
  • *****
  • Posts: 1006
  • Karma: 69
    • View Profile
problem shell
« Reply #1 on: September 01, 2021, 11:42:41 am »
Code: [Select]
sudo su -l
But looks like your user is not configured as a sudoer?
« Last Edit: September 01, 2021, 11:44:16 am by Greelan »
Logged

KHE

  • Full Member
  • ***
  • Posts: 211
  • Karma: 18
    • View Profile
Re: problem shell
« Reply #2 on: September 01, 2021, 12:53:06 pm »
Hi

Quote from: Darkopnsense on September 01, 2021, 11:40:22 am
hi guy,

cannot work in console mode

an idea ?

_________________________________________________________________________________________
FreeBSD/amd64 (PareFeu-NG.debnet) (ttyu0)

login: Stephane
Password:
Last login: Fri Aug 27 21:13:03 on ttyu0
----------------------------------------------
|      Hello, this is OPNsense 21.7          |         @@@@@@@@@@@@@@@
|                                            |        @@@@         @@@@
| Website:      https://opnsense.org/        |         @@@\\\   ///@@@
| Handbook:     https://docs.opnsense.org/   |       ))))))))   ((((((((
| Forums:       https://forum.opnsense.org/  |         @@@///   \\\@@@
| Code:         https://github.com/opnsense  |        @@@@         @@@@
| Twitter:      https://twitter.com/opnsense |         @@@@@@@@@@@@@@@
----------------------------------------------
$ sudo su
Password:
Sorry, try again.
Password:
Sorry, try again.
Password:
sudo: 3 incorrect password attempts

What password you are using? For sudo, you need use the password of the user Stephane.

KH
Logged

Darkopnsense

  • Full Member
  • ***
  • Posts: 147
  • Karma: 6
    • View Profile
Re: problem shell
« Reply #3 on: September 02, 2021, 11:16:49 am »
Hello everyone,

@Greelan,
Thanks for the answer and I have the same thoughts.

@KHE,
Thank you also for your relevant answer, but it is the rules of SUDO.

I am sure of my password.
After various attempts, I can only log in with the correct rights with the following instruction:

  $ su -
Password:
*** Firewall-NG.debnet: OPNsense 21.7.1 (amd64 / OpenSSL) ***
Enter an option: 8
root @ PareFeu-NG: ~ #

The malfunction appeared after reinitializing in console mode with option 4) Reset to factory defaults.

Switching to version 21.7 was tedious in many ways. But hey, you have to deal with it.

Regards,
Logged
Depuis 2017
X7SPA-HF, Intel(R) ATOM(TM) D525, 4Go RAM, 120Go, 2 Lan 23.1.4_1
APU4c, 4Go RAM, 120Go, 4 Lan 23.1.4_1
APU3a, 2Go RAM, 60Go, 3 Lan 23.1.4_1
APU2C, 2Go RAM, 60Go, 3 Lan 23.1.4_1
BIOS A JOUR (v4.19.0.1).

franco

  • Administrator
  • Hero Member
  • *****
  • Posts: 13945
  • Karma: 1208
    • View Profile
Re: problem shell
« Reply #4 on: September 02, 2021, 11:38:25 am »
As you haven't given much information about your authentication setup I suspect the wrong password message is correct for one reason or another. There isn't a known general issue with authentication and so this points to misconfiguration, possibly also because of the password reset which resets the authentication mode to allow for local password access if e.g. LDAP connectivity is buggy.


Cheers,
Franco
Logged

  • Print
Pages: [1]
« previous next »
  • OPNsense Forum »
  • Archive »
  • 21.7 Legacy Series »
  • problem shell
 

OPNsense is an OSS project © Deciso B.V. 2015 - 2023 All rights reserved
  • SMF 2.0.19 | SMF © 2021, Simple Machines
    Privacy Policy
    | XHTML | RSS | WAP2