Bugzilla will be upgraded to version 5.0 on a still to be determined date in the near future. The original upgrade date has been delayed.
Bug 29051 - gnome xterm ignores --login
gnome xterm ignores --login
Product: Red Hat Linux
Classification: Retired
Component: pdksh (Show other bugs)
i386 Linux
medium Severity medium
: ---
: ---
Assigned To: Trond Eivind Glomsrxd
Ben Levenson
Depends On:
  Show dependency treegraph
Reported: 2001-02-23 10:23 EST by Marty Shannon
Modified: 2007-04-18 12:31 EDT (History)
1 user (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2001-02-26 15:18:24 EST
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

  None (edit)
Description Marty Shannon 2001-02-23 10:23:22 EST
After install, user has /bin/bash as login shell.  I change it to
/bin/ksh.  I change xterm preferences to "always use --login".  User's
.profile is not sourced by ksh on next login.
Comment 1 David Mason 2001-02-23 10:49:51 EST
hp - I tried '$useradd -s /usr/bin/ksh test' after setting this in
gnome-terminal and it returned 'unable to lock password file' - however it does
dawn on me that you would need to log out of X after changing shells as X will
"hold on to" bash after the login. Is this the case or do we have a
gnome-terminal problem?
Comment 2 Marty Shannon 2001-02-23 11:04:23 EST
Sorry, my bad.  I use text login, so X is completely exited.  Actually, I think
I rebooted somewhere along the way, too.  A possibility is that it is
ksh-related, but this worked fine in 6.2, for instance.
Comment 3 Preston Brown 2001-02-23 16:08:57 EST
is this xterm or gnome-terminal?
Comment 4 Marty Shannon 2001-02-23 16:20:33 EST
This is definitely gnome-terminal.
Comment 5 Glen Foster 2001-02-23 16:54:20 EST
This defect is considered MUST-FIX for Florence Gold release
Comment 6 Havoc Pennington 2001-02-23 17:57:51 EST
The problem as far as I can tell is that exec'ing ksh with a hyphen in front
("-/bin/ksh") does not result in a login shell, ksh is broken somehow.
The setting works with bash.
Comment 7 Trond Eivind Glomsrxd 2001-02-26 15:15:14 EST
Exacly how does the exec call look?
Comment 8 Trond Eivind Glomsrxd 2001-02-26 15:18:19 EST
HP: how does the call look?

It gives you a login shell if called with "-l" or if the program (argv[0])
starts with "-". These work.
Comment 9 Trond Eivind Glomsrxd 2001-02-26 17:45:44 EST
Can't reproduce - when I set something in .profile and choose "login shell", I
get it.
Comment 10 Marty Shannon 2001-02-26 18:19:51 EST
Will try the sequence again, taking more careful notes.  However, I must note
that on the machine in question, I still have to manually do ". ./.profile"
after opening a gnome-xterm.  If I can reproduce, I'll reopen the bug if I'm
permitted to (can I?).

Note You need to log in before you can comment on or make changes to this bug.