Ticket #920 (closed defect: duplicate)
Prevent users from doing stupid things with PATH
Reported by: | jdreed | Owned by: | |
---|---|---|---|
Priority: | normal | Milestone: | Precise Beta |
Component: | -- | Keywords: | |
Cc: | Fixed in version: | ||
Upstream bug: |
Description
There's a bad snippet of code (that appears to be from 6.170) going around that encourages users to do this:
setenv PATH .:${JAVA_HOME}
And of course all the login scripts fail and they can't log in (because gnome-session isn't in PATH). After .environment and .cshrc.mine (or their bash equivalents) are sourced in the Athena dotfiles, we should sanity-check path and make sure /bin and /usr/bin are in there. At that point, we have two options:
- append them to $PATH (frankly, I can't think of a legitimate reason to have /usr/bin and /bin not present in your PATH at all -- I can think of reasons for them to be at the end, but not absent)
- Popup a zenity dialog telling the user that they're Wrong(tm) and pointing them at a Hermes article.
Change History
Note: See
TracTickets for help on using
tickets.
Off the top of my head: