HPE GreenLake Administration
- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- how to disable root user ftp 、ssh和telnet
Operating System - HP-UX
1838365
Members
3122
Online
110125
Solutions
Forums
Categories
Company
Local Language
back
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
back
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
Discussion Boards
Blogs
Information
Community
Resources
Community Language
Language
Forums
Blogs
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-18-2009 02:04 AM
04-18-2009 02:04 AM
how to disable root user ftp 、ssh和telnet
1、version:11.31;
2、root user ftp and ssh disable;
3、all user telnet disable;
4、whichi conifg file ?
2、root user ftp and ssh disable;
3、all user telnet disable;
4、whichi conifg file ?
3 REPLIES 3
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-18-2009 02:41 AM
04-18-2009 02:41 AM
Re: how to disable root user ftp 、ssh和telnet
Hi,
2 you can create a /etc/securetty file with the console, root will only able to login from console or with "su - " and/or sudo to become root.
# echo console > /etc/securetty
3 - Comment out the following line in the /etc/inetd.conf and run "inetd -c" to let inetd reread the configuration file.
#telnet stream tcp6 nowait root /usr/lbin/telnetd telnetd
Regards,
Robert-Jan
2 you can create a /etc/securetty file with the console, root will only able to login from console or with "su - " and/or sudo to become root.
# echo console > /etc/securetty
3 - Comment out the following line in the /etc/inetd.conf and run "inetd -c" to let inetd reread the configuration file.
#telnet stream tcp6 nowait root /usr/lbin/telnetd telnetd
Regards,
Robert-Jan
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-19-2009 07:04 AM
04-19-2009 07:04 AM
Re: how to disable root user ftp 、ssh和telnet
Configure telnet and ftp to use tcpwrapper
man tcpd (you edit /etc/inetd.conf)
(It should be installed with 11.31 just not configured)
That way you use hosts.allow and hosts.deny
for SSH you have the sshd_config that should be able to prevent root or any other user logins via ssh.
man tcpd (you edit /etc/inetd.conf)
(It should be installed with 11.31 just not configured)
That way you use hosts.allow and hosts.deny
for SSH you have the sshd_config that should be able to prevent root or any other user logins via ssh.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-19-2009 10:08 PM
04-19-2009 10:08 PM
Re: how to disable root user ftp 、ssh和telnet
Hi,
>>2ã root user ftp and ssh disable;
Restrict root login to the console
/etc/securetty is used by the login command; the file contains the device names of tty lines (one per line,
without leading /dev/) on which root is allowed to login. We only allow the console.
# echo console > /etc/securetty
# chmod 400 /etc/securetty
>>3ã all user telnet disable;
Telnet disabled
This means telnet should not be running. Comment out telnet line in /etc/inetd.conf and run "inetd
-c" Test by trying to telnet to the host.
Suraj
>>2ã root user ftp and ssh disable;
Restrict root login to the console
/etc/securetty is used by the login command; the file contains the device names of tty lines (one per line,
without leading /dev/) on which root is allowed to login. We only allow the console.
# echo console > /etc/securetty
# chmod 400 /etc/securetty
>>3ã all user telnet disable;
Telnet disabled
This means telnet should not be running. Comment out telnet line in /etc/inetd.conf and run "inetd
-c" Test by trying to telnet to the host.
Suraj
The opinions expressed above are the personal opinions of the authors, not of Hewlett Packard Enterprise. By using this site, you accept the Terms of Use and Rules of Participation.
Company
Events and news
Customer resources
© Copyright 2025 Hewlett Packard Enterprise Development LP