/etc/environment PATH should not have quotes
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
krb5 (Ubuntu) |
Confirmed
|
Low
|
Unassigned | ||
krb5-appl (Ubuntu) |
Confirmed
|
Low
|
Unassigned |
Bug Description
installed 8.04 server edition on a desktop and 8.04.1 desktop edition on a laptop, both fully updated.
both have the line PATH="/
inside /etc/environment
while this works for 99% of the time these days, in some rare cases, the quotes are taken literally and the string isn't fully expanded.
specifically, using rsh/rlogin (even more specifically, I'm using the kerberized versions in krb5-clients package) on a server results in the PATH actually being "/usr/local/
again, this isn't a problem for most use cases like a regular bash login or ssh, since they seem to evaluate it down to what's valid, but there doesn't seem to be any real reason to have the quotes in there....?
some may not even notice it being incorrect after rlogin, since the bash invalid command fallback will fill in most usual locations like /usr/bin. however try running something in /usr/games, like say... banner and it will complain.
solution is to just remove the two " characters in the line. works for me.
Changed in krb5 (Ubuntu): | |
status: | New → Confirmed |
Changed in krb5-appl (Ubuntu): | |
status: | New → Confirmed |
This is created by the libpam-modules postinst.
Please separately report any bugs you've encountered due to the quotes; anything that uses /etc/environment should be doing so according to pam_env's rules (even if they don't actually use pam_env) and should be fixed if it doesn't match up.