Bug 7860
| Summary: | gdm session startup scripts don't honour user shell | ||
|---|---|---|---|
| Product: | [Retired] Red Hat Linux | Reporter: | Paul Gear <paul> |
| Component: | gnome-core | Assignee: | Havoc Pennington <hp> |
| Status: | CLOSED RAWHIDE | QA Contact: | |
| Severity: | medium | Docs Contact: | |
| Priority: | high | ||
| Version: | 6.1 | CC: | mharris, molinero |
| Target Milestone: | --- | ||
| Target Release: | --- | ||
| Hardware: | i386 | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | Bug Fix | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2003-04-14 17:55:13 UTC | Type: | --- |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
| Embargoed: | |||
|
Description
Paul Gear
1999-12-17 02:27:37 UTC
Release 23 of gdm2.0-beta2 has an attempted fix for this, if it doesn't work for you then please let us know. No luck. Here's what i did:
- Use useradd to create a dummy test user (including the default .bash*) files
- Use vipw to change their shell to /bin/ksh
- Add a line to each of the startup files (.bash_profile, .bashrc, .bash_logout,
.kshrc, .profile) which echos the date and the filename to a file, e.g.:
echo `date`: .profile >> $HOME/output
- Login as the test user and start a terminal window
- cat output. The output given is:
Fri Feb 25 11:16:14 EST 2000: .bashrc
Fri Feb 25 11:16:14 EST 2000: .bash_profile
Fri Feb 25 11:16:14 EST 2000: .bashrc
So, even though the user's shell is ksh, their bash startup files get executed
instead of their ksh files, and they get confused! :-)
It turns out that this needs fixing in the Xsession script, rather than in gdm. *** Bug 46475 has been marked as a duplicate of this bug. *** The needed changes were made to Xsession by removing its own -login invocation and replacing "exec foo" calls with: exec -l $SHELL -c foo Handing this back to Havoc to close if he believes gdm is ready to roll with this change. Havoc, also note, any scripts in gnome/kde that rely on this new xinitrc package should have their dependancies updated to reflect that also. Good idea to also comment why the dep is there too as I've learned. ;o) |