Displaying 12 results from an estimated 12 matches for "getluid".
Did you mean:
geteuid
2001 Feb 21
2
SCO 5.0.5 setluid patch
...hope you'll be kind if the diff is crude.
More importantly, I hope that where I moved it to is correct!
--
Darryl
Ideal Computer Group Inc.
thor 314 : /u/sco/source/openssh-2.5.1p1 # diff session.c session.drk.c
1024a1025,1031
> /* DRK: moved this stuff up higher */
> #if defined(HAVE_GETLUID) && defined(HAVE_SETLUID)
> /* Sets login uid for accounting */
> if (getluid() == -1 && setluid(pw->pw_uid) == -1)
> error("setluid: %s", strerror(errno));
> #endif /* defined(HAVE_GETLUID) && defined(HAVE_SETLUID) */
>...
2002 Mar 12
2
sys/queue.h
...ibsocket and libnsl before libc,
# otherwise you will find lots of "SIOCGPGRP errno 22" on syslog
@@ -227,7 +222,6 @@
AC_DEFINE(USE_PIPES)
AC_DEFINE(HAVE_SCO_PROTECTED_PW)
AC_DEFINE(DISABLE_SHADOW)
- AC_DEFINE(HAVE_BOGUS_SYS_QUEUE_H)
AC_DEFINE(BROKEN_SAVED_UIDS)
AC_CHECK_FUNCS(getluid setluid)
MANTYPE=man
@@ -242,7 +236,6 @@
AC_DEFINE(USE_PIPES)
AC_DEFINE(HAVE_SCO_PROTECTED_PW)
AC_DEFINE(DISABLE_SHADOW)
- AC_DEFINE(HAVE_BOGUS_SYS_QUEUE_H)
AC_CHECK_FUNCS(getluid setluid)
MANTYPE=man
;;
@@ -327,7 +320,7 @@
netinet/in_systm.h paths.h poll.h pty.h \
rpc/types.h sec...
2010 Nov 05
2
test request: SCO with setluid() (i686-pc-sco3.2v5.0.7, possibly others)
...form.c,v
retrieving revision 1.14
diff -u -p -r1.14 platform.c
--- platform.c 5 Nov 2010 03:47:01 -0000 1.14
+++ platform.c 5 Nov 2010 04:08:42 -0000
@@ -109,6 +109,14 @@ platform_setusercontext(struct passwd *p
}
}
# endif /* USE_PAM */
+
+#if !defined(HAVE_LOGIN_CAP) && defined(HAVE_GETLUID) && defined(HAVE_SETLUID)
+ if (getuid() == 0 || geteuid() == 0) {
+ /* Sets login uid for accounting */
+ if (getluid() == -1 && setluid(pw->pw_uid) == -1)
+ error("setluid: %s", strerror(errno));
+ }
+#endif
}
/*
Index: session.c
==============================...
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
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
2001 Feb 27
1
small cleanup patch
...part --------------
--- openssh_cvs/configure.in.old Mon Feb 26 18:47:57 2001
+++ openssh_cvs/configure.in Mon Feb 26 18:50:28 2001
@@ -257,7 +257,6 @@
AC_DEFINE(HAVE_SCO_PROTECTED_PW)
AC_DEFINE(DISABLE_SHADOW)
AC_DEFINE(HAVE_BOGUS_SYS_QUEUE_H)
- AC_DEFINE(BROKEN_SAVED_UIDS)
AC_CHECK_FUNCS(getluid setluid)
;;
*-dec-osf*)
--- openssh_cvs/pathnames.h.old Sat Feb 10 19:39:35 2001
+++ openssh_cvs/pathnames.h Mon Feb 26 19:08:19 2001
@@ -120,7 +120,9 @@
#ifndef _PATH_SFTP_SERVER
#define _PATH_SFTP_SERVER "/usr/libexec/sftp-server"
#endif
+#ifndef _PATH_LS
#define _PATH_LS &quo...
2002 Apr 22
0
[Bug 224] New: configure.ac changes for crays
...normal
Priority: P2
Component: Build system
AssignedTo: openssh-unix-dev at mindrot.org
ReportedBy: wendyp at cray.com
--- configure.ac.orig Mon Apr 22 14:31:27 2002
+++ configure.ac Mon Apr 22 14:32:48 2002
@@ -236,12 +236,29 @@
AC_CHECK_FUNCS(getluid setluid)
MANTYPE=man
;;
+*-*-unicosmk*)
+ no_libsocket=1
+ no_libnsl=1
+ not_sco=1
+ MANTYPE=cat
+ AC_DEFINE(USE_PIPES)
+ AC_DEFINE(LOGIN_NEEDS_UTMPX)
+ AC_DEFINE(USE_UTMP)
+ AC_DEFINE(USE_WTMP)
+ LDFLAGS="$LDFLAGS -L/usr/lo...
2002 Apr 22
0
[Bug 224] configure.ac changes for crays
...dditional Comments From wendyp at cray.com 2002-04-23 09:12 -------
sorry, slight error with that last patch.
try this instead (with 22 april snapshot):
--- configure.ac.orig Mon Apr 22 14:31:27 2002
+++ configure.ac Mon Apr 22 14:32:48 2002
@@ -236,12 +236,29 @@
AC_CHECK_FUNCS(getluid setluid)
MANTYPE=man
;;
+*-*-unicosmk*)
+ no_libsocket=1
+ no_libnsl=1
+ not_sco=1
+ MANTYPE=cat
+ AC_DEFINE(USE_PIPES)
+ AC_DEFINE(LOGIN_NEEDS_UTMPX)
+ AC_DEFINE(USE_UTMP)
+ AC_DEFINE(USE_WTMP)
+ LDFLAGS="$LDFLAGS"
+...
2007 Sep 10
1
4.7p1 password auth broken on SCO OSR6
openssh 4.7p1
SCO OSR6
Password authentication is non-functional. This seems dependent on
USE_LIBIAF which further depends on HAVE_LIBIAF (in defines.h), but
there is no longer any code in configure to define the latter. Building
with HAVE_LIBIAF defined enables password authentication, but only for
non-long (<9 char) passwords, even though UNIXWARE_LONG_PASSWORDS seems
to be defined. I
2002 Jun 25
3
BSD/OS with privsep
...{
+ int flags = LOGIN_SETALL & ~LOGIN_SETPATH;
+#ifdef __bsdi__
+ if (getpid() != getpgrp())
+ flags &= ~LOGIN_SETLOGIN;
+#endif
+ if (setusercontext(lc, pw, pw->pw_uid, flags) < 0) {
perror("unable to set user context");
exit(1);
}
#else
# if defined(HAVE_GETLUID) && defined(HAVE_SETLUID)
/* Sets login uid for accounting */
if (getluid() == -1 && setluid(pw->pw_uid) == -1)
error("setluid: %s", strerror(errno));
# endif /* defined(HAVE_GETLUID) && defined(HAVE_SETLUID) */
2003 Sep 05
2
3.6p1 bug on SCO OpenServer
...nfigure.orig 2003-03-26 00:12:34.000000000 -0500
--- configure 2003-07-18 17:26:00.000000000 -0400
***************
*** 4588,4593 ****
--- 4588,4597 ----
#define DISABLE_FD_PASSING 1
_ACEOF
+ cat >>confdefs.h <<\_ACEOF
+ #define WITH_ABBREV_NO_TTY 1
+ _ACEOF
+
for ac_func in getluid setluid
--8<-- cut here --8<--
--
Roger Cornelius rac at tenzing.org
2001 Feb 08
5
Daily snapshots...
All,
How can I get at the daily snapshots?
When I go to the website, www.openssh.com, and follow the Linux
link to portable.html and then go to request the daily snapshot from
http://bass.directhit.com/openssh_snap/, I get prompted for a user id
and password. Needless to say, I ain't got.
That's real useful. Use to be, I could get the snapshots from
the ftp site. Then things