2008年8月15日

          客戶有一臺小型機為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 閱讀(569) | 評論 (0)編輯 收藏

          最近發現在weblogic9和10下使用request.getInputStream()取不到數據,weblogic8下就沒有問題,不知道怎么回事,問了好多人都沒遇到過,到現在也沒有解決,哪位高人給找找原因啊?

          posted @ 2008-08-15 14:50 cft 閱讀(542) | 評論 (1)編輯 收藏


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

          Copyright © cft

          主站蜘蛛池模板: 昂仁县| 河西区| 房山区| 沾益县| 金秀| 惠水县| 北京市| 罗田县| 察隅县| 北川| 辛集市| 南乐县| 平武县| 深水埗区| 望奎县| 沛县| 台中市| 卓尼县| 和田县| 陕西省| 微博| 石渠县| 清新县| 石楼县| 西贡区| 浠水县| 东宁县| 石景山区| 罗江县| 财经| 榆树市| 郴州市| 湾仔区| 惠安县| 长寿区| 泊头市| 体育| 建平县| 上高县| 瑞金市| 三门峡市|