bugJailkit - Bugs: bug #65041, Attempt to execute profile.d...


bug #65041: Attempt to execute profile.d scripts under EL8

Submitter:  deadlydirk
Submitted:  Sun 17 Dec 2023 10:27:00 PM UTC
Category:  None Severity:  3 - Normal
Item Group:  None Status:  None
Privacy:  Public Assigned to:  None
Open/Closed:  Open
* Mandatory Fields

Add a New Comment Rich Markup

Sun 17 Dec 2023 11:59:35 PM UTC, comment #1: 

In the meantime, I have tried to narrow down the root of the problem.
Is it possible that the /etc/bashrc in the jail is not read/executed at all if the jail owner/user has a home directory other than / , for example /home/<jailuser>?

It would actually make sense that way, but it is still a bit strange.

That's the home directory of the jail user /var/www/clients/client1/web39/./home/web39

When I place the bashrc in exactly this home directory it even reads the *.sh files from /etc/profile.d from within the jail.

Sun 17 Dec 2023 10:27:00 PM UTC, original submission:  


I'm trying to figure out why for a jailkit user (shell is set to /usr/sbin/jk_chrootsh) the login scripts from /etc/profile.d are not executed/sourced.

Operating system is AlmaLinux 8, but I don't think that this issue is related to a certain major or minor release version of RHEL or the Enterprise Linux clone.
Logging into the jail works just fine. I've also added /etc/profile.d to the jk_init.ini file on the host to the [basicshell] section. This directory is correctly copied into the jail on jail setup.

The jail setup also copied the correct bashrc into the jail under /etc which includes the code to include *.sh files from /etc/profile.d

Do you have any idea why the scripts from /etc/profile.d are not read?



(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:

No files currently attached


Depends on the following items: None found

Items that depend on this one: None found


Carbon-Copy List
  • -email is unavailable- added by deadlydirk (Submitted the item)

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    Only logged-in users can vote.


    No changes have been made to this item

    Back to the top

    Powered by Savane 3.13-4448.
    Corresponding source code