Displaying 20 results from an estimated 95 matches for "setresuid".
Did you mean:
setresgid
2022 Nov 06
12
[Bug 3497] New: setresuid configure check may need _GNU_SOURCE
https://bugzilla.mindrot.org/show_bug.cgi?id=3497
Bug ID: 3497
Summary: setresuid configure check may need _GNU_SOURCE
Product: Portable OpenSSH
Version: 9.1p1
Hardware: 68k
OS: Mac OS X
Status: NEW
Severity: enhancement
Priority: P5
Component: Build system
Assignee: unassigned-bug...
2002 Feb 22
0
Trouble with Samba 2.2.2 under HPUX (high cpu utilization)
...PS - Here is the output from tusc
getgid() ................................................. = 0 (0)
setgroups(1, 0x400f1f20) ................................. = 0
setresgid(-1, 1010, -1) .................................. = 0
getgid() ................................................. = 0 (1010)
setresuid(-1, 104, -1) ................................... = 0
getuid() ................................................. = 0 (104)
lseek64(40, 207011840, SEEK_SET) ......................... = 207011840
write(40, "010117\0' \0\0\0\r\0g \ace065 06".., 2048) .... = 2048
send(12, "\0\0\0/ ffS...
2001 Jun 07
0
Patch for systems with no setreuid()
Sorry if I'm duplicating an existing patch, but...
On systems with no seteuid() that have setreuid() there is an
emulation, but if both are lacking (but we do have setresuid()),
nothing is done. The following seems to be right, 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 @@
/* Defi...
2003 Sep 17
8
[Bug 645] Configure mis-identifies setresgid
http://bugzilla.mindrot.org/show_bug.cgi?id=645
Summary: Configure mis-identifies setresgid
Product: Portable OpenSSH
Version: -current
Platform: ix86
OS/Version: Linux
Status: NEW
Severity: normal
Priority: P2
Component: Build system
AssignedTo: openssh-bugs at mindrot.org
ReportedBy:
2001 Apr 05
0
HP-UX 9 problems (hangs on logout; tty isn't sane)
...s are "hackish", and not at all suited to inclusion in the
source tree, but they might point someone in the right direction for a
more robust solution. The seteuid() "hack" isn't too bad, though the
comments are a bit excessive.
(Upshot: HP-UX 9.05 has setuid() and setresuid() but not seteuid() or
setreuid(); RLIMIT_CORE is only defined if _KERNEL is defined (it's
labeled "unsupported BSD stuff" in <sys/resource.h>); and the
"#ifdef __hpux" stuff in auth-passwd.c doesn't work on 9.05. Ugh.)
* "ssh localhost command" w...
2003 Oct 27
8
[Bug 645] Configure mis-identifies setresgid
http://bugzilla.mindrot.org/show_bug.cgi?id=645
------- Additional Comments From dtucker at zip.com.au 2003-10-27 13:43 -------
Created an attachment (id=487)
--> (http://bugzilla.mindrot.org/attachment.cgi?id=487&action=view)
Test setresuid and setresguid for "not implemented"
Please try this patch. You will need to run "autoreconf" after applying, then
./configure && make.
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
2000 Oct 03
1
Various platforms
...dn't worry about
#ifdef's or the configure scripts. However hopefully this will be of use
to you. This 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)
{
retur...
2017 Sep 11
18
[Bug 2775] New: Improve kerberos credential forwarding support
https://bugzilla.mindrot.org/show_bug.cgi?id=2775
Bug ID: 2775
Summary: Improve kerberos credential forwarding support
Product: Portable OpenSSH
Version: 7.5p1
Hardware: Other
OS: Linux
Status: NEW
Severity: enhancement
Priority: P5
Component: Kerberos support
Assignee:
2008 Nov 21
0
FW: Closing sessions and smbstatus
...> gettimeofday({1224652458, 61107}, NULL) = 0
> geteuid() = 0
> getegid() = 0
> setgroups(0, []) = 0
> setresgid(4294967295, 0, 4294967295) = 0
> getegid() = 0
> setresuid(0, 0, 4294967295) = 0
> geteuid() = 0
> write(23, "\205\0\0\0", 4) = 4
> gettimeofday({1224652458, 61549}, NULL) = 0
> geteuid() = 0
> fstat(25, {st_mode=S_IFREG|0644, st_size=894111, ...})...
2004 Dec 27
0
[patch] some buildsystem fixes for crosscompiling
...FUNC(strcasecmp,
diff -ruN openssh-3.9p1.orig/configure.ac openssh-3.9p1/configure.ac
--- openssh-3.9p1.orig/configure.ac Tue Dec 14 07:43:36 2004
+++ openssh-3.9p1/configure.ac Tue Dec 14 07:44:15 2004
@@ -867,34 +867,6 @@
AC_CHECK_DECLS(h_errno, , ,[#include <netdb.h>])
-AC_CHECK_FUNCS(setresuid, [
- dnl Some platorms have setresuid that isn't implemented, test for this
- AC_MSG_CHECKING(if setresuid seems to work)
- AC_TRY_RUN([
-#include <stdlib.h>
-#include <errno.h>
-int main(){errno=0; setresuid(0,0,0); if (errno==ENOSYS) exit(1); else exit(0);}
- ],
- [AC_MSG_RESULT...
2004 Sep 07
7
[Bug 321] configure does not work when cross compiling
...CC| |mcgege at gmx.de
------- Additional Comments From mcgege at gmx.de 2004-09-07 18:39 -------
I try to compile openssh-3.8.1p1 on a i386 linux system for s390-unknown-linux,
but configure is still complaining about cross-compiling:
"checking if setresuid seems to work... configure: error: cannot run test
program while cross compiling"
I tried to change configure.ac the way you did (although I'm not really sure
what I am doing here :-) and also the test for setresgid. Fixed it, but now I
am stuck at
"checking if openpty correctly...
2008 Jul 30
4
panic action on samba 3.2
...tion_snum(1190) crdfsim
(10.217.4.93) connect to service profiles initially as user fsi (uid=1179,
gid=221) (pid 27143)
[2008/07/30 16:57:36, 1] smbd/service.c:close_cnum(1401) crdfsim
(10.217.4.93) closed connection to service fsi
[2008/07/30 16:57:36, 0] lib/util_sec.c:set_effective_uid(204) setresuid
failed with EAGAIN. uid(1179) might be ove!
r its NPROC limit [2008/07/30 16:57:36, 0] lib/util_sec.c:asse!
rt_uid(1
00) Failed to set uid privileges to (-1,1179) now set to (0,0)
[2008/07/30 16:57:36, 0] lib/util.c:smb_panic(1666) PANIC (pid 27143):
failed to set uid [2008/07/30 16:57:36, 0]...
2008 Oct 20
2
Closing sessions and smbstatus
Hi,
When are client sessions closed?
Let me explain what I'm trying to do... we're in a School district and
we try to stop kids logging more than once. They way I did this before
was to dump the active sessions from our previous Server2003 fileserver
into a file once a minute and process it with a Perl script to check who
was connected from where, rebooting machines remotely as
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 fi...
2003 Aug 14
1
setres[gu]id implicit decl warning on Linux glibc
Hi,
With recent snapshots, I noted a warning in compilation on Red Hat Linux
7.3 system with glibc 2.2.5:
uidswap.c: In function `permanently_set_uid':
uidswap.c:155: warning: implicit declaration of function `setresgid'
uidswap.c:168: warning: implicit declaration of function `setresuid'
The problem appears to be that these should be prototyped in unistd.h, but
aren't. There are no prototype for these anywhere at all. The man page
gives a hint that this is a long-standing bug/feature.
On the other hand, the definitions seem to exist in glibc 2.3.
I looked a bit how to f...
1999 Mar 10
1
Bug in set_effective_uid on AIX 4.1.5 /4.3.2 Samba 2.0.3
...e/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)
return setreuid(-1,uid);
#else
if ((seteuid(uid) != 0) && (setuid(uid) != 0))
return -1;
return 0;
#endif
}
I noted no side effects on my system.
Best regards
Dirk El...
2012 Sep 28
0
incorrect configure test for "whether snprintf correctly terminates long strings"
...a list of other such errors (misdetection of features due to
sloppy tests depending on implicit declarations to succeed):
configure:8862: checking whether struct dirent allocates space for d_name
conftest.c:88:2: error: implicit declaration of function 'exit'
configure:9899: checking if setresuid seems to work
conftest.c:164:2: error: implicit declaration of function 'setresuid'
configure:9954: checking if setresgid seems to work
conftest.c:166:2: error: implicit declaration of function 'setresgid'
configure:10345: checking for (overly) strict mkstemp
conftest.c:187:2: err...
2018 Jun 09
1
is "unintended library loading" actually possible?
...d() = 0
[pid 42312] chroot("/var/lib/mysql/") = 0
[pid 42312] chdir("/") = 0
[pid 42312] setgid(0) = 0
[pid 42312] setgroups(1, [0]) = 0
[pid 42312] setuid(0) = 0
[pid 42312] setresuid(-1, 0, -1) = 0
[pid 42312] geteuid() = 0
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.samba.org/pipermail/rsync/attachments/20180609/edea8946/attachment.html>
2001 May 31
0
Bug in scp
...1, 0) = 0x401e4000
567 close(4) = 0
567 munmap(0x40014000, 23853) = 0
567 getpid() = 567
567 getuid() = 1000
567 geteuid() = 1000
567 geteuid() = 1000
567 setresuid(ruid 4294967295, euid 1000, suid 4294967295) = 0
567 umask(022) = 037
567 open("/dev/urandom", O_RDONLY) = 4
567 read(4, "R/\262\6=\253\344\273PR\23\346\232\302s\263\21\336\214"..., 64) = 64
567 close(4) = 0
567 brk(0)...
2003 Oct 08
3
Ldap.h missing in samba-3.0.0
...ith-ldapsam
--with-winbind --with-pam_smbpass --with-smbmount --with-ads
--with-ldap':
checking for root... yes
checking for iface AIX... no
checking for iface ifconf... got 2 interfaces:
eth0 IP=192.168.0.43 NETMASK=255.255.255.0
lo IP=127.0.0.1 NETMASK=255.0.0.0
yes
checking for setresuid... OK
yes
checking for working mmap... yes
checking for ftruncate needs root... no
checking for fcntl locking... yes
checking for broken (glibc2.1/x86) 64 bit fcntl locking... no
checking for 64 bit fcntl locking... yes
checking for st_blocks in struct stat... yes
checking for st_blksize in struct...