LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Arch (https://www.linuxquestions.org/questions/arch-29/)
-   -   Text console password not recognized. (https://www.linuxquestions.org/questions/arch-29/text-console-password-not-recognized-4175629108/)

stf92 05-05-2018 06:54 PM

Text console password not recognized.
 
Hi: I run arch linux:
Code:

[root@revenge linux]# cat /proc/version
Linux version 4.16.3-1-zen (builduser@heftig-25092) (gcc version 7.3.1 20180406 (GCC)) #1 ZEN SMP PREEMPT Thu Apr 19 09:17:21 UTC 2018
[root@revenge linux]#

Zen installs arch to disk. The arch version it uses I really don't know. Anyway the problem is this: I am in the GUI, which starts automatically after boot. Now I press ctrl-alt-F2 (console 1 is taken by X). I see the login prompt. I type 'root', then the password, which is let' say p1 and it's rejected. However when I installed the OS p1 is the password I gave for root and, when I open a terminal in the GUI and issue 'su -' p1 is accepted. How can this be?

frankbell 05-05-2018 07:56 PM

Many distros don't allow a login directly from the console as root. They allow you to use su (or, in the *buntuverse, sudo) in a terminal window to assume root privileges, but not a direct log in.

It appears that Arch may be one of them. https://tutorialforlinux.com/2016/01...-command-line/

Try logging in as user, then using su as described in the article at the link and let us know what happens.

By the by, you can generally determine your release version with the following command; with the wild cards, it seems to work with most distros:

Code:

cat /etc/*release*

stf92 05-05-2018 08:28 PM

Code:

[root@revenge linux]# cat /etc/*release*
NAME="Arch Linux"
PRETTY_NAME="Arch Linux"
ID=arch
ID_LIKE=archlinux
ANSI_COLOR="0;36"
HOME_URL="https://www.archlinux.org/"
SUPPORT_URL="https://bbs.archlinux.org/"
BUG_REPORT_URL="https://bugs.archlinux.org/"
[root@revenge linux]#

I already had used this but, as you can see, it doesn't tell the arch linux version.

Using su - root's password was accepted. This in the text only console. So, in arch, I must first login as a regular user and then su to root! But why should I make in two steps what can be done in one?

frankbell 05-05-2018 09:07 PM

Quote:

Using su - root's password was accepted. This in the text only console. So, in arch, I must first login as a regular user and then su to root! But why should I make in two steps what can be done in one?
In two words, security theatre.

______________

I don't use Arch so I don't know about version thing. Could they have given up on version numbers upon becoming a rolling release?

WFV 05-13-2018 11:52 PM

Code:

uname -a
will also give you version in most Linux - the version number updates with every new Arch release.
not sure if there's a good reason to always be logged on as root unless the only thing you log on for is to compile?

ondoho 05-14-2018 01:46 AM

Quote:

Originally Posted by WFV (Post 5854406)
not sure if there's a good reason to always be logged on as root unless the only thing you log on for is to compile?

especially when compiling one should NOT be root.

fwiw, i can login as root just fine on my archlinux machines.

does OP even run archlinux, or some arch-based distro/installer?

this:
Quote:

Originally Posted by stf92 (Post 5851161)
Zen installs arch to disk. The arch version it uses I really don't know.

suggests it is not self-installed arch, therefore your problems are not arch-specific, but zen-specific (whatever that is).
also, everyone that uses arch should know that there are no "arch versions". it's a rolling distro.

stf92 05-26-2018 09:21 AM

I had originally an Arch iso image in a pendrive (usb stick), booted from the stick and that was all. I was incapable of installing to disk (hard disk). I had also tested with some distros such as Manjaro, which are Arch derived. Finally I was lucky enough to find this Zen installer who was the first time I could have a running operating system on disk on this machine (eMMC "hard disk").

WFV 05-27-2018 12:04 AM

Quote:

everyone that uses arch should know that there are no "arch versions". it's a rolling distro.
whether its referred to as a "version" or not is really pointless,
the Ops reference clearly states
Quote:

Linux version 4.16.3-1-zen
so is running zen built on 4.16.3-1 release.
linux-zen is in the main Arch repos

ondoho 05-27-2018 02:10 AM

^ what you are talking about is a linux kernel, not a distro version or which installer was used, both things that OP clearly specified - wrongly.
the kernel is not concerned with console passwords.
the distro and/or installer is.

thing is, if you install archlinux you KNOW which password you defined where.
hence my remark was relevant.

Rickkkk 05-30-2018 03:31 PM

Hey stf92,

I agree with ondoho's comments.
  • Arch has no versions - it is a rolling release

  • The uname -a command will give you the name and version number of the linux kernel you are using in Arch.

  • You can log in as root in Arch. As ondoho stated, you seemed to have installed Arch, or a derivative of Arch, using something other than the usual, completely manual way (the "Arch Way" to quote the verbiage ... ;) ...). Something in the installation process may have applied a constraint to logging in as root. You'll have to do some digging into whatever method you used to install.

Hope this helps !


All times are GMT -5. The time now is 10:11 AM.