2008年10月10日

客户有一台小型机为Tru64 UNIX系统版本为:Compaq Tru64 UNIX V5.0A (Rev. 1094)
由于root用户无法远程登陆,管理不太方便,所以按照网上相关文章进行了修改。
将/etc/securettys文件最后添加ptys,原始内容为:
# Secure tty data base model file.
#
# *****************************************************************
# * *
# * Copyright Compaq Computer Corporation
, 2000 *
# * *
# * The software contained on this media is proprietary to *
# * and embodies the confidential technology of Compaq *
# * Computer Corporation. Possession
, use, duplication or *
# * dissemination of the software and media is authorized only *
# * pursuant to a valid written license from Compaq Computer *
# * Corporation. *
# * *
# * RESTRICTED RIGHTS LEGEND Use
, duplication, or disclosure *
# * by the U.S. Government is subject to restrictions as set *
# * forth in Subparagraph (c)(
1)(ii) of DFARS 252.227-7013, *
# * or in FAR 
52.227-19, as applicable. *
# * *
# *****************************************************************
#
# HISTORY
#
# @(#)$RCSfile: securettys
,v $ $Revision: 1.1.5.4 $ (DEC) $Date: 1993/08/31 11:40:23 $
#
#
# (c) Copyright 
1990, 1991, 1992, 1993 OPEN SOFTWARE FOUNDATION, INC.
# ALL RIGHTS RESERVED
#
# OSF/
1 1.2
#
# /etc/securettys
#
# Note: Each entry in this file represents a device (secure device)
# from which root login is permitted. For
, pseudo ttys (ptys) a
# single keyword entry 
"ptys" means all ptys are to be treated as being
# secure. Note that the entry is 
"ptys" and not prefixed by /dev
# as is customary for the other physical devices. The absence of
# this key word implies that root login will not be permitted from
# all ptys. X displays are indicated with the display name.
#

/dev/console
local:
0
:
0

添加后非注释部分为:
/dev/console
local:
0
:
0
ptys


重新启动系统后,root还是无法远程登陆,继续网上搜索解决办法,说是要将远程登陆的ip添加进去,修改后为:
/dev/console
local:
0
192.168.0.1:0
ptys

重启系统后本机的图形界面都无法登陆root用户了,和过去远程root登陆的提示信息一样,其他用户可以登陆。
此时可以登陆的用户的权限都低,无法修改配置文件了,郁闷~~~
想起服务器开着ftp服务,试验了一下可以登陆root,哈哈,将/etc/securettys取下来,修改,上传,呵呵,还好可以修改了。按找印象讲文件内容修改回去,内容为:
/dev/console
local:
0
:
0

重启机器(这个时候无法重启了,因为可登陆的用户都没有关机的权限,直接按电源关的机器^_^),还是不能登陆,郁闷啊,印象中所有内容都一样啊:(
又仔细看了看文件内容,发现最后一行没有空行,是不是这个问题啊?试试,将文件最后加上了一个空行,重启系统......哈哈,本地root可以登陆了~~~~~
O(∩_∩)O哈哈~
按照这个思路,在文件结尾加上ptys,记得最后要有一个空行,重启系统,远程telnet也成功了。
大功告成,总结一下,配置文件最后要加一个空行才能使最后一行的配置生效。起码/etc/securettys是这样,呵呵

ps:由于原来没有用过Tru64 UNIX系统,不知道如何进入command line模式,在option按钮下有一个command line选项,选择后进入蓝色屏幕的命令行状态,还没输入什么就返回图形的登陆窗口了。其实在到蓝色屏幕的时候可以按下回车键,出现login:提示符,输入登陆的用户名和密码,就进入到command line模式了。不管在什么情况下在这里root都是可以登陆的,所以可以用root登陆进行关机或重启操作,千万不要像我那样强行关机啊,对机器是有损害的,可能丢失数据。
command line模式下想返回图形模式时按ctrl+B

Tru64 UNIX开机时会先到一个三个大于号的状态,要输入boot才能启动,或者直接输入b也可以。此时还可以启动系统的另一个内核,一般在无法登陆原系统时使用,命令为:
b -fi genvmunix 

posted @ 2008-10-10 22:13 cft 阅读(555) | 评论 (0)编辑 收藏


2008年8月15日

最近发现在weblogic9和10下使用request.getInputStream()取不到数据,weblogic8下就没有问题,不知道怎么回事,问了好多人都没遇到过,到现在也没有解决,哪位高人给找找原因啊?

posted @ 2008-08-15 14:50 cft 阅读(516) | 评论 (1)编辑 收藏


仅列出标题  

posts - 2, comments - 1, trackbacks - 0, articles - 0

Copyright © cft