You are not logged in.
I am having a very similar issue after migrating my installation to a new ssd. Details here (#6). The autologin method didn't work and my ssh fails to start at boot. I have reset the password to a simple one and created a new user with no password. No account (including root) allows me to login.
Last edited by babel_f1sh (2024-04-06 12:40:19)
Offline
I am unable to login.
Please don't paraphrase, https://bbs.archlinux.org/viewtopic.php?id=57855
What is the exact error you get?
Chances are you might have shredded /etc/shells in the transfer?
Can you boot the rescue.target? (2nd link below, that should get you a root shell)
Offline
Please don't paraphrase, https://bbs.archlinux.org/viewtopic.php?id=57855
What is the exact error you get?
Chances are you might have shredded /etc/shells in the transfer?
Can you boot the rescue.target? (2nd link below, that should get you a root shell)
I am also getting the "Login incorrect" error. All my installed shells (bash, rbash, fish, sh, git-shell) are present in /etc/shells. I am able to boot the rescue.target, are there any commands I should run from here? Also, when exiting out of the live environment, it hangs right before it reboots or shuts down. I have been holding down the power button to force it to power off. Is this a factor? It also outputs
Failed unmounting /run/archiso/copytoram
Offline
I am able to boot the rescue.target, are there any commands I should run from here?
I do see three outputs that may be of interest when running "journalctl -b -1"
agetty[487]: failed to open credentials directory
login[487]: pam_shells(login:auth): /etc/shells is either world writable or not a normal file
login[487]: FAILED LOGIN 1 FROM tty1 FOR babelfish, Authentication failure
babelfish is the user account I attempted to login as
Offline
1. "systemctl start multi-user.target"
2. journalctl -b -1 # to see the journal ofthe previous boot w/ a failed login - we need to know *what* fails.
3. crashing the install iso should™ not affect the installed system provided that the drives of the installed system have not been mounted or have been unmounted before the shoutdown
Edit:
/etc/shells is either world writable or not a normal file
This is critical.
stat /etc/shells
It's supposed to be root:root/644
For a list of deviant files:
sudo LC_ALL=C pacman -Qkk | grep -v ', 0 altered files'
Last edited by seth (2024-04-05 21:46:16)
Offline
stat /etc/shells
It's supposed to be root:root/644
That command outputs
File: /etc/shells
Size: 178 Blocks: 8 IO Block: 4096 regular file
Device: 259,3 Inode: 212730902 Links: 1
Access: (0777/-rwxrwxrwx) Uid: ( 0/ root) Gid: ( 0/ root)
Access: 2024-04-05 12:16:45.584295828 -0700
Modify: 2023-10-30 18:54:40.182061900 -0700
Change: 2024-04-05 02:49:13.740060654 -0700
Birth: 2024-04-05 02:49:13.740060654 -0700
For a list of deviant files:
sudo LC_ALL=C pacman -Qkk | grep -v ', 0 altered files'
This command outputs
sudo: /etc/sudo.conf is world writable
sudo: /etc/sudo.conf is world writable
sudo: /etc/sudoers is world writable
sudo: error initializing audit plugin sudoers_audit
When running the same command without sudo at the beginning, it outputs a long list of programs that all say (Permissions mismatch) at the end. I think rsync may have messed with the file permissions while transferring.
Offline
I think rsync may have messed with the file permissions while transferring.
Less rsync, more your invocation of it
This is either because you didn't preserve attributes or used a non-POSIX filesystem (FAT32)
https://bbs.archlinux.org/viewtopic.php?id=257561
There's been some upstream development on https://aur.archlinux.org/packages/pacm … ermissions
Offline
I think rsync may have messed with the file permissions while transferring.
Less rsync, more your invocation of it
This is either because you didn't preserve attributes or used a non-POSIX filesystem (FAT32)https://bbs.archlinux.org/viewtopic.php?id=257561
There's been some upstream development on https://aur.archlinux.org/packages/pacm … ermissions
Potentially my invocation, though I backed up my system and restored it using the process here. Should I restore my system in a different manner? Maybe use this command instead? My filesystem for the main directory is ext4. Should I install that AUR package and run it from rescue.target?
Last edited by babel_f1sh (2024-04-05 22:41:25)
Offline
"-aAX" will not have left you with bogus permissions, do the files on the backup still have the proper permissions?
Offline
"-aAX" will not have left you with bogus permissions, do the files on the backup still have the proper permissions?
How can I check?
Offline
You eg. stat /etc/shells in your backup?
Offline
You eg. stat /etc/shells in your backup?
Access output is
Access: (0755/-rwxr-xr-x) Uid: ( 1000/babelfish) Gid: ( 1000/babelfish)
Offline
seth wrote:You eg. stat /etc/shells in your backup?
Access output is
Access: (0755/-rwxr-xr-x) Uid: ( 1000/babelfish) Gid: ( 1000/babelfish)
This is the output I got when viewing the backup file from my old ssd. Running the same command in the live environment, I got
Access: (0777/-rwxrwxrwx) Uid: ( 0/ root) Gid: ( 0/ root)
When checking what the original /etc/shells outputs on my old ssd in the live environment it shows
Access: (0644/-rw-r--r--) Uid: ( 0/ root) Gid: ( 0/ root)
So if I'm understanding correctly, the original backup changed the file permissions?
Offline
I found the root of my issue. I was able to login by changing /etc/shells to having root permissions only. The permissions all throughout my backup had this issue though. Apparently, ntfs drives do not respect file permissions, even with rsync. I will have to make an ext4 partition of my external drive now and backup to that. Hopefully that works. Thanks for pointing me in the right direction seth!
Offline
I found the root of my issue.
Where, here?
Apparently, ntfs drives do not respect file permissions
This is either because you didn't preserve attributes or used a non-POSIX filesystem (FAT32)
ntfs isn't a posix FS either…
Offline
ntfs isn't a posix FS either…
Yeahhh I had misunderstood what you meant. I thought you were referring to the new root partition. That partition is ext4, but the external drive holding the backup is ntfs. I'm going to reformat that drive once I can transfer the data off of it.
I found the root of my issue.
Where, here?
The /etc/shells file needed to have its permissions set to root only, yes. That allowed me to log in. All of the files in /etc and /usr have incorrect permissions though. I think I just need to make a new backup on an ext4 drive. For those struggling with the "Login Incorrect" error though, what worked for me was running (in the live environment or rescue.target)
chmod 644 /etc/shells
Offline
Mod note: splitting from https://bbs.archlinux.org/viewtopic.php?id=294580
Sakura:-
Mobo: MSI MAG X570S TORPEDO MAX // Processor: AMD Ryzen 9 5950X @4.9GHz // GFX: AMD Radeon RX 5700 XT // RAM: 32GB (4x 8GB) Corsair DDR4 (@ 3000MHz) // Storage: 1x 3TB HDD, 6x 1TB SSD, 2x 120GB SSD, 1x 275GB M2 SSD
Making lemonade from lemons since 2015.
Online