Displaying 20 results from an estimated 27 matches for "_path_stdpath".
2002 Jul 08
1
PATH problem in Irix.
...issing
/usr/bsd (which on Irix has things like head, more, lpr) and /usr/bin/X11.
This annoys the users, who want X11 to work.
I added a test to defines.h, as follows:
--- openssh-3.4p1/defines.h Mon Jun 24 09:26:49 2002
+++ defines.h Sun Jul 7 00:33:08 2002
@@ -296,6 +296,14 @@
# define _PATH_STDPATH USER_PATH
#endif
+#ifdef _PATH_USERPATH
+# ifdef _PATH_STDPATH
+# undef _PATH_STDPATH
+# endif
+# define _PATH_STDPATH _PATH_USERPATH
+#endif
+
+
#ifndef _PATH_STDPATH
# define _PATH_STDPATH "/usr/bin:/bin:/usr/sbin:/sbin"
#endif
There's also a _PATH_ROOTPATH defined for roo...
1999 Dec 26
0
ALERT: potential for `.' in _PATH_STDPATH [OpenSSH-1.2.1pre21]
After the recent discussion here about some OpenSSH sshd's having
difficulty locating scp in /usr/local/bin/, i took a look at
openssh-1.2.1pre17's config.h.in and found what i believe is a
potential minor security problem: the _PATH_STDPATH defined there ends
in `:', effectively putting a `.' (current directory) at the end of the
path and thus opening ssh sessions that use that default PATH to the
possibility of trojan attacks.
This is *only* a problem if _PATH_STDPATH is not defined in your system
includes (usually in /usr/i...
2003 Mar 24
0
[Bug 518] _PATH_STDPATH can get redefined in includes.h if paths.h exists
http://bugzilla.mindrot.org/show_bug.cgi?id=518
Summary: _PATH_STDPATH can get redefined in includes.h if paths.h
exists
Product: Portable OpenSSH
Version: 3.5p1
Platform: ix86
OS/Version: Linux
Status: NEW
Severity: normal
Priority: P2
Component: Build system...
2002 Nov 22
1
proposed change to configure
configure currently checks the paths.h file for the definition of
_PATH_STDPATH
On IRIX the define is named _PATH_USERPATH
The following patch to configure allows the correct value to be obtained
--- configure.orig Wed Jun 26 07:08:18 2002
+++ configure Fri Nov 22 10:38:57 2002
@@ -15705,8 +15713,12 @@
#ifdef HAVE_PATHS_H
# include <paths.h>
#endif
+#ifdef _...
2001 Feb 12
3
add scp path to _PATH_STDPATH
what do you think about this patch to add the path to scp to
_PATH_STDPATH? is there a better or cleaner way to do this? i'm hoping
to ward off 'scp doesn't work' questions for the next release.
i did *not* add this to a --with-default-path path, because if a user
specifies that, they should control its value completely.
Index: Makefile.in
============...
2002 Mar 29
2
scp : Problems with pathing
...;ll get a few "RTFM", but I hope I'll allay those feelings.
I'm getting the "scp: command not found". I've read the FAQ. I've
read bugs 42 and 82 in bugzilla. Hopefully, I didn't overlook something.
At a minimum, defines.h has :
#ifdef USER_PATH
# ifdef _PATH_STDPATH
# undef _PATH_STDPATH
# endif
# define _PATH_STDPATH USER_PATH
#endif
#ifndef _PATH_STDPATH
# define _PATH_STDPATH "/usr/bin:/bin:/usr/sbin:/sbin"
#endif
So, if scp is in 1 of those 4, it should be found. Its currently
in /usr/local/bin/scp. So :
I copy it to /usr/bin, and try......
2001 Feb 20
1
_PATH_STDPATH and @bindir@
Sorry if this is stuff that's been talked about before. If it is, just
ignore me.
I'm curious to know why Portable OpenSSH doesn't include @bindir@ in
the _PATH_STDPATH. This would save most installers of portable OpenSSH
from having to --with-default-path=$PREFIX/bin in order to ensure that
scp will work properly. This would also, I imagine, save quite a lot
of hassle for developers/helpful-folks on the mailing list regarding
FAQ 3.7. I could suggest a patch to d...
2000 Feb 24
1
A problem with PATH in sshd.c
Dear Sirs,
on my Linux (distribution Slackware 3.9), I have installed the
``openssh-1.2.2.tar.gz'' package into the /usr/local/bin directory.
In the ``sshd.c'' file, the PATH variable is set up:
child_set_env(&env, &envsize, "PATH", _PATH_STDPATH);
(line no. 2405). I am unable to connect to my machine using scp.
_PATH_STDPATH is "/usr/bin:/bin:/usr/sbin:/sbin", but the scp program
dwells in /usr/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)...
2000 May 23
1
further problems Re: scp not found with solaris 8/2.1.0p2
Thanks to Richard June, John Horne and Bosko Radivojevic, who
pointed out that I probably need to set the configure-time option
--with-default-path, so I did this (rather than make symlink
messes, which I'd prefer to avoid) :
1489 ./configure --with-default-path=/bin:/usr/bin:/opt/local/bin --prefix=/opt/local --with-random=/dev/random
1490 make
1491 make install
1492 pkill -TERM
2003 May 15
1
[Bug 518] _PATH_STDPATH can get redefined in includes.h if paths.h exists
http://bugzilla.mindrot.org/show_bug.cgi?id=518
------- Additional Comments From djm at mindrot.org 2003-05-15 18:58 -------
I don't see this in the current code. includes.h includes paths.h fairly early
and pulls in defines.h very close to the end.
Can you confirm with CVS head or 3.6.1p2?
------- You are receiving this mail because: -------
You are the assignee for the bug, or are
2001 Mar 15
0
problems compiling on Irix
I think I have resolved my problem, but having typed most of this
I might as well send it.
I have OpenSSH_2.5.1p2 which I am trying to build on Irix 5
In Irix /usr/include/paths.h _PATH_ROOTPATH and
_PATH_USERPATH are defined.
defines.h looks for USER_PATH and _PATH_STDPATH and misses this, so
that sshd does not include the path for X11 when users login. I copied a
chunk of ifdef viz.
#ifdef _PATH_USERPATH
# ifdef _PATH_STDPATH
# undef _PATH_STDPATH
# endif
# define _PATH_STDPATH _PATH_USERPATH
#endif
Having fixed that, I was having problems with X forwarding
I w...
2002 Jan 25
3
[Bug 82] scp: Command not found errors
http://bugzilla.mindrot.org/show_bug.cgi?id=82
djm at mindrot.org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |WORKSFORME
------- Additional Comments From djm at mindrot.org 2002-01-26 10:14
2000 Mar 16
2
default-path
I now specified
--with-default-path=/space/local/bin
but when I log in to the system, I get
ssh wierdlm at karadi
wierdlm at karadi.msci.memphis.edu's password:
Warning: Remote host denied X11 forwarding.
Last login: Thu Mar 16 12:28:52 2000 from wierdlmpc.msci.m
Sun Microsystems Inc. SunOS 5.6 Generic August 1997
bash: stty: command not found
bash: stty: command not found
bash:
1999 Dec 10
3
scp with openssh on the server side and $PATH.
..."/usr/bin:/bin:/usr/sbin:/sbin:" which might be set in config.h.
sshd is installed to /usr/local/stow/openssh-1.2pre16/sbin, scp to
/usr/local/stow/openssh-1.2pre16/bin; both programs are then symlinked
so that they can be found in /usr/local/[s]bin.
I changed config.h to say
|#ifndef _PATH_STDPATH
|# define _PATH_STDPATH "/usr/local/bin:/usr/bin:/bin:/usr/local/sbin:/usr/sbin:/sbin:"
|#endif
recompiled and reinstalled, but I still keep getting the same,
incorrect $PATH. What am I doing wrong?
btw, it would be easier to verify the correct sshd being executed if
|mh at torres[6/50...
2001 Feb 26
0
Problems with OpenSSH 2.5.1p1 on Solaris 8
...pathstr;
+ mypath = xmalloc(path_len + 1);
+ memcpy(mypath, pathstr, path_len);
+ *(mypath + path_len) = 0;
+ child_set_env(&env, &envsize, "PATH", mypath);
+ xfree(mypath);
+ }
+ } else {
+nocando:
+ child_set_env(&env, &envsize, "PATH", _PATH_STDPATH);
+ }
+ /*
+ * Cleanup the crap
+ */
+ if(onemore != MAP_FAILED)
+ munmap(onemore, pagesize);
+ if(logstr != MAP_FAILED)
+ munmap(logstr, inode.st_size);
+# else /* HAVE_ETC_DEFAULT_LOGIN */
child_set_env(&env, &envsize, "PATH", _PATH_STDPATH);
+# endif /*...
2003 Aug 22
14
[Bug 252] Patch for use of /etc/default/login
http://bugzilla.mindrot.org/show_bug.cgi?id=252
dtucker at zip.com.au changed:
What |Removed |Added
----------------------------------------------------------------------------
Attachment #212 is|0 |1
obsolete| |
------- Additional Comments From dtucker at zip.com.au 2003-08-22 14:14 -------
2000 Feb 27
0
[PATCH] Fix login.conf, expiration, BSD compatibility in OpenSSH
...sscontext");
- 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"));
+
+ /...
1999 Dec 21
0
Problem with UTMP recording
...dif
#endif
#ifndef _PATH_WTMP
# ifdef WTMPX_FILE
# define _PATH_WTMP WTMPX_FILE
# else
# ifdef WTMP_FILE
# define _PATH_WTMP WTMP_FILE
# else
# define _PATH_WTMP "/var/adm/wtmp"
# endif
# endif
#endif
#ifndef _PATH_BSHELL
# define _PATH_BSHELL "/bin/sh"
#endif
#ifndef _PATH_STDPATH
# define _PATH_STDPATH "/usr/bin:/bin:/usr/sbin:/sbin:"
#endif
#ifndef _PATH_DEVNULL
# define _PATH_DEVNULL "/dev/null"
#endif
#ifndef _PATH_MAILDIR
# ifdef MAILDIR
# define _PATH_MAILDIR MAILDIR
# endif
#endif
#ifndef MAX
# define MAX(a,b) (((a)>(b))?(a):(b))
# define MI...
1999 Nov 23
2
Fixes for Solaris
...XX */
#endif
+#ifdef HAVE_UTMP_H
+# include <utmp.h> /* For _PATH_XXX */
+#endif
+
#ifdef HAVE_SYS_TIME_H
# include <sys/time.h> /* For timersub */
#endif
+#ifdef HAVE_MAILLOCK_H
+#include <maillock.h>
+#endif
+
#ifndef SHUT_RDWR
enum
{
@@ -174,6 +182,10 @@
#ifndef _PATH_STDPATH
# define _PATH_STDPATH "/usr/bin:/bin:/usr/sbin:/sbin:"
+#endif
+
+#ifndef _PATH_DEVNULL
+# define _PATH_DEVNULL "/dev/null"
#endif
#ifndef _PATH_MAILDIR
Index: configure.in
===================================================================
RCS file: /var/cvs/openssh/confi...
2000 Dec 12
0
a (generic?!?) problem with server-side PATH to scp
...scp: command not found
lost connection
Maybe this is just a problem introduced my crazy ./configure
for afs, but it seems like USER_PATH should be include bindir
(ala --prefix) when --with-default-path=PATH is not used or
somesuch hacking sillyness.
I readly admit it's easy 'nuf to hack _PATH_STDPATH in defines.h,
at any rate.
later
steve
- - -
systems & network guy
high energy physics
university of wisconsin