zoukankan      html  css  js  c++  java
  • 普通用户su到root免密码

    方法1:

    运行visudo(或者vi /etc/sudoers)命令
    在## Same thing without a password
    # %wheel        ALL=(ALL)       NOPASSWD: ALL
    下方添加一个类似的行
    oracle ALL=(ALL)       NOPASSWD: ALL
    方法2:
    vi /etc/pam.d/su
     将 auth这一列的注释号 去除
    # Uncomment the following line to implicitly trust users in the "wheel" group.
    auth            sufficient      pam_wheel.so trust use_uid
    然后将登陆用户加入 wheel组
    usermod -G wheel oracle

    https://blog.csdn.net/u011334621/article/details/52337759

  • 相关阅读:
    Liunx cal
    Liunx read
    IOS
    IOS
    ARPSpoofing教程(四)
    ARPSpoofing教程(三)
    ARPSpoofing教程(二)
    数据结构与算法分析
    hdu 2034
    hdu 2042
  • 原文地址:https://www.cnblogs.com/i-shu/p/11349615.html
Copyright © 2011-2022 走看看