- Community Home
- >
- HPE Community, Taiwan
- >
- HP-UX
- >
- 系統管理
- >
- 关于telnet的问题
類別
Company
Local Language
論壇
討論平台
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
論壇
部落格
- 訂閱此主題的RSS 提要
- 將此主題標記為未讀
- 將主題標記為已讀
- 將主題在本帳號置頂
- 標示為書籤
- 訂閱此主題
- 列印此頁
- 將文章標記為未讀
- 標示為書籤
- 訂閱此主題
- 靜音
- 訂閱此主題的RSS 提要
- 高亮顯示此文章
- 列印此文章
- 提報不當內容
在 01-13-2005 12:01 PM
在 01-13-2005 12:01 PM
关于telnet的问题
出于安全角度考虑,能有什么方法在系统里面禁止某些用户登录吗?
谢谢大家!
- 將文章標記為未讀
- 標示為書籤
- 訂閱此主題
- 靜音
- 訂閱此主題的RSS 提要
- 高亮顯示此文章
- 列印此文章
- 提報不當內容
在 01-13-2005 12:22 PM
在 01-13-2005 12:22 PM
关于telnet的问题
If you like deny the telnet service by IP address, you can set it up on /var/adm/inetd.sec file.
Such as I add one line as follows in /var/adm/inetd.sec file,
telnet deny 16.157.177.10 16.157.175.66
then user can not telnet from 16.157.177.10 and 16.157.175.66 intp my system.
For more detail, please reference man page by
# man inetd.sec
..
.
- 將文章標記為未讀
- 標示為書籤
- 訂閱此主題
- 靜音
- 訂閱此主題的RSS 提要
- 高亮顯示此文章
- 列印此文章
- 提報不當內容
在 01-13-2005 12:41 PM
在 01-13-2005 12:41 PM
关于telnet的问题
那请问我可以通过修改什么参数而不用禁止IP登录的方式来实现某个用户不能登录呢?可以帮我吗?
以前在网上听人说可以写一段代码加在.profile上面去使其自动去判断是不是要禁止的用户登录,从而杀掉该进程!让这个用户不能登录!
可以讨论吗?
再次谢谢你们对我问题的关注!
- 將文章標記為未讀
- 標示為書籤
- 訂閱此主題
- 靜音
- 訂閱此主題的RSS 提要
- 高亮顯示此文章
- 列印此文章
- 提報不當內容
在 01-13-2005 12:51 PM
在 01-13-2005 12:51 PM
关于telnet的问题
- 將文章標記為未讀
- 標示為書籤
- 訂閱此主題
- 靜音
- 訂閱此主題的RSS 提要
- 高亮顯示此文章
- 列印此文章
- 提報不當內容
在 01-13-2005 12:53 PM
在 01-13-2005 12:53 PM
关于telnet的问题
- 將文章標記為未讀
- 標示為書籤
- 訂閱此主題
- 靜音
- 訂閱此主題的RSS 提要
- 高亮顯示此文章
- 列印此文章
- 提報不當內容
在 01-13-2005 01:07 PM
在 01-13-2005 01:07 PM
关于telnet的问题
Have a try on this.
hputaia:/#tail -3 /etc/profile
case "$(whoami)" in
user1|user2) exit;;
esac
user1 and user2 can not login.
..
.
- 將文章標記為未讀
- 標示為書籤
- 訂閱此主題
- 靜音
- 訂閱此主題的RSS 提要
- 高亮顯示此文章
- 列印此文章
- 提報不當內容
在 01-13-2005 01:37 PM
在 01-13-2005 01:37 PM
关于telnet的问题
tail -3 /etc/profile
case "$(whoami)" in
user1|user2) exit;;
esac
老兄,user1|user2) exit;; 这一句有笔误吗?
我正在调试!
ericfjchen:
是呀,比如现在我的机器上有test这个用户,现在我想禁止test这个用户登录。
- 將文章標記為未讀
- 標示為書籤
- 訂閱此主題
- 靜音
- 訂閱此主題的RSS 提要
- 高亮顯示此文章
- 列印此文章
- 提報不當內容
在 01-13-2005 01:45 PM
在 01-13-2005 01:45 PM
关于telnet的问题
if
then
exit
fi
那這些 account 就無法 login
- 將文章標記為未讀
- 標示為書籤
- 訂閱此主題
- 靜音
- 訂閱此主題的RSS 提要
- 高亮顯示此文章
- 列印此文章
- 提報不當內容
在 01-13-2005 01:47 PM
在 01-13-2005 01:47 PM
关于telnet的问题
# vipw
snoopy:BxFrrjuYj/Fk:888:888::/home/dcse:/usr/bin/ksh
將snoopy最後的/usr/bin/ksh替換為/usr/bin/false
然後存檔,
接下來做一個telnet 測試.
root@it2 /> telnet 0
Trying...
Connected to 0.
Escape character is '^]'.
Local flow control on
Telnet TERMINAL-SPEED option ON
HP-UX it2 B.11.11 U 9000/800 (td)
login: snoopy
Password:
Connection closed by foreign host.
root@it2 />
user自然就無法telnet進系統了, 同時要檢查user帳號下是否存在有.rhosts檔案, 如果有, 記得檢查該檔案內容.
- 將文章標記為未讀
- 標示為書籤
- 訂閱此主題
- 靜音
- 訂閱此主題的RSS 提要
- 高亮顯示此文章
- 列印此文章
- 提報不當內容
在 01-13-2005 02:00 PM
在 01-13-2005 02:00 PM
关于telnet的问题
I cust it as attachment.