Displaying 18 results from an estimated 18 matches for "have_setreuid".
Did you mean:
have_seteuid
1999 Mar 10
1
Bug in set_effective_uid on AIX 4.1.5 /4.3.2 Samba 2.0.3
...12819 for AXI 4.1.5 persits
also in samba 2.0.3.
The Bug prevents the connecting of other users as root to any
share.
I have a workaround/fix tested on AIX 4.1.5 ,4.3.2 with
gcc 2.8.1 here:
Change samba-2.0.3/source/lib/util_sec.c
funktion set_effective_uid like this:
155c155
< #elif defined(HAVE_SETREUID)
---
> #elif defined(HAVE_SETREUID) && !defined(AIX)
to
int set_effective_uid(uid_t uid)
{
#if defined(HAVE_TRAPDOOR_UID)
return trapdoor_set_effective_uid(uid);
#elif defined(HAVE_SETRESUID)
return setresuid(-1,uid,-1);
#elif defined(HAVE_SETREUID) && !defined(AIX)...
2000 Oct 03
1
Various platforms
...is all for openssh-2.2.0p1 compiled alongside
openssl-0.9.5a and zlib-1.1.3.
Under HP-UX
===========
uname -smr
HP-UX A.09.03 9000/735
There is no seteuid or setreuid, but there is a setresuid, so
using your model in bsd-misc.c, I did:
-----------
#if !defined(HAVE_SETEUID) && defined(HAVE_SETREUID)
int seteuid(uid_t euid)
{
return(setreuid(-1,euid));
}
#endif /* !defined(HAVE_SETEUID) && defined(HAVE_SETREUID) */
/* JPK */
int seteuid(uid_t euid)
{
return(setresuid(-1,euid,-1));
}
-----------
This appears to be correct based on the documentation, and appears to
work....
2001 Jun 07
0
Patch for systems with no setreuid()
...ight, but I've only got
one machine (running an ancient version of HP-UX) which needs this so
it may not be general:
--cut-here--
--- config.h.in.orig Thu Jun 7 14:18:57 2001
+++ config.h.in Thu Jun 7 14:19:33 2001
@@ -503,6 +503,9 @@
/* Define if you have the setreuid function. */
#undef HAVE_SETREUID
+/* Define if you have the setresuid function. */
+#undef HAVE_SETRESUID
+
/* Define if you have the setrlimit function. */
#undef HAVE_SETRLIMIT
--- configure.orig Thu Jun 7 14:12:53 2001
+++ configure Thu Jun 7 14:13:40 2001
@@ -3184,7 +3184,7 @@
fi
-for ac_func in arc4random atexi...
2000 Nov 22
0
problem with installing openssh on HP/UX
Hi,
I am trying to install openssh on an HP:
acro-284> uname -a
HP-UX niit1 A.09.01 A 9000/730 2015353714 two-user license
There were a couple of problems during compiling:
1. The system doesn't have seteuid or setreuid. It has setresuid. I
had to define HAVE_SETREUID and modify bsd-misc.c to be:
#if !defined(HAVE_SETEUID) && defined(HAVE_SETREUID)
int seteuid(uid_t euid)
{
/* return(setreuid(-1,euid));*/
return(setresuid(-1,euid,-1));
}
#endif /* !defined(HAVE_SETEUID) && defined(HAVE_SETREUID) */
2. The file auth-passwd.c tries to includ...
2003 Sep 18
0
Darwin notes for openssh-3.7.1p1
I was able to build working openssh-3.7.1p1 on the Darwin-ppc-1.4 , 5.5, and 6.0 platform, by
setting the following by hand in config.h.
#define SETEUID_BREAKS_SETUID
#define BROKEN_SETREUID
#define HAVE_SETEUID 1
/* #undef HAVE_SETREUID 1 */
For Darwin-x86-6.6.1, it built with the following.
#define SETEUID_BREAKS_SETUID
/* #undef BROKEN_SETREUID */
#define HAVE_SETEUID 1
/* #undef HAVE_SETREUID 1 */
Here is what I get from configure.
/* #undef SETEUID_BREAKS_SETUID */
/* #undef BROKEN_SETREUID */
#define HAVE_SETEUID 1
#defi...
1999 May 26
1
Major Bug in Samba 2.0.4b with AIX 4.x
...a bug in Samba 2.0.3 and 2.0.4b with IBM AXI 4.x.
The Bug prevents connecting of other users than root to any
share.
I have a workaround/fix tested on AIX 4.1.5 ,4.3.2 with
gcc 2.8.1 here:
Change samba-2.0.4b/source/lib/util_sec.c
funktion set_effective_uid like this:
155c155
< #elif defined(HAVE_SETREUID)
---
> #elif defined(HAVE_SETREUID) && !defined(AIX)
#############################^^^^^^^^^^^^^^^^^
to
int set_effective_uid(uid_t uid)
{
#if defined(HAVE_TRAPDOOR_UID)
return trapdoor_set_effective_uid(uid);
#elif defined(HAVE_SETRESUID)
return setresuid(-1,uid,-1);
#elif...
1999 Dec 23
0
Patch to make pre19 work with NetBSD
...der file. */
#undef HAVE_LASTLOG_H
+/* Define if you don't have the <lastlog.h> header file but have lastlog. */
+#undef HAVE_LASTLOG
+
/* Define if you have the <login.h> header file. */
#undef HAVE_LOGIN_H
@@ -405,3 +408,7 @@
#if !defined(HAVE_SETEUID) && defined(HAVE_SETREUID)
# define seteuid(a) setreuid(-1,a)
#endif /* !defined(HAVE_SETEUID) && defined(HAVE_SETREUID) */
+
+#if defined(HAVE_LASTLOG_H) && !defined(HAVE_LASTLOG)
+# define HAVE_LASTLOG
+#endif /* defined (HAVE_LASTLOG_H) && !defined(HAVE_LASTLOG) */
--- login.c.orig Thu Dec 23 13...
2000 Jul 17
0
patch for getting 2.1.1p4 to compile on SunOS 4
...es(rand_buf, sizeof(rand_buf));
-
- rc4_key(rc4, rand_buf, sizeof(rand_buf));
- memset(rand_buf, 0, sizeof(rand_buf));
-}
-#endif /* !HAVE_ARC4RANDOM */
-
#ifndef HAVE_SETPROCTITLE
void setproctitle(const char *fmt, ...)
{
@@ -159,8 +78,13 @@
#endif /* !defined(HAVE_SETEUID) && defined(HAVE_SETREUID) */
#if !defined(HAVE_STRERROR) && defined(HAVE_SYS_ERRLIST)
-const char *strerror(void)
+const char *strerror(int e)
{
- return(sys_errlist[errno]);
+ extern int sys_nerr;
+ extern char *sys_errlist[];
+
+ return (e >= 0 && e < sys_nerr)
+ ? sys_er...
2000 Jan 27
1
Long awaited round 1 of NeXT patches.
...# include <utmpx.h>
diff -ruN openssh-1.2.2/bsd-misc.c ossh-1.2.2n/bsd-misc.c
--- openssh-1.2.2/bsd-misc.c Sat Jan 22 17:32:03 2000
+++ ossh-1.2.2n/bsd-misc.c Thu Jan 27 00:42:24 2000
@@ -239,3 +239,89 @@
return(setreuid(-1,euid));
}
#endif /* !defined(HAVE_SETEUID) && defined(HAVE_SETREUID) */
+
+/* putenv:
+ * implementation of putenv, from the comp.sys.next.programmers
+ * FAQ list and misc-source repository. I believe it comes
+ * from Thomas Funke <thf at zelator.in-berlin.de>. Includes
+ * some mods from Garance Drosehn <gad at eclipse.i...
2003 Sep 16
6
sshd 3.7p1 dies on MacOSX
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Here's the output from running sshd in debug mode:
debug1: sshd version OpenSSH_3.7p1
debug1: private host key: #0 type 0 RSA1
debug1: read PEM private key done: type RSA
debug1: private host key: #1 type 1 RSA
debug1: read PEM private key done: type DSA
debug1: private host key: #2 type 2 DSA
debug1: setgroups() failed:
2003 May 16
3
open and euid security flaw in 5.0-Current?
On a FreeBSD 5.0 the behaviour of screen when connecting to other
users sessions have changed. Previously:
1. login as userA start a screen as userA and disconnect
2. login as root su - userA "screen -r"
3. result failure as userA cant access the ttyX with such a message
Current:
1. login as userA start a screen as userA and disconnect
2. login as root su - userA "screen -r"
3.
2003 Dec 30
8
[Bug 651] SCO 3.2v4.2 and OpenSSH 3.7.1p1 --> connection hangs and does not close (ssh2 only)
http://bugzilla.mindrot.org/show_bug.cgi?id=651
------- Additional Comments From vikashb at comparexafrica.co.za 2003-12-30 16:39 -------
tried openssh-SNAP-20031223
does not compile:
(cd openbsd-compat && make)
gcc -g -O2 -Wall -Wpointer-arith -Wno-uninitialized -I. -I.. -I. -I./..
-I/usr/local/ssl/include -Dftruncate=chsize -I/usr/local/include
-DHAVE_CONFIG_H -c
2003 Feb 11
1
Problems configuring OpenSSH 3.5p1 on Sol 5.8
...GLOB 1
#define HAVE_INET_NTOA 1
#define HAVE_INET_NTOP 1
#define HAVE_INNETGR 1
#define HAVE_MEMMOVE 1
#define HAVE_MMAP 1
#define HAVE_REALPATH 1
#define HAVE_RECVMSG 1
#define HAVE_RRESVPORT_AF 1
#define HAVE_SENDMSG 1
#define HAVE_SETEGID 1
#define HAVE_SETEUID 1
#define HAVE_SETGROUPS 1
#define HAVE_SETREUID 1
#define HAVE_SETRLIMIT 1
#define HAVE_SETSID 1
#define HAVE_SETVBUF 1
#define HAVE_SIGACTION 1
#define HAVE_SNPRINTF 1
#define HAVE_SOCKETPAIR 1
#define HAVE_STRERROR 1
#define HAVE_STRLCAT 1
#define HAVE_STRLCPY 1
#define HAVE_SYSCONF 1
#define HAVE_TCGETPGRP 1
#define HAVE_TRUNCATE 1
#define HA...
2005 Sep 19
1
ssh hangs or gives Segmentation fault
...DTABLESIZE */
#define HAVE_SETEGID 1
#define HAVE_SETENV 1
#define HAVE_SETEUID 1
#define HAVE_SETGROUPS 1
/* #undef HAVE_SETLOGIN */
/* #undef HAVE_SETLUID */
/* #undef HAVE_SETPCRED */
/* #undef HAVE_SETPROCTITLE */
#define HAVE_SETREGID 1
#define HAVE_SETRESGID 1
#define HAVE_SETRESUID 1
#define HAVE_SETREUID 1
#define HAVE_SETRLIMIT 1
#define HAVE_SETSID 1
#define HAVE_SETUTENT 1
#define HAVE_SETUTXENT 1
#define HAVE_SETVBUF 1
#define HAVE_SHADOW_H 1
#define HAVE_SIGACTION 1
#define HAVE_SIGVEC 1
#define HAVE_SIG_ATOMIC_T 1
#define HAVE_SNPRINTF 1
#define HAVE_SOCKETPAIR 1
#define HAVE_SO_PEERCRED
#de...
2019 Oct 29
0
auth logging or auditing
...E_SETEUID
?? HAVE_SETGID
?? HAVE_SETGROUPS
?? HAVE_SETHOSTENT
?? HAVE_SETITIMER
?? HAVE_SETLINEBUF
?? HAVE_SETLOCALE
?? HAVE_SETMNTENT
?? HAVE_SETPGID
?? HAVE_SETPROCTITLE
?? HAVE_SETPROCTITLE_INIT
?? HAVE_SETREGID
?? HAVE_SETRESGID
?? HAVE_SETRESGID_DECL
?? HAVE_SETRESUID
?? HAVE_SETRESUID_DECL
?? HAVE_SETREUID
?? HAVE_SETSID
?? HAVE_SETUID
?? HAVE_SET_MENU_ITEMS
?? HAVE_SHARED_MMAP
?? HAVE_SHMGET
?? HAVE_SHM_OPEN
?? HAVE_SHOW_PANEL
?? HAVE_SIGACTION
?? HAVE_SIGBLOCK
?? HAVE_SIGGETMASK
?? HAVE_SIGLONGJMP
?? HAVE_SIGPROCMASK
?? HAVE_SIGSET
?? HAVE_SIGSETMASK
?? HAVE_SIG_ATOMIC_T_TYPE
?? HAVE_SIMPLE_C_PROG...
2006 Apr 11
0
Problem building openssh-4.3p2 under cygwin and windows XP
...efine HAVE_PUTUTLINE 1
#define HAVE_PUTUTXLINE 1
#define HAVE_REALPATH 1
#define HAVE_RECVMSG 1
#define HAVE_SA_FAMILY_T 1
#define HAVE_SENDMSG 1
#define HAVE_SETDTABLESIZE 1
#define HAVE_SETEGID 1
#define HAVE_SETENV 1
#define HAVE_SETEUID 1
#define HAVE_SETGROUPS 1
#define HAVE_SETREGID 1
#define HAVE_SETREUID 1
#define HAVE_SETRLIMIT 1
#define HAVE_SETSID 1
#define HAVE_SETUTENT 1
#define HAVE_SETUTXENT 1
#define HAVE_SETVBUF 1
#define HAVE_SIGACTION 1
#define HAVE_SIG_ATOMIC_T 1
#define HAVE_SIZE_T 1
#define HAVE_SNPRINTF 1
#define HAVE_SOCKETPAIR 1
#define HAVE_SSIZE_T 1
#define HAVE_SS_FAMILY_IN_SS 1...
2020 May 29
2
get_ea_dos_attribute: Cannot get attribute from EA on file .: Error = No data available
Samba 4.12.1, single server with AD+DC on Ubuntu 18.04. Filesystem:
/dev/sdb1 on /home type ext4 (rw,relatime,stripe=32750,data=ordered)
It all work as expected, but I occasionally get the error in subject which denies access to shares. Restarting Samba will restore functionality.
What can be the cause of this problem?
Thanks.
[2020/05/27 18:24:35.795379, 8]
2020 Jun 03
3
get_ea_dos_attribute: Cannot get attribute from EA on file .: Error = No data available
...E_SETEUID
HAVE_SETGID
HAVE_SETGROUPS
HAVE_SETHOSTENT
HAVE_SETITIMER
HAVE_SETLINEBUF
HAVE_SETLOCALE
HAVE_SETMNTENT
HAVE_SETPGID
HAVE_SETPROCTITLE
HAVE_SETPROCTITLE_INIT
HAVE_SETREGID
HAVE_SETRESGID
HAVE_SETRESGID_DECL
HAVE_SETRESUID
HAVE_SETRESUID_DECL
HAVE_SETREUID
HAVE_SETSID
HAVE_SETUID
HAVE_SET_MENU_ITEMS
HAVE_SHARED_MMAP
HAVE_SHOW_PANEL
HAVE_SIGACTION
HAVE_SIGBLOCK
HAVE_SIGGETMASK
HAVE_SIGLONGJMP
HAVE_SIGPROCMASK
HAVE_SIGSET
HAVE_SIGSETMASK
HAVE_SIG_ATOMIC_T_TYPE
HAVE_SIMPLE_C_PROG
HAVE_SIZE_T
HAVE_SNPRINTF...