我安装我的笔记本电脑的CentOS大约8个月前,我想知道什么时候正是我安装了它,我该怎么办,在CentOS的6.4?
我怎么可能无法通过su root
或su
(我收到错误的密码错误)以root身份登录,但我可以通过ssh root@localhost
或ssh root@my_local_IP
使用相同的密码登录?
我正在使用 CentOS 6.4。
cat /etc/pam.d/su
Run Code Online (Sandbox Code Playgroud)
给出:
#%PAM-1.0
auth sufficient pam_rootok.so
# Uncomment the following line to implicitly trust users in the "wheel" group.
#auth sufficient pam_wheel.so trust use_uid
# Uncomment the following line to require a user to be in the "wheel" group.
#auth required pam_wheel.so use_uid
auth include system-auth
account sufficient pam_succeed_if.so uid = 0 use_uid quiet
account include system-auth
password include system-auth …
Run Code Online (Sandbox Code Playgroud) 我想用文本文件中的另一个词替换一个词。
文件.txt :
alireza fallah
Run Code Online (Sandbox Code Playgroud)
我的代码:
cat file.txt | tr ali ALI
Run Code Online (Sandbox Code Playgroud)
但我明白了:
ALI fALLAh
Run Code Online (Sandbox Code Playgroud)
它将所有 'a's 替换为 'A' ,'l's 到 'L' 和 'i's 到 'I' 。
有什么方法可以将 'ali' 替换为 'ALI' 吗?
我想在我的右键菜单中添加一个项目,并在用户点击它时运行一个命令。
我正在使用 Centos 6.2,这可能吗?如果是,请告诉我如何做到这一点。
我想创建一个这样的文件:sshTOhost:
#!bin/bash
ssh -D 1500 user@host
#enter password (I don't know how)
Run Code Online (Sandbox Code Playgroud)