Login incorrect linux arch

Arch Linux

I had recently upgraded my machine. After the upgrade, my machine started telling me that I couldn’t log in because it hwdn’t finished booting up, so I followed one of the solutions in this post:

After I got to the part where you delete /etc/pam.d stuff really started messing up. (Hindsight is 20/20, I should’ve renamed the directory, but I done goofed it up now). I did re-install pam and pamabase, which re-created the directory, but now when I attempt to log in it doesn’t bother with giving me the password prompt, it just tells me «Login incorrect» five times and goes back to the login prompt.

Not actually knowing what I’m doing (as if that isn’t clear already), I tried booting into the live environment, mounting my install partition, and attempting to use passwd to just re-make the passwords. Now I get

«Authentication token manipulation error»
«password unchanged»

Is there any way to un-mess-up the login settings on my computer?

Last edited by awshidahak (2020-03-22 00:00:28)

#2 2020-03-21 23:51:35

Re: [SOLVED] «Login incorrect» before entering password

Hi awshidahak, for what it’s worth, my take as a fellow noob:

* «I had recently upgraded my machine» makes it sound as though you hadn’t run ‘pacman -Syu’ for quite a while. I believe the Arch approach is to upgrade frequently, if only to reduce the workload each time of assessing the impact of the changes before they are applied and assessing the results after they have been applied.

* It may be too late now, but did the upgrade report that any new PAM (or other) files had been installed as ‘.pacnew’ versions? It could be that you needed to merge the changes in such files into the versions you already had, if you had previously customised the latter.

* The previous post you refer to is over 7 years old, it referenced a different machine architecture, and the action was reported not to have fixed the problem beyond a two-week period. Before following this kind of post again, I’d strongly recommend you get a sanity check of your proposed action from an expert (not me!).

* Finally, a constructive suggestion: when you booted into the live environment, did you chroot to your installed environment? You don’t mention that you did. If you didn’t, what you tried could not have worked.

Читайте также:  Поменять операционную систему линукс

#3 2020-03-21 23:59:21

Re: [SOLVED] «Login incorrect» before entering password

Thank you to Namarrgon for all the help on IRC.

@ghepardo: yes, it’s been a stupidly long while. the computer was out of commission for a while. i don’t know anything about pacnew files.

also, yes, I chrooted. I apparently forgot to mention that.

For anyone else who did the same stupids I did and have run across this post:

After using the live environment and chrooting in to the computer:

reinstall all the owners listed.

Источник

Arch Linux

After a fresh installation and configuration as root, I got an error message «Incorrect login» when I tried to logon (with the correct password) as a user and root. The same error on the second reinstallation. I installed Arch many times already and no problem. (The only change is Arch with Fedora and Windows as triple-boot. But dual-boot with Fedora was ok.) Do you know where the fault may be?

Last edited by akisha (2013-08-27 09:14:57)

#2 2013-08-26 16:09:20

Re: Incorrect login [Solved]

If you use zsh as your shell, check if you haven’t run into https://bugs.archlinux.org/task/36305

#3 2013-08-26 19:21:05

Re: Incorrect login [Solved]

zsh uses installation, if I’m not mistaken. Then is standard bash? After installation from CD, I did not install zsh or anything, only created user and reboot. With the useradd I added user to /bin/bash as in the tutorial. Without the ability to login as root is only way to change something unusual during a new installation.

#4 2013-08-26 22:02:06

Re: Incorrect login [Solved]

Hi, fastest way to solve this, chroot into your fresh installation and change the passwd for root and user, done.
But, could you show the command you used to create the user?

#5 2013-08-26 22:25:59

Re: Incorrect login [Solved]

useradd -m -g users -G audio,video,optical,storage,power,games,wheel -s /bin/bash akisha
I can chroot from Arch installation CD, right? I’m not sure how. Via commands: arch-chroot /mnt and passwd or /usr/bin/bash?

#6 2013-08-26 22:37:55

Re: Incorrect login [Solved]

Your command looks okay.
Yes, you can use your CD for that.
Don’t worry, there is a wiki page, explaining how it works, it’s really quite simple, if I may say so.
Once chrooted, do your thing , again follow the wiki if you leave chroot, and you should be done after that.

#7 2013-08-26 23:04:17

Re: Incorrect login [Solved]

useradd -m -g users -G audio,video,optical,storage,power,games,wheel -s /bin/bash akisha

You almost certainly do not want to use that command if you are using systemd. Membership of many of those groups can case problems. You probably want

useradd -m -g users -G wheel -s /bin/bash akisha

I’m not certain about games, however.

arch-chroot /mnt /usr/bin/bash passwd passwd akisha

Last edited by cfr (2013-08-26 23:06:44)

Arch Linux | x86_64 | GPT | EFI boot | refind | stub loader | systemd | LVM2 on LUKS
Lenovo x270 | Intel(R) Core(TM) i5-7200U CPU @ 2.50GHz | Intel Wireless 8265/8275 | US keyboard w/ Euro | 512G NVMe INTEL SSDPEKKF512G7L

Читайте также:  Updating bios on linux

#8 2013-08-27 08:38:03

Re: Incorrect login [Solved]

Hi, what is wrong with the useradd command, I always use something like that, when creating a user.
I hope you mean to not use it in chroot, because I didn’t say that, I wanted to know what command was used, to create the user.

The way to change a passwd in chroot is like cfr said, but I would still advice to take a look at said wiki.

#9 2013-08-27 09:14:36

Re: Incorrect login [Solved]

Using the installation CD and ArchWiki I successfully set a password in chroot and login is ok. Thank you very much for help!

#10 2013-08-27 12:47:26

Re: Incorrect login [Solved]

useradd -m -g users -G audio,video,optical,storage,power,games,wheel -s /bin/bash akisha

You almost certainly do not want to use that command if you are using systemd. Membership of many of those groups can case problems.

Hi, what is wrong with the useradd command, I always use something like that, when creating a user.

As cfr said, being a member of many of those groups may cause problems.

Источник

Arch Linux

more info needed , did you just install arch? , you should have set your root password there.

Solution
You could chroot into your install.

#3 2009-08-13 12:28:33

Re: root login incorrect

I have just installed xorg and then installed the guest additions of virtual box and then restarted

I didnt kept any password for root till now

Previously when i login: root it used to login and go to command prompt

I am feeling that again I have to reinstall, which I dont want.

can you give some more instructions

#4 2009-08-13 12:31:46

Re: root login incorrect

If you didn’t set a root password can’t you login with the password field left empty?

All men have stood for freedom.
For freedom is the man that will turn the world upside down.
Gerrard Winstanley.

#5 2009-08-13 12:34:12

Re: root login incorrect

If you didn’t set a root password can’t you login with the password field left empty?

I dosent ask for any password
after login: root
it gives login incorrect.

It doesnt ask for password

As I have mentioned I didnt create any login till now

But if I use login: xyz
then it asks for a password and when I enter it says login incorrect
for any other login other root it asks for password.

Last edited by sant527 (2009-08-13 12:37:05)

#6 2009-08-13 12:40:50

Re: root login incorrect

I know it’s a daft question but are you sure you’re not still booting from the CD?

All men have stood for freedom.
For freedom is the man that will turn the world upside down.
Gerrard Winstanley.

#7 2009-08-13 12:42:26

Re: root login incorrect

Yes I have just booted from the CD

#8 2009-08-13 12:47:56

Re: root login incorrect

no, did you disable the boot from cd in virtualbox ? and do you see grub ?

#9 2009-08-13 12:59:21

Re: root login incorrect

Sorry I am not able to get you

If I disable the boot from CD in virtual box then how can I boot.

I have booted and mounted my
mount /dev/sda3 /mnt/hare

Читайте также:  Build boost for linux

then nano /mnt/hare/etc/passwd

the root line looks like this

How to edit this line so that I can login back

#10 2009-08-13 13:24:19

Re: root login incorrect

I found the solution but partially

I have diabled boot from CD in virtual box

When I started I entered in to grub and append at the end of the kernel line single, then booted by pressing b

I then able to set a new root password. I also added a new user tom and set the password.

but login: root
passwd: entered the correct passwd

rather
login: tom
passwd: enter passwd

It logins to tom
at command prompt
# su
passwd: entered root passwd
the root passwd works and the logins into root

The reason why I can only login to root to some other account is not known

It can be because I have updated initscripts and replaced the previous inittab file with the inittab.pacman

I dont know what inittab does

Can some one throw some light on this aspect

Источник

Login incorrect

У меня dmesg в экран не влезает. Там слишком много текста. А как он поможет?

Может быть, надо поменять пароль рута.

надо в консоли дать команду sudo dmesg -T | tail -n20
и всё сразу начнёт влезать

А можно ли изменить пароль через chroot. Или сама система не даёт мне войти как рут. Я создал пользователя(не рут) и после безошибочного ввода пароля тоже самое — login incorrect

как это создал пользователя если под рутом залогиниться не можешь?

С помощью команды useradd Я сделал пароль рута. Перезагрузка. Ввожу root. Ввожу пароль. Пишет incorrect login. Загрузился с live. Смонтировал корень в /mnt. Создал юзера через useradd. Сделал ему пароль. После загрузился с диска с системой. Вхожу в рут: incorrect login. Вхожу в юзера — incorrect login. Что я делаю не так?

useradd не создает пароль. passwd тебе нужен

Смонтировал корень в /mnt. Создал юзера через useradd

Смонтировал то смонтировал,а перешел в систему перед тем как пользователя создать?

Да-да. Выразился некорректно. useradd создаёт пользователя, а passwd — пароль

У меня один вопрос — зачем ты ставишь Arch, если документацию по установке не читаешь и не думаешь при этом?

С помощью команды useradd Я сделал пароль рута.

Пользователь root всегда есть в системе по умолчанию, пароль меняется командой passwd, когда ты под ним залогинен (например, в чруте). Ну или от любого пользователя можно поменять. Команда useradd добавляет любого другого пользователя, пытаться заново добавить системного пользователя root — не надо.
Под рутом постоянно не сиди, иначе любое непривелигированное приложение может нанести непоправимый вред системе. Добавь простого пользователя, настрой sudo (выполнение команд от рута), и работой из под него. А непосредственно на рута надо переключаться в редких случаях, когда требуется выполнить большой обьём привелигированных команд.

Гражданин создал 5 тем по настройке, не детализировал, не говорил что делал, не говорил пытался ли исправить, не уточняет что за вики, где он всё читал… Этикета лора тоже почти нет, заголовки никудышные и не проставлены «решено» на каждой теме.

Может ему совсем не в арче нужно помочь, скорее с чем-то внешним?

Источник

Оцените статью
Adblock
detector