C++ CSS HTML Java JavaScript MySQL Oracle PERL PHP SQL Unix VBScript XHTML XML Сети
PAM and Device Ownership
 

14.6. PAM and Device Ownership

by a PAM module called pam_console.so.

14.6.1. Device Ownership

When a user logs into a machine under Red Hat Linux, the pam_console.so module is called by login or the graphical login programs, gdm and kdm. If this user is the first user to log in at the physical console — called the console user— the module grants the user ownership of a variety of devices normally owned by root. The console user owns these devices until the last local session for that user ends. Once the user has logged out, ownership of the devices reverts back to the root user.

The devices affected include, but are not limited to, sound cards, diskette drives, and CD-ROM drives.

By modifying the file /etc/security/console.perms, the administrator can edit the list of devices controlled by pam_console.so.

14.6.2. Application Access

The console user is also allowed access to certain programs with a file bearing the command name in the /etc/security/console.apps/ directory.

One notable group of applications the console user has access to are three programs which shut off or reboot the system. These are:

Because these are PAM-aware applications, they call the pam_console.so module as a requirement for use.

For more information, refer to the man pages for pam_console, console.perms, console.apps, and userhelper.

Главная