zoukankan      html  css  js  c++  java
  • Centos实战 / su: cannot open session: Permission denied

    centos su - 用户名 su: cannot open session: Permission denied

    刚才用文章CentOS创建sudo用户创建了一个账号lwk,然后用su - lwk命令的时候报错了。

    -bash-4.2$ su - lwk
    Password: 
    Last failed login: Thu Jun 28 15:39:52 CST 2018 from 36.24.223.44 on ssh:notty
    There was 1 failed login attempt since the last successful login.
    su: cannot open session: Permission denied
    -bash-4.2$

    经多方查找,终于解决了访问题。解决思路如下:
    编辑文件/etc/security/limits.conf,在文件末尾追加如下内容:

    lwk soft nofile 65535
    lwk hard nofile 65535

    其中,lwk是打算用su - lwk命令进行切换用户的用户名。

  • 相关阅读:
    expandafter
    又回到了kde
    朗读软件
    tex bookmarks
    vim命令执行时间
    vim,tex的编译
    utorrent
    火狐的扩展
    linux 无线指示灯闪
    tex溢出报警
  • 原文地址:https://www.cnblogs.com/telwanggs/p/13707657.html
Copyright © 2011-2022 走看看