首页 > 其他分享 >pam插件之su

pam插件之su

时间:2024-11-19 17:10:47浏览次数:1  
标签:插件 group su etc session so pam

 

 

mtli:/etc/pam.d# cat su
#
# The PAM configuration file for the Shadow `su' service
#

# This allows root to su without passwords (normal operation)
#auth       sufficient pam_rootok.so

# Uncomment this to force users to be a member of group root
# before they can use `su'. You can also add "group=foo"
# to the end of this line if you want to use a group other
# than the default "root" (but this may have side effect of
# denying "root" user, unless she's a member of "foo" or explicitly
# permitted earlier by e.g. "sufficient pam_rootok.so").
# (Replaces the `SU_WHEEL_ONLY' option from login.defs)
# auth       required   pam_wheel.so

# Uncomment this if you want wheel members to be able to
# su without a password.
# auth       sufficient pam_wheel.so trust

# Uncomment this if you want members of a specific group to not
# be allowed to use su at all.
# auth       required   pam_wheel.so deny group=nosu

# Uncomment and edit /etc/security/time.conf if you need to set
# time restrainst on su usage.
# (Replaces the `PORTTIME_CHECKS_ENAB' option from login.defs
# as well as /etc/porttime)
# account    requisite  pam_time.so

# This module parses environment configuration file(s)
# and also allows you to use an extended config
# file /etc/security/pam_env.conf.
# 
# parsing /etc/environment needs "readenv=1"
session       required   pam_env.so readenv=1
# locale variables are also kept into /etc/default/locale in etch
# reading this file *in addition to /etc/environment* does not hurt
session       required   pam_env.so readenv=1 envfile=/etc/default/locale

# Defines the MAIL environment variable
# However, userdel also needs MAIL_DIR and MAIL_FILE variables
# in /etc/login.defs to make sure that removing a user 
# also removes the user's mail spool file.
# See comments in /etc/login.defs
#
# "nopen" stands to avoid reporting new mail when su'ing to another user
session    optional   pam_mail.so nopen

# Sets up user limits according to /etc/security/limits.conf
# (Replaces the use of /etc/limits in old login)
session    required   pam_limits.so

# The standard Unix authentication modules, used with
# NIS (man nsswitch) as well as normal /etc/passwd and
# /etc/shadow entries.
@include common-auth
@include common-account
@include common-session

 

标签:插件,group,su,etc,session,so,pam
From: https://www.cnblogs.com/limt/p/18555213

相关文章

  • 博客园-awescnb插件-geek皮肤优化-logo添加
    ......
  • CF837D Round Subset
    【刷题笔记】RoundSubset思路考虑最朴素的可行性\(DP\),设\(f_{i,j,x,y}\)表示前\(i\)个数,选了\(j\)个数,其中有\(x\)个\(5\)\(y\)个\(2\)时是否合法,但是枚举时间复杂度为\(O(n*k*n*log_5^{10^{18}}*n*log_2^{10^{18}})\)即\(O(n^3*k*log_5^{10^{18}}*log_2^{10^......
  • 【IDER、PyCharm】智能AI编程工具完整教程:ChatGPT Free - Support Key call AI GPT-o1
    文章目录CodeMoss简介CodeMoss的模型集成如何安装和配置CodeMossIDER插件安装步骤CodeMoss的实战使用AI问答功能代码优化与解释优化这段代码解释这段代码文件上传与对话联网查询与GPT助手联网查询GPT助手提升开发效率的最佳实践结语更多文献CodeMoss......
  • RTSP播放器EasyPlayer.js无插件直播流媒体音视频播放器如何在electron中播放视频
    随着科技的飞速发展,流媒体技术已经成为我们日常生活中不可或缺的一部分。从视频娱乐到在线教育,从远程办公到物联网应用,流媒体技术的广泛应用正深刻改变着我们的生活方式。EasyPlayerH.264/H.265播放器属于一款高效、精炼、稳定且免费的流媒体播放器,可支持多种流媒体协议播放,无......
  • 无插件H5播放器EasyPlayer.js视频流媒体播放器如何开启electron硬解码Hevc(H265)
    在数字化时代,流媒体播放器技术正经历着前所未有的变革。随着人工智能、大数据、云计算等技术的融合,流媒体播放器的核心技术不断演进,为用户提供了更加丰富和个性化的观看体验。EasyPlayer.jsH5播放器,是一款能够同时支持HTTP、HTTP-FLV、HLS(m3u8)、WS、WEBRTC、FMP4视频直播与视频......
  • Sublime Text4 4180 安装激活
    介绍:此教程用于Windows下SublimeText44180版本的安装和激活。无需安装其他软件,无需下载替换文件,无需注册机等。官网:https://www.sublimetext.com下载地址https://download.sublimetext.com/sublime_text_build_4180_x64_setup.exe激活:默认安装路径:C:\ProgramFiles\Subli......
  • net MVC ActionResultObjectValueAttribute
    MVC返回结果IActionResultIActionResult派生类如下......
  • [1078] To import an existing Python environment in Visual Studio Code (VSCode)
    ToimportanexistingPythonenvironmentinVisualStudioCode,followthesesteps:1.**OpenVisualStudioCode**.2.**OpentheCommandPalette**:  -Press`Ctrl+Shift+P`(Windows/Linux)or`Cmd+Shift+P`(macOS).3.**Searchforandselect"Python......
  • ISUP协议视频平台EasyCVR私有化视频平台新能源汽车充电停车管理方案的创新与实践
    在环保意识提升和能源转型的大背景下,新能源汽车作为低碳出行的选择,正在全球迅速推广。但这种快速增长也引发了充电基础设施短缺和停车秩序混乱等挑战,特别是在城市中心和人口密集的居住区,这些问题更加明显。因此,开发一套高效、智能化的新能源汽车充电与停车管理系统变得十分关键。......
  • 0day通达OA qyapp.vote.submit.php接口存在SQL注入漏洞
     0x01产品概述    0day通达OAqyapp.vote.submit.php接口存在SQL注入漏洞管理和发布于一体的智能化平台,广泛应用于新闻、媒体和各类内容创作机构。该平台支持多终端、多渠道的内容分发,具备素材管理、编辑加工、智能审核等功能,通过AI技术辅助内容创作与数据分析,提升内......