search for: _path_defpath

Displaying 3 results from an estimated 3 matches for "_path_defpath".

2000 Feb 24
1
A problem with PATH in sshd.c
.../local/bin. If I try to connect, enter password (etc., all OK), then the shell reports it could not find the scp command (not in PATH) and the connection is closed... IMHO, an ordinary user does not need to have "/usr/sbin:/sbin" in his/her PATH. IMHO, the PATH variable should be set to _PATH_DEFPATH, which is "/usr/local/bin:/usr/bin:/bin": child_set_env(&env, &envsize, "PATH", _PATH_DEFPATH); I have changed it, recompiled the sshd and everything works fine. Yours faithfully David Bartl
2002 Feb 28
11
[Bug 131] Problems with sshd's compiled in default PATH.
http://bugzilla.mindrot.org/show_bug.cgi?id=131 djm at mindrot.org changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |WONTFIX ------- Additional Comments From djm at mindrot.org 2002-03-01 09:49
2000 Feb 27
0
[PATCH] Fix login.conf, expiration, BSD compatibility in OpenSSH
...; - exit(1); - } -#endif /* LOGIN_CAP */ + char **tmpenv; + + /* Initialize temp environment */ + envsize = 64; + env = xmalloc(envsize * sizeof(char *)); + env[0] = NULL; + + child_set_env(&env, &envsize, "PATH", + (pw->pw_uid == 0) ? + _PATH_STDPATH : _PATH_DEFPATH); + + snprintf(buf, sizeof buf, "%.200s/%.50s", + _PATH_MAILDIR, pw->pw_name); + child_set_env(&env, &envsize, "MAIL", buf); + + if (getenv("TZ")) + child_set_env(&env, &envsize, "TZ", getenv("TZ")); + + /* Save parent en...