Scripting

Set UI Dand GID

Here is a summary of the chmod commands to set uid, gid and sticky bit in order to get a command to run with different user privileges :

There are UID and GID and so called "sticky bit":
1 - "sticky bit"
2 - means setguid
4 - means setuid
and, as above:
3 - "sticky bit" + setgid
5 - "sticky bit" + seruid
6 - setgid + setuid
7 - "sticky bit" + setgid + setuid
Conclusion:

chmod 4711 /usr/bin/cdrecord

means that user (You) can read, write (make changes) and execute file cdrecord, and that cdrecord has setuid with all consequences. There're also other ways to describe privileges on Linux, using letters:

r - read access
w - write access
x - execute access (also access to go into folder, in case chmod refers to a folder)
u - setuid
g - setgid
t - "sticky bit"\\