- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: how to liminit root to telnet the host?
Categories
Company
Local Language
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
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
Community
Resources
Forums
Blogs
- 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
12-12-2004 10:17 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-12-2004 10:23 PM
12-12-2004 10:23 PM
Solutionyou have a number of ways.
/etc/securetty
THe list of the console root is allowed to log in.
Here you can allow root to the accessed just from the console, for example.
Install ssh and use it as the only way to login.
Install and configure tcp wrappers (never done by myself, but could be usefull to prevent logins.)
/var/adm/inetd.sec
to allow hosts to connect to the server..
HTH,
Massimo
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-12-2004 10:24 PM
12-12-2004 10:24 PM
Re: how to liminit root to telnet the host?
Stf ;-)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-12-2004 10:24 PM
12-12-2004 10:24 PM
Re: how to liminit root to telnet the host?
/etc/securetty is used to define terminals where root can login directly (= without su). It should only contains /dev/console.
regards,
Thierry Poels.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-12-2004 10:51 PM
12-12-2004 10:51 PM
Re: how to liminit root to telnet the host?
vi /etc/securetty
console=/dev/console
wq!
but how can i get more help about /etc/securetty?
because man securetty not work.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-12-2004 11:06 PM
12-12-2004 11:06 PM
Re: how to liminit root to telnet the host?
Refer to the links below:
http://www.faqs.org/docs/securing/chap5sec41.html
http://server1.belchfire.net/protected-cgi-bin/manServer_107.pl/usr/share/man/man5/securetty.5
Hope that helps.
Regards,
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-12-2004 11:24 PM
12-12-2004 11:24 PM
Re: how to liminit root to telnet the host?
# man login
Mike
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-12-2004 11:35 PM
12-12-2004 11:35 PM
Re: how to liminit root to telnet the host?
If the /etc/securetty file is present, login security is in effect.
Only user root is allowed to log in successfully on the ttys listed in
this file. Restricted ttys are listed by device name, one per line.
Valid tty names are dependent on the installation. An example is
console
tty01
ttya1
etc.
###########################
Also
if you want to restrict users to su to root to a specific group use "SU_ROOT_GROUP" in /etc/default/security
Regards
Jean-Luc
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-13-2004 01:09 AM
12-13-2004 01:09 AM
Re: how to liminit root to telnet the host?
if [[ "$LOGNAME" = "root" ]]
then
if [[ $(ps | grep -q telnet) -eq 0 ]]
then
echo "root login with telnet is denied"
echo "contact informations"
sleep 3
fi
fi
Ultimate way is using /etc/securetty file. More informations will be in login man page.
HTH.