search for: change_identity

Displaying 1 result from an estimated 1 matches for "change_identity".

2007 Jun 04
8
Bug in Configurator.change_privilege?
...to #{group}." Process::GID.change_privilege(Etc.getgrnam(group).gid) To confirm this is an appropriate fix, I took a look at the source for the linux coreutils ''su'' command, which is very similar: /* Become the user and group(s) specified by PW. */ static void change_identity (const struct passwd *pw) { #ifdef HAVE_INITGROUPS errno = 0; if (initgroups (pw->pw_name, pw->pw_gid) == -1) error (EXIT_FAIL, errno, _("cannot set groups")); endgrent (); #endif if (setgid (pw->pw_gid)) error (EXIT_FAIL, errno, _("cannot set group id")...