On 10/09/2015 01:09, Santiago Vila wrote:
On Wed, Sep 09, 2015 at 10:31:43PM +0000, Gioele Barabucci wrote:
`/etc/profile` contains calls to the `id` command that is not available
in the PATH when `/etc/profile` is sourced.
This leads to various errors being reported every time a user logs in.
The id command is used at least since base-files 3.1.0, which is more
than ten years old, but nobody has reported this in a decade.
Hello,
I have not touched /etc/login.defs, nor any other system configuration
file. I have tracked down the error to some strange interactions
between ssh and ~/.pam_environment that lead to an empty PATH variable
begin used for remote logins.
Couldn't /etc/profile be made more robust using the full path `/usr/bin/id`?
Regards,
--
Gioele Barabucci <[email protected]>