su: cannot set groups: Operation not permitted

The main cause for this error (see below) is due to su not being set to a setuid of root.

su: cannot set groups: Operation not permitted

Solution

chmod u+s /bin/su
Rick Donato

Want to become a Linux expert?

Here is our hand-picked selection of the best courses you can find online:
Linux Mastery course
Linux Administration Bootcamp
and our recommended certification practice exams:
AlphaPrep Practice Tests - Free Trial