- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Can any user bind port <1024
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
09-20-2002 10:06 AM
09-20-2002 10:06 AM
Can any user bind port <1024
I hv a doubt & it goes as follows,
-- Can any user bind port number less than 1024
-- If i start an application (tomcat-servelett engine) to listen on port 80 by a normal user, Is that going to fail ?
Kapil Raj
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-20-2002 10:08 AM
09-20-2002 10:08 AM
Re: Can any user bind port <1024
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-20-2002 10:15 AM
09-20-2002 10:15 AM
Re: Can any user bind port <1024
Kapil
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-20-2002 10:29 AM
09-20-2002 10:29 AM
Re: Can any user bind port <1024
Yes. Only superuser can bind port < 1024.
OAS is either invoked by root to bind the port before it changes to another user, or the application uses setuid execution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-20-2002 10:29 AM
09-20-2002 10:29 AM
Re: Can any user bind port <1024
The so-called "well-known-ports" fall into the range below 1024 and cannot be bound unless the *effective* uid of the process is root's.
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-20-2002 10:37 AM
09-20-2002 10:37 AM
Re: Can any user bind port <1024
if u masters are so confident on it . I still hv to convince myself & the only way to accomplish that is to check up how OAS is started in my environment.
kaps
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-20-2002 10:43 AM
09-20-2002 10:43 AM
Re: Can any user bind port <1024
From /usr/include/netinet/in.h
/*
* Ports < IPPORT_RESERVED are reserved for
* privileged processes (e.g. root).
* Ports > IPPORT_USERRESERVED are reserved
* for servers, not necessarily privileged.
*/
#define IPPORT_RESERVED 1024
Make sure your effective UID isn't really root (e.g. is the program setuid?).
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-20-2002 11:24 AM
09-20-2002 11:24 AM
Re: Can any user bind port <1024
Only superuser binds ports less than 1024.
Now, do you have any entry for OAS in your /etc/inetd.conf file for a lower port number.
I believe your OAS application is executed using super user rights while startup if it doesn't start using inetd.
Regards,
Anil
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-21-2002 04:52 AM
09-21-2002 04:52 AM
Re: Can any user bind port <1024
No user can bind to a port below that unless they use setuid.