LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 11-18-2023, 12:01 PM   #1
AllanP
Member
 
Registered: Jun 2007
Location: Nanoose Bay, B.C. Canada
Distribution: Mint, Ubuntu, Fedora, Debian, Win10, Win 11
Posts: 104

Rep: Reputation: 15
Fedora hangs near end of boot


I posted the following on the Fedora forum, but no response so thought I'd try here:
I decided to do a total re-install on a 1TB ssd drive: Windows 10, Linux Mint, Ubuntu and Fedora 39. I have never found installing Fedora easy as with Ubuntu. So I thought I'd use Acronis and do an image of Fedora OS and its' Home partition. So I formatted and installed Windows, then restored the old Windows partition. So far so good. Then I restored the Fedora and Fedora Home partitions. Then I installed Ubuntu. Now comes the fun. Ubuntu put Fedora in the Grub. I selected Fedora on boot up and it seemed to be acting normally, but then halted on a line I can't recall, but after stumbling over it for some time it came up with this message:

Can't open access to console, root account locked. su login(8) man page

I am able to access Fedora folders through Ubuntu. I had a look at fstab, but nothing stands out. So if anyone has a suggestion on an edit I could do to solve; it would be much appreciated.

I've tried re-installing, but find Fedora's installer just too difficult in choosing an install partition and its' home partition plus another partition I wanted it to have access to.

So that's where I'm at and if I can't find an easy solution then I'll just forget Fedora.
 
Old 11-18-2023, 01:26 PM   #2
MadeInGermany
Senior Member
 
Registered: Dec 2011
Location: Simplicity
Posts: 2,818

Rep: Reputation: 1211Reputation: 1211Reputation: 1211Reputation: 1211Reputation: 1211Reputation: 1211Reputation: 1211Reputation: 1211Reputation: 1211
Googling the error message I got
https://discussion.fedoraproject.org...cy-shell/71613

IMHO disabling the root login enhances security only a little, but bares too many risks.
I would always want a root password, eventually restrict root access in /etc/security/access.conf
 
Old 11-18-2023, 01:46 PM   #3
AllanP
Member
 
Registered: Jun 2007
Location: Nanoose Bay, B.C. Canada
Distribution: Mint, Ubuntu, Fedora, Debian, Win10, Win 11
Posts: 104

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by MadeInGermany View Post
Googling the error message I got
https://discussion.fedoraproject.org...cy-shell/71613

IMHO disabling the root login enhances security only a little, but bares too many risks.
I would always want a root password, eventually restrict root access in /etc/security/access.conf
I opened that file and a bit complicated for my ageing grey matter to comprehend. Here it is and thanks for the come back:

# Login access control table.
#
# Comment line must start with "#", no space at front.
# Order of lines is important.
#
# When someone logs in, the table is scanned for the first entry that
# matches the (user, host) combination, or, in case of non-networked
# logins, the first entry that matches the (user, tty) combination. The
# permissions field of that table entry determines whether the login will
# be accepted or refused.
#
# Format of the login access control table is three fields separated by a
# ":" character:
#
# [Note, if you supply a 'fieldsep=|' argument to the pam_access.so
# module, you can change the field separation character to be
# '|'. This is useful for configurations where you are trying to use
# pam_access with X applications that provide PAM_TTY values that are
# the display variable like "host:0".]
#
# permission:usersrigins
#
# The first field should be a "+" (access granted) or "-" (access denied)
# character.
#
# The second field should be a list of one or more login names, group
# names, or ALL (always matches). A pattern of the form user@host is
# matched when the login name matches the "user" part, and when the
# "host" part matches the local machine name.
#
# The third field should be a list of one or more tty names (for
# non-networked logins), host names, domain names (begin with "."), host
# addresses, internet network numbers (end with "."), ALL (always
# matches), NONE (matches no tty on non-networked logins) or
# LOCAL (matches any string that does not contain a "." character).
#
# You can use @netgroupname in host or user patterns; this even works
# for @usergroup@@hostgroup patterns.
#
# The EXCEPT operator makes it possible to write very compact rules.
#
# The group file is searched only when a name does not match that of the
# logged-in user. Both the user's primary group is matched, as well as
# groups in which users are explicitly listed.
# To avoid problems with accounts, which have the same name as a group,
# you can use brackets around group names '(group)' to differentiate.
# In this case, you should also set the "nodefgroup" option.
#
# TTY NAMES: Must be in the form returned by ttyname(3) less the initial
# "/dev" (e.g. tty1 or vc/1)
#
##############################################################################
#
# Disallow non-root logins on tty1
#
#-:ALL EXCEPT root:tty1
#
# Disallow console logins to all but a few accounts.
#
#-:ALL EXCEPT wheel shutdown sync:LOCAL
#
# Same, but make sure that really the group wheel and not the user
# wheel is used (use nodefgroup argument, too):
#
#-:ALL EXCEPT (wheel) shutdown sync:LOCAL
#
# Disallow non-local logins to privileged accounts (group wheel).
#
#-:wheel:ALL EXCEPT LOCAL .win.tue.nl
#
# Some accounts are not allowed to login from anywhere:
#
#-:wsbscaro wsbsecr wsbspac wsbsym wscosor wstaiwde:ALL
#
# All other accounts are allowed to login from anywhere.
#
##############################################################################
# All lines from here up to the end are building a more complex example.
##############################################################################
#
# User "root" should be allowed to get access via cron .. tty5 tty6.
#+:root:cron crond :0 tty1 tty2 tty3 tty4 tty5 tty6
#
# User "root" should be allowed to get access from hosts with ip addresses.
#+:root:192.168.200.1 192.168.200.4 192.168.200.9
#+:root:127.0.0.1
#
# User "root" should get access from network 192.168.201.
# This term will be evaluated by string matching.
# comment: It might be better to use network/netmask instead.
# The same is 192.168.201.0/24 or 192.168.201.0/255.255.255.0
#+:root:192.168.201.
#
# User "root" should be able to have access from domain.
# Uses string matching also.
#+:root:.foo.bar.org
#
# User "root" should be denied to get access from all other sources.
#-:root:ALL
#
# User "foo" and members of netgroup "nis_group" should be
# allowed to get access from all sources.
# This will only work if netgroup service is available.
#+:@nis_group foo:ALL
#
# User "john" should get access from ipv4 net/mask
#+:john:127.0.0.0/24
#
# User "john" should get access from ipv4 as ipv6 net/mask
#+:john:::ffff:127.0.0.0/127
#
# User "john" should get access from ipv6 host address
#+:john:2001:4ca0:0:101::1
#
# User "john" should get access from ipv6 host address (same as above)
#+:john:2001:4ca0:0:101:0:0:0:1
#
# User "john" should get access from ipv6 net/mask
#+:john:2001:4ca0:0:101::/64
#
# All other users should be denied to get access from all sources.
#-:ALL:ALL
 
Old 11-18-2023, 10:48 PM   #4
Brains
Senior Member
 
Registered: Apr 2009
Distribution: All OS except Apple
Posts: 1,591

Rep: Reputation: 389Reputation: 389Reputation: 389Reputation: 389
Quote:
I restored the Fedora and Fedora Home partitions
Fedora's typical auto configuration during installation is to create 3 partitions, boot, home and /, using BTRFS file system. Perhaps you are missing the important boot partition. Also, if wiping out and re-creating a new EFI system partition was part of the overhaul, there will be no entry in the boot menu for Fedora, will need to reinstall grub.

As for the Home partition which is accessible via Ubuntu, if you haven't got your personal data backed up yet, now is the time to do it.

In a Fedora install test run in VMWare. I created 4 partitions on the virtual drive, EFI System partition formatted Fat32, 2 Linux partitions raw and one formatted NTFS partition. During installation In Destination section ensure the correct drive is checked and select the third method, not Auto or Custom but Advanced GUI and hit Done at top left. Highlight the EFI System partition and right clicked on it selecting "EDIT/Set mountpoint" and added "/boot/efi" without the quotes as mountpoint, click "Set mountpoint". Then highlight the first Linux partition and right clicked on it and selected "Format", left it at ext4 and set Label to Home, moundpoint to /home/yo, select Format partition or similar. Then highlighted the Second Linux partition, right click it and select "Format", left it at ext4, Labeled it "Fed39", set mountpoint to "/", select Format partition or similar. Then highlight the formatted NTFS partition and right clicked it, select "Set mountpoint", added "/home/yo/Data", click "Set mountpoint".

Did the installation, upon reboot created user yo. The Data directory was there in yo's home, but nothing else, not even hidden setting/directories. I could not customize anything like desktop settings etc. All 4 drives were in /etc/fstab, had to change the NTFS drive from "NTFS to NTFS-3g" and "Defaults,ro to Defaults" and reboot to give users read/write access to it. It's possible my user had restrictions in it's home drive also, forgot to check that out.

I suggest:

Once you have your data backed up, boot Ubuntu USB in live mode and fire up Utilities/disk application. Highlight the 1TG drive and delete the Fedora partitions and create one partition for both, format it ext4 or select "Other/none" to leave it raw. Then fire up the Fedora installer and do as in my test to add the EFI System and Root partitions only. Don't format the System partition if Windows and Ubuntu are still around, just set the mountpoint to /boot/efi.
 
Old 11-19-2023, 12:56 AM   #5
MadeInGermany
Senior Member
 
Registered: Dec 2011
Location: Simplicity
Posts: 2,818

Rep: Reputation: 1211Reputation: 1211Reputation: 1211Reputation: 1211Reputation: 1211Reputation: 1211Reputation: 1211Reputation: 1211Reputation: 1211
Please follow the link that I gave.
(Boot to rescue system, mount your root volume, chroot to it, and set a root pw).
Then the next regular system boot will ask for the root pw, and you can do the final fix in the emergency shell.

Or try the advice in the previous post.

The file I gave is not relevant for solving your problem.
 
Old 11-19-2023, 12:07 PM   #6
AllanP
Member
 
Registered: Jun 2007
Location: Nanoose Bay, B.C. Canada
Distribution: Mint, Ubuntu, Fedora, Debian, Win10, Win 11
Posts: 104

Original Poster
Rep: Reputation: 15
Thanks all. I'm afraid it has become a moot issue. Widows for some reason kept shrinking its' partition by 27GB. I did a chkdsk and that was it for Windows booting; so I'm off today to buy a 2 TB ssd before my drive totally crashes and load fresh. So will see if I can install Fedora after Windows and that is another problem for me anyways as I always have trouble figuring out partition designation for Fed. I will create a 1GB efi, a 300GB for W10, 10GB Swap, 200GB Storage, 200GB Timeshift then 60GB Fedpra OS and an 85GB partition to restore Fedora Home to. The load Mint and Ubuntu.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
libdvdread gives can't seek to block near end of DVD's jasahl Linux - Hardware 0 04-25-2007 12:11 PM
Power loss near end of breezy-dapper upgrade, start again? MarkR Ubuntu 4 05-16-2006 01:29 AM
can't repartiton hard drive for a dual boot because disk contains data near end andy101 Linux - Newbie 3 11-14-2005 01:52 PM
problem near end of wireless installation joshknape Linux - Wireless Networking 1 08-19-2005 01:35 PM
the end is near pepsi General 6 06-13-2004 12:46 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 10:04 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration