首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >当使用rsh时,我得到提示输入密码,但其他SLES12服务器在没有提示密码的情况下工作。

当使用rsh时,我得到提示输入密码,但其他SLES12服务器在没有提示密码的情况下工作。
EN

Server Fault用户
提问于 2021-03-02 16:32:53
回答 1查看 170关注 0票数 0
代码语言:javascript
复制
[ 2 root ] $ cat /etc/securetty
#
# This file contains the device names of tty lines (one per line,
# without leading /dev/) on which root is allowed to login.
#
tty1
tty2
tty3
tty4
tty5
tty6
rsh
rlogin
rexec
代码语言:javascript
复制
[ 3 root ] $ cat /etc/xinetd.d/rsh
# default: off
# description:
# The rshd server is a server for the rcmd(3) routine and,
# consequently, for the rsh(1) program. The server provides
# remote execution facilities with authentication based on
# privileged port numbers from trusted hosts.
#
service shell
{
        socket_type     = stream
        protocol        = tcp
        flags           = NAMEINARGS
        wait            = no
        user            = root
        group           = root
        log_on_success  += USERID
        log_on_failure  += USERID
        server          = /usr/sbin/tcpd
#       server_args     = /usr/sbin/in.rshd -L
        server_args     = /usr/sbin/in.rshd -aL
        disable         = no
}
代码语言:javascript
复制
[ 4 root ] $ cat /etc/xinetd.d/rlogin
# default: off
# description:
# Rlogind is a server for the rlogin program. The server provides remote
# execution with authentication based on privileged port numbers from trusted
# host
#
service login
{
        socket_type     = stream
        protocol        = tcp
        flags           = NAMEINARGS
        wait            = no
        user            = root
        group           = root
        log_on_success  += USERID
        log_on_failure  += USERID
        server          = /usr/sbin/tcpd
        server_args     = /usr/sbin/in.rlogind
#       server_args     = /usr/sbin/in.rlogind -a
        disable         = no
}

问题在此:

代码语言:javascript
复制
XXXXXXX2003:db2pb1 51> rsh XXXXXX2001
Local Password: /*Eventhough it's empty password phrase, but it shouldn't prompt*/
Last login: Tue Mar  2 16:23:06 from 
Directory: /db2/db2pb1
Tue Mar  2 16:23:06 UTC 2021

在开始的时候,它甚至不能工作,因为我已经复制了下面的三个文件来成功地实现rsh登录。

代码语言:javascript
复制
db2pb1 51> ll /usr/sbin/in.rexecd
-rwxr-xr-x 1 root root 15136 Mar  2 11:30 /usr/sbin/in.rexecd
-rwxr-xr-x 1 root root 23512 Mar  2 11:30 /usr/sbin/in.rlogind
-rwxr-xr-x 1 root root 23840 Mar  2 11:30 /usr/sbin/in.rshd
EN

回答 1

Server Fault用户

发布于 2021-03-23 09:36:58

在从另一个正在工作的系统复制rsh & rlogin的pam.d文件后,我解决了这个问题。把问题解决了。

票数 0
EN
页面原文内容由Server Fault提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://serverfault.com/questions/1055671

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档