Chapter 11. Permissions and User and Group ID Numbers

In this chapter

  • 11.1 Checking Permissions page 404

  • 11.2 Retrieving User and Group IDs page 407

  • 11.3 Checking as the Real User: access() page 410

  • 11.4 Checking as the Effective User: euidaccess() (GLIBC) page 412

  • 11.5 Setting Extra Permission Bits for Directories page 412

  • 11.6 Setting Real and Effective IDs page 415

  • 11.7 Working with All Three IDs: getresuid() and setresuid() (Linux) page 421

  • 11.8 Crossing a Security Minefield: Setuid root page 422

  • 11.9 Suggested Reading page 423

  • 11.10 Summary page 424

  • Exercises page 426

Linux, following Unix, is a multiuser system. Unlike most operating systems for personal computers,[1] in which there is only one user and whoever is physically in front of the computer ...

Get Linux® Programming by Example now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.