Note: This bug is displayed in read-only format because
the product is no longer active in Red Hat Bugzilla.
RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Description of problem:
setup uses 'hostname' which couldn't be installed
Version-Release number of selected component (if applicable):
setup-2.12.2-2.el8_0.1.noarch
How reproducible:
always
Steps to Reproduce:
1. have a user with csh shell
2. remove hostname package (isn't it depreciated ? or will it)
3. login as user
[root@ci-vm-10-0-137-157 bz1461001-wiretap-does-not-write-drop-count-in-pcapng]# cat /etc/passwd | grep 'a:'
a:x:1000:1000::/home/a:/bin/csh
[root@ci-vm-10-0-137-157 bz1461001-wiretap-does-not-write-drop-count-in-pcapng]# rpm -q hostname
package hostname is not installed
[root@ci-vm-10-0-137-157 bz1461001-wiretap-does-not-write-drop-count-in-pcapng]# su - a
Last login: Mon Sep 30 10:22:40 EDT 2019 on pts/0
/usr/bin/hostname: Command not found.
Actual results:
not nice welcome message
Expected results:
no error
Additional info:
I noticed that /etc/profile uses '2>/dev/null' for enable HOSTNAME variable that hides this issue with default bash. So issue is only for csh.
this is not regression its there for a long time.
Comment 1Martin Osvald 🛹
2019-10-01 07:22:12 UTC
(In reply to Petr Sklenar ⛄ from comment #0)
> 2. remove hostname package (isn't it depreciated ? or will it)
There is a BZ for Fedora to make setup use hostnamectl instead of hostname so as soon as it gets fixed in Fedora, this could get fixed in RHEL too:
Bug 1745245 - `/etc/profile` should use `/usr/bin/hostnamectl` by default instead of `/usr/bin/hostname`
This bug is fixed in Fedora and since it has low priority it's unlikely it'll be included in RHEL. Closing as wontfix based on management with the reporter.