- 论坛徽章:
- 0
|
最近发现一个问题,krb5-telnet的启用与禁用会影响用户的变量,但是不晓得为什么,在此发帖求解。
系统是rhel4,使用telnet远程登录
启用krb5-telnet
[myname@myhost ~]$ cat /etc/xinetd.d/krb5-telnet
# default: off
# description: The kerberized telnet server accepts normal telnet sessions, \
# but can also use Kerberos 5 authentication.
service telnet
{
disable = no
flags = REUSE
socket_type = stream
wait = no
user = root
server = /usr/kerberos/sbin/telnetd
log_on_failure += USERID
}
[myname@myhost ~]$ set >1
禁用krb5-telnet
[myname@myhost ~]$ cat /etc/xinetd.d/krb5-telnet
# default: off
# description: The kerberized telnet server accepts normal telnet sessions, \
# but can also use Kerberos 5 authentication.
service telnet
{
disable = yes
flags = REUSE
socket_type = stream
wait = no
user = root
server = /usr/kerberos/sbin/telnetd
log_on_failure += USERID
}
[myname@myhost ~]$ set >2
变量比较
[myname@myhost ~]$ diff 1 2
24d23
< KRB5CCNAME=FILE:/tmp/krb5cc_p13284
28d26
< LOGIN=myname
37c35
< PATH=/usr/kerberos/bin:/usr/bin:/bin:/usr/X11R6/bin:/home/myname/bin
---
> PATH=/usr/kerberos/bin:/usr/local/bin:/bin:/usr/bin:/usr/X11R6/bin:/home/myname/bin
39c37
< PPID=13284
---
> PPID=13333
43a42
> REMOTEHOST=192.168.0.8
52c51
< _=/etc/xinetd.d/krb5-telnet
---
> _=--color=tty
。 |
|