- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - Linux
- >
- Restrict Root access by IP address
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
01-18-2007 06:54 PM
01-18-2007 06:54 PM
Restrict Root access by IP address
Please advise how best to achieve this.
Thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-18-2007 08:30 PM
01-18-2007 08:30 PM
Re: Restrict Root access by IP address
If it's one of above - you can achieve this easily with /etc/hosts.deny (to deny login) or /etc/hosts.allow to allow login.
see examples here:
http://www.rhce2b.com/clublinux/RHCE-33.shtml
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-18-2007 08:40 PM
01-18-2007 08:40 PM
Re: Restrict Root access by IP address
Better you configure SSH and restrict root login from anywhere....
What you can do is that you can create a common user account and from that you can "su" to your root account.
In /etc/ssh/sshd_config file, add a clause which is -- AllowUsers
There's a clause which is PermitRootLogin, we need to set it to "no" to restrict root access.
I'm attaching a sample file for you which you can take a look at it.....
Do let me know bout any queries...
Atul
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-18-2007 08:45 PM
01-18-2007 08:45 PM
Re: Restrict Root access by IP address
i do the same with IPTables.
http://www.netfilter.org/projects/iptables/index.html
Regards.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-19-2007 09:38 AM
01-19-2007 09:38 AM
Re: Restrict Root access by IP address
Set up the /etc/securetty file for console only.
Direct login as root is allowed only from console. Users can 'su -' to the root account.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-21-2007 04:25 PM
01-21-2007 04:25 PM
Re: Restrict Root access by IP address
Alexander
We are using telnet to login. form what I understand the host.allow and hosts.deny allows one to control what networks can have access. In my case I would want everyone to have access to the server but restrict direct login to root to a few specific IP addresses. I am not clear on how one would do this in these files - can "root" be used as a service keyword ?
Atul
I will have to investigate SSH - never set this up before. I can't open your attachment (I am on a very slow link...)
Alpha977
I will have to investigate iptables as I have never used this function.
Rick
I am using HPUX11 and do not have a /etc/securetyy file - should this be available un HPUX ?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-31-2007 07:10 PM
01-31-2007 07:10 PM