How to set the setuid and setgid bit for files in Unix
4 comments. Current rating: (3 votes). Leave comments and/ or rate it.
Question:I need to set setuid and setgid bit for files.
Please show me how to. And what is the exact purpose of the uid bit?
Answer:In the shell just type the commands shown in the box below to set the uid or gid bits.
The purpose of the uid bit: