setfsgid(2) System Calls Manual setfsgid(2) setfsgid - LIBRARY Standard C library (libc, -lc) #include [[deprecated]] int setfsgid(gid_t fsgid); Linux (effective) . ( Linux) , ( credentials(7)). , . , . setfsgid() fsgid. setfsgid() , , fsgid , . . Linux. Linux 1.2. C glibc 2.15 , , ( 32- ID ), -1 errno EINVAL . setfsgid() , Linux. setfsuid(2) setfsuid(2) setfsgid() . Linux setfsgid() 16- . Linux 2.4 setfsgid32(), 32- . glibc setfsgid() . , , , . , -- setfsgid(-1) ( ), , setfsgid() . , EPERM, ( CAP_SETGID). . kill(2), setfsuid(2), capabilities(7), credentials(7) Alexander Golubev , Azamat Hackimov , Hotellook, Nikita , Spiros Georgaras , Vladislav , Yuri Kozlov ; GNU 3 , . . , , . Linux man-pages 6.06 31 2023 . setfsgid(2)