I know this is unsafe but as root i want to give the user's the ability to add themselves to new groups i.e gpasswd -a user1 group2. My question is how do i set the suid and sgid bits ,and on which files would i have to set them.Thanks.
digitalturbulence
Apr 17 2003, 04:44 AM
try to put /usr/sbin/groupadd in setuid
chmod 4755 /usr/sbin/groupadd
But I think it's very dangerous what you are doing! (very unsecure)
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.