The role of $isa variables in the PAM module of Suselinux

Source: Internet
Author: User

Purpose: to restrict non-wheel users from switching to root

method:vi/etc/pam.d/su file, add the following two lines

Auth sufficient/lib/security/pam_rootok.so
Auth required/lib/security/pam_wheel.so Group=wheel

Result: users who joined wheel cannot switch to root, prompting for incorrect password

FIX: Modify auth required/lib/security/pam_wheel.so group=wheel

For auth required/lib/security/$ISA/pam_wheel.so group=wheel

Analysis: The $ISA variable is a built-in variable for Pam that automatically identifies the platform architecture of the system. (Original: The $ISA token is a PAM builtin this automatically looks for modules of the correct architecture, such as 32- Bit or 64-bit).

System environment:

bash-4.3# uname-ipmo
x86_64 x86_64 x86_64 Gnu/linux

-M,--machine
Print the machine hardware name
-P,--processor
Print the processor type or "Unknown"
-I.,--hardware-platform
Print the hardware platform or "unknown"
-O,--operating-system
Print the operating system

The role of $isa variables in the PAM module of Suselinux

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.