- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Securing /etc/services...needed ? Or it's only use...
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
Discussions
Discussions
Discussions
Forums
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
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
тАО05-30-2003 07:15 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-30-2003 07:22 AM
тАО05-30-2003 07:22 AM
SolutionThere's nothing to secure here. The file maps official service names and port numbers. The presence or absence of an entry doesn't prevent me from using a port number for my private application. If I did, however, I would prevent the intended service (process) from running since the port would be inuse.
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-30-2003 07:25 AM
тАО05-30-2003 07:25 AM
Re: Securing /etc/services...needed ? Or it's only used as a reference.
By default when doing security, if you don't know what it do, remove it. Lots's of inputs in /etc/services comes from the old ages of UNIX (who still use fingerd). So I think you don't have to really cares of because it is more for informations than anythings else, it is better to remove the service from inetd.conf.
Cheers.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-30-2003 07:29 AM
тАО05-30-2003 07:29 AM
Re: Securing /etc/services...needed ? Or it's only used as a reference.
All that really happens is that a call to getservbyname() passing in the service name (e.g. "telnet") and a protocol (e.g. tcp) and a numerical value is returned. If the getservbyname() fails then a default numerical value is used. The attacker is almost certainly going to use the port number directly.
As an example, you could remove the telnet 23/tcp entry from /etc/services and still be able to telnet into the box. Only when the SERVICE (in /etc/inetd.conf) is disabled will telnet be disabled.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-30-2003 09:29 AM
тАО05-30-2003 09:29 AM
Re: Securing /etc/services...needed ? Or it's only used as a reference.
Can you confirm your statement about remming out the telnet service in /etc/services and still being able to telnet to the box ? Cause I've tried it and it does in fact need to be there in order to telnet in the box.
There might be another reason for this though.
This is why I don't want to disable 99% of the services and then seeing stuff happen.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-30-2003 09:39 AM
тАО05-30-2003 09:39 AM
Re: Securing /etc/services...needed ? Or it's only used as a reference.
telnet myhost 23
When you supply a portnumber, telnet wil instantly connect eventhough the service is not defined. That's why playing with /etc/services is a complete waste of time; at best, it will offer the illusion of security but will provide absolutely no defense against a real attack.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-30-2003 09:44 AM
тАО05-30-2003 09:44 AM
Re: Securing /etc/services...needed ? Or it's only used as a reference.
I would assume that for all the other services, it would be the same thing. (doesn't matter if it's commented out or not.)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-30-2003 10:17 AM
тАО05-30-2003 10:17 AM
Re: Securing /etc/services...needed ? Or it's only used as a reference.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-30-2003 10:43 AM
тАО05-30-2003 10:43 AM
Re: Securing /etc/services...needed ? Or it's only used as a reference.
Just to know what you broke by commenting out telnet in /etc/services, try to telnet to another box from the same machine. You should get "unknown service" error.
As mentioned, /etc/services is not really what you want to touch but /etc/inetd.conf to disable|control inetd related services. If you want to have these services but would like to restrict them to selected machines, use /var/adm/inetd.sec file.
-Sri
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-31-2003 05:58 AM
тАО05-31-2003 05:58 AM
Re: Securing /etc/services...needed ? Or it's only used as a reference.
To increase the security of your system, I think you should target /etc/inetd.conf and not /etc/services.
The /etc/services is typically used by getservent() system call " to read the next line of network services database". Disabling anything in /etc/services would prevent your system from knowing the ports to communicate with other systems, but the other systems would still be able to use the services available on your box.
Just to share, what I do at my place, we enable only ftp and telnet (basic unix services )via /etc/inetd.conf as part of initial system set-up. Later on as we go on installing applications like "IBM mqueue", "BMC best1 6.5", etc.. newer entries would appear in /etc/inetd.conf.
Hope this helps'
Suhas