🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: alt.linux.redhat
Article #1

Re: [Rocky (RHEL clone) can't log/chroot in

#1
From: William Unruh
Date: Fri, 26 Jan 2024 05:13
43 lines
2699 bytes
On 2024-01-26, David Chmelik <dchmelik@gmail.com> wrote:
> On Tue, 2 Jan 2024 08:56:24 +0100, Marco Moock wrote:
>
>> Am 02.01.2024 um 01:13:59 Uhr schrieb David Chmelik:
>> 
>>> I started with *BSD UNIX and Slackware GNU/Linux in 1997 but tried
>>> RedHat GNU/Linux that year and roughly in the '0s.  Recently I
>>> installed Rocky GNU/Linux (considered successor of CentOS GNU/Linux)
>>> and tried to chroot in from Slackware but got the following error
>>> message.
>>> 
>>>     chroot: failed to run command ‘/bin/bash’: Permission denied

You need to make sure that your chroot actually contains bash and that
it is executable by whatever user you are trying to run as. Remember
your chroot needs to be able to access a version of /etc/passwd, and
/usr/bin so it can find the programs, etc. It sounds to me like your
chrooted system has permission problems.
Which is what the sentence is trying say.
>> 
>> Is that file allowed to be executed (x in ls) by the user of the system
>> you currently use?
>
> OF course!
>
>>> Someone on libera Internet Relay Chat (IRC) #rocky said boot it with
>>> selinux=disabled, which I did (I entered GRUB2 menu and put that
>>> parameter after a space at end of line that said linux).  When I
>>> rebooted to Slackware, nothing had changed (same error message
>>> chrooting in). A weird thing happened when I actually booted Rocky:
>>> when I typed my username into the login prompt it had a few <TABs> or
>>> many spaces afterwards and looked sort of like the following (after
>>> typing username).
>>> 
>>>     login:        root
>>> 
>>> Then it was unable to login with the password I had set.  Looks like
>>> something went wrong with I/O, though all other (over 10) OS (mostly
>>> UNIX/ GNU/Linux) on my PC don't have this problem.
>> 
>> VirtualBox?
>
> no
Technical Details
Message-ID: <uovf2g$2mu04$1@dont-email.me>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!i2pn2.pugleaf.net!archive.newsdeef.eu!apf1.newsdeef.eu!not-for-mail
References: <umvo0n$2cucd$1@dont-email.me> <un0fj8$2iupg$5@dont-email.me> <uovc1l$201pc$1@dont-email.me>

Show Full Headers
Complete Article Headers
Message-ID: <uovf2g$2mu04$1@dont-email.me>
Subject: Re: [Rocky (RHEL clone) can't log/chroot in
Date: Fri, 26 Jan 2024 05:13:52 +0000
From: William Unruh <unruh@invalid.ca>
References: <umvo0n$2cucd$1@dont-email.me> <un0fj8$2iupg$5@dont-email.me> <uovc1l$201pc$1@dont-email.me>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!i2pn2.pugleaf.net!archive.newsdeef.eu!apf1.newsdeef.eu!not-for-mail
Newsgroups: alt.linux.redhat,alt.os.linux.redhat
Organization: A noiseless patient Spider
Lines: 43
Mime-Version: 1.0
Content-Type: text/plain; charset=utf8
Content-Transfer-Encoding: 8bit
Injection-Date: Fri, 26 Jan 2024 05:13:52 -0000 (UTC)
User-Agent: slrn/1.0.3 (Linux)
Cancel-Lock: sha1:gatvZfLu4lMw9b7hQFIKoVeqMvE=