Displaying 20 results from an estimated 186 matches for "getegid".
2001 Oct 08
2
Porting OpenSSH 2.9.9p2 to Dynix V4.4.4
...M=vt100
Do you have any ideas what I can define in order to fix this problem?
I also found what I believe might be a bug in uidswap.c at line 88. It
used to look like:
-----
#ifndef SAVED_IDS_WORK_WITH_SETEUID
/* Propagate the privileged gid to all of our gids. */
if (setgid(getegid()) < 0)
debug("setgid %u: %.100s", (u_int) getegid(), strerror(errno));
/* Propagate the privileged uid to all of our uids. */
if (setuid(geteuid()) < 0)
debug("setuid %u: %.100s", (u_int) geteuid(), strerror(errno));
#endif...
2008 Nov 21
0
FW: Closing sessions and smbstatus
...gt; Jeremy.
>
> So after one day I have ~50 left-over sessions. Running strace as
above I
> seem to usually get...
>
> select(32, [5 23 31], [], NULL, {43, 450000}) = 0 (Timeout)
> 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, &qu...
2014 Dec 16
1
Fwd: samba & Oracle ACFS Issues
...write(34, " pid[38063] Error writing 139 b"..., 74) = 74
munmap(0x7f4d64ee9000, 4096) = 0
*geteuid() = 504*
setreuid(4294967295, 0) = 0
geteuid() = 0
geteuid() = 0
*getegid() = 504*
setregid(4294967295, 0) = 0
getegid() = 0
getegid() = 0
setgroups(0, []) = 0
setregid(4294967295, 0) = 0
getegid()...
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
2014 Dec 16
2
Fwd: samba & Oracle ACFS Issues
On Tue, Dec 16, 2014 at 03:40:08PM +0100, Nacho del Rey wrote:
> Hi there
>
> In an Oracle RAC cluster using ACFS (as file-system) where we have a samba
> server for sharing files to windows clients, we are suffering a strange
> issue, from time to time, which it causes the Windows clients lock for a
> while (10 min or a bit more) or even indefinitely when they are working
>
2015 Apr 20
4
Samba 4 slow write
Hi Jones,
many thanks for your reply.
Yepp, I'm using ACL's (Posix ACL's) on filesystem to regulate the
access of users for files and directories.
Do you mean that this is the "normal" way? These geteuid and
getegid system calls are so slow?
On the previous system (Debian Wheezy, Samba 3) I've also used
ACL's, but there were much faster than this...
What should be the solution? Do you have any idea?
Thanks,
Ervin
On Mon, Apr 20, 2015 at 10:48:37AM +0800, Jones Syue wrote:
> Hello Ervin,
>...
2015 Apr 18
2
Samba 4 slow write
Hi all,
On Thu, Apr 16, 2015 at 03:00:49PM -0700, Jeremy Allison wrote:
> On Thu, Apr 16, 2015 at 08:42:48PM +0200, Ervin Heged?s wrote:
> > Dear Samba users,
> >
> > here is an Ubuntu 14.04, with Samba 4 (4.1.6), and LDAP (slapd
> > 2.4.31). The config came from a previous system (Debian Squeezy),
> > which had been crashed (HW error - on this new machine,
2001 Oct 08
1
Ported OpenSSH 2.9.9p2 to Dynix
...*******
*** 85,91 ****
if (setgroups(user_groupslen, user_groups) < 0)
fatal("setgroups: %.100s", strerror(errno));
#endif /* !HAVE_CYWIN */
! #ifndef SAVED_IDS_WORK_WITH_SETEUID
/* Propagate the privileged gid to all of our gids. */
if (setgid(getegid()) < 0)
debug("setgid %u: %.100s", (u_int) getegid(), strerror(errno));
--- 85,98 ----
if (setgroups(user_groupslen, user_groups) < 0)
fatal("setgroups: %.100s", strerror(errno));
#endif /* !HAVE_CYWIN */
! #ifdef SAVED_IDS_WORK_WI...
2017 Mar 14
3
Having problem getting Asterisk to work on CentOS 7
...250}, 8) = 0
rt_sigprocmask(SIG_BLOCK, NULL, [], 8) = 0
rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0
stat("/bin/pkill", {st_mode=S_IFREG|0755, st_size=28336, ...}) = 0
stat("/bin/pkill", {st_mode=S_IFREG|0755, st_size=28336, ...}) = 0
geteuid() = 0
getegid() = 0
getuid() = 0
getgid() = 0
access("/bin/pkill", X_OK) = 0
stat("/bin/pkill", {st_mode=S_IFREG|0755, st_size=28336, ...}) = 0
geteuid() = 0...
2001 Apr 25
0
NeXT // Broken _POSIX_SAVED_ID patch
...)",
- pw->pw_uid, pw->pw_gid, saved_euid);
- if (saved_euid != 0) {
- privileged = 0;
- return;
- }
- privileged = 1;
- temporarily_use_uid_effective = 1;
+ /* Save the current euid, and egroups. */
+#ifdef SAVED_IDS_WORK_WITH_SETEUID
+ saved_euid = geteuid();
saved_egid = getegid();
- saved_egroupslen = getgroups(NGROUPS_MAX, saved_egroups);
- if (saved_egroupslen < 0)
- fatal("getgroups: %.100s", strerror(errno));
-
- /* set and save the user's groups */
- if (user_groupslen == -1) {
- if (initgroups(pw->pw_name, pw->pw_gid) < 0)
- fatal...
2017 Mar 14
5
Having problem getting Asterisk to work on CentOS 7
Some background information.
I have used Debian with Asterisk for several years. Have encountered zero problems.
I am now trying to setup an Asterisk on a CentOS7 box using VMWare Workstation. I am brand new to CentOS and RHEL so I may be missing something obvious.
I am installing CentOS Minimal Install and Asterisk from Source. (I have installed Asterisk from Source on Debian hundreds of
2018 Feb 20
2
Migration from 3.6.25-0ubuntu0.12.04.10 to 4.x with passdb backend = ldapsam
...n", 8) = 8
read(13, "\0012\4\0\4\0", 6) = 6
alarm(0) = 16
rt_sigaction(SIGALRM, {SIG_IGN, [ALRM], SA_RESTORER, 0x7f0dca289390},
{0x7f0dbfabd4ee, [ALRM], SA_RESTORER, 0x7f0dca289390}, 8) = 0
geteuid() = 0
getegid() = 0
setgroups(0, []) = 0
setresgid(-1, 0, -1) = 0
getegid() = 0
setresuid(0, 0, -1) = 0
geteuid() = 0
getegid() = 0...
2013 Sep 06
1
[PATCH] arm: appliance: Add support for device trees (dtb's).
This is the libguestfs companion patch to:
https://www.redhat.com/archives/libguestfs/2013-September/msg00045.html
Rich.
2006 Nov 28
1
Can't drop root group privileges
Hi all,
I need your insight. I've been testing Dovecot on an AIX 5.2
system. Compiled and running fine. We have some users on an
AIX 5.1 system, so I'm working on installing it there, so we
can do further testing.
I'm using Dovecot 1.0 RC15 with OpenSSL 9.0.7e, configured to use
port 10143 (imap) and 10993 (imaps). The error I'm seeing in the log is:
dovecot: Nov 28
2017 Jan 31
3
quota-status returns quota_status_success when email would put user over quota
...g it correct (only
>
>> including the last few lines):
>> ...
>> lseek(14, 833, SEEK_SET) = 833
>> munmap(0x7f165d32a000, 833) = 0
>> close(14) = 0
>> geteuid() = 0
>> getegid() = 110
>> getgid() = 110
>> getegid() = 110
>> setgroups(1, [110]) = 0
>> setresuid(-1, 110, -1) = 0
>> prctl(PR_SET_DUMPABLE, 1)...
2015 Apr 20
0
Samba 4 slow write
...ed in "admin users" in
> smb.conf?
Hmm looks like earlier return for users with root permission,
so admin users would not go through SMB_VFS_GET_NT_ACL(),
which takes more time on permission checking.[1]
Non-admin users would go through SMB_VFS_GET_NT_ACL(),
and finally would reach getegid() and geteuid().[2]
Hence strace said the top 2 records are getegid() and geteuid().
[1] code snippet:
NTSTATUS smbd_check_access_rights(struct connection_struct *conn,
...
if (!use_privs && get_current_uid(conn) == (uid_t)0) {
/* I'm sorry sir, I didn't k...
2004 Sep 22
1
[PATCH] permanently_set_uid: Don't try restoring gid on Cygwin
...f GID if changed (test clearing of saved gid) */
if (old_gid != pw->pw_gid &&
(setgid(old_gid) != -1 || setegid(old_gid) != -1))
fatal("%s: was able to restore old [e]gid", __func__);
+#endif
/* Verify GID drop was successful */
if (getgid() != pw->pw_gid || getegid() != pw->pw_gid) {
--
Corinna Vinschen
Cygwin Project Co-Leader
Red Hat, Inc.
2003 Apr 28
0
Samba crashes on password change from Windows 2000 clients
...bone /kernel: pid 496 (smbd), uid 65534: exited on signal 6
For a few times whilst windows was sitting there. I've had a look in
util_sec.c and it appears to be happening somewhere around here, no?
---
static void assert_gid(gid_t rgid, gid_t egid)
{
if ((egid != (gid_t)-1 && getegid() != egid) ||
(rgid != (gid_t)-1 && getgid() != rgid)) {
if (!non_root_mode()) {
DEBUG(0,("Failed to set gid privileges to (%d,%d)
now set to (%d,%d) uid=(%d,%d)\n",
(int)rgid, (int)egid,...
2015 Jan 14
1
volume can't be attached after libvirt upgrade
...-----------
int qemu_open(const char *name, int flags, ...)
{
int ret;
int mode = 0;
long euid, egid;
if (flags & O_CREAT) {
va_list ap;
va_start(ap, flags);
mode = va_arg(ap, int);
va_end(ap);
}
euid = (long)geteuid();
egid = (long)getegid();
#ifdef O_CLOEXEC
ret = open(name, flags | O_CLOEXEC, mode);
#else
ret = open(name, flags, mode);
if (ret >= 0) {
qemu_set_cloexec(ret);
}
#endif
return ret;
}
Regards,
CY.
2015 May 02
2
Samba 4 slow write
...m, the running time is very similar as before.
So, how can I go away to resolve my slow write problem?
Thanks,
Ervin
% time seconds usecs/call calls errors syscall
------ ----------- ----------- --------- --------- ----------------
15.80 14.789129 4 4010639 getegid
15.67 14.661022 4 4010648 geteuid
10.90 10.205386 5 2204716 fcntl
8.05 7.536012 5 1671479 setresuid
7.71 7.219007 4 1671480 setresgid
7.44 6.963770 6 1129072 read
6.6...