It has always been my understanding that the order to permanently drop privileges from root is: * setgroups() * setgid() * setuid()
Note setgid() sets all of: saved gid, egid and gid and setuid() sets all of saved uid, euid and uid. I did this locally and it worked fine. setgroups() seems to be able to be called after setgid() but not after setuid(). -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1039634 Title: [MIR] libpam-freerdp To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/libpam-freerdp/+bug/1039634/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs