- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: non-root user using TCP port
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
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
тАО07-09-2009 12:44 AM
тАО07-09-2009 12:44 AM
non-root user using TCP port
I have a hp-ux 11.23 v2 server
my customer, he want to 433 port open.
because his application runing 433 port.
So, i have to open the port using non-root user.
i tried as below:
#ndd -set /dev/tcp tcp_smallest_nonpriv_port 80
but occurred an error message
=> operation failed, Invalid argument.
let me know..please...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-09-2009 01:40 AM
тАО07-09-2009 01:40 AM
Re: non-root user using TCP port
add below port number to /etc/services
application identification 433/tcp.
check whether the port listening using netstat.
# netstat -an|grep 433
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-09-2009 02:06 AM
тАО07-09-2009 02:06 AM
Re: non-root user using TCP port
We use /etc/services file for mentioning the ports in the OS.
If you need the port 433, add an entry in the /etc/services file.
ftp 21/tcp # File Transfer Protocol (Control)
Then try to check with the application.If it doesn't work, you can use the following command to make sure that the port 433 is in listen state
#netstat -an |grep 433
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-09-2009 04:25 AM
тАО07-09-2009 04:25 AM
Re: non-root user using TCP port
> #ndd -set /dev/tcp tcp_smallest_nonpriv_port 80
don't do that
your system need reserved ports for nfs, rcmds ....
on 11.31 you have fine grain priviledge which can permit you to do this as you can grant to a group of user the priovilege to open a priv port.
else, the only way is to use a setuid bit, or a coprocess which bind and pass it to your application through a unix domain socket with sendmsg() and access rights.
you can do that type of thing with inetd.
you define in /etc/services
myport 443/tcp
and inetd.conf
myport stream tcp swait myuser /mydir/bin/myapplication myapplication myapplicationparams
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-09-2009 04:13 PM
тАО07-09-2009 04:13 PM
Re: non-root user using TCP port
thanks a lot.
i found it.
this is Sudo.
So, i will install sudo.
thank you
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-09-2009 07:22 PM
тАО07-09-2009 07:22 PM
Re: non-root user using TCP port
What is "his application"?
> add below port number to /etc/services
> [...] add an entry in the /etc/services file.
> you define in /etc/services
Do you people _really_ believe that an entry
in /etc/services is needed to use a port?
> application identification 433/tcp.
>
> myport 443/tcp
Did anyone say that "his application" used
TCP?
"your application name"? So, Apache should have an entry like "Apache 80/tcp"?
_PLEASE_ give /etc/services a rest. It
doesn't need this kind of "help".
> this is Sudo.
That could be a good thing to use. (Better
than much of the advice which you'll see
here.)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-10-2009 02:41 AM
тАО07-10-2009 02:41 AM
Re: non-root user using TCP port
What did you really mean....
can you pls brief ,what is the use of /etc/services in hp unix
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-10-2009 02:46 AM
тАО07-10-2009 02:46 AM
Re: non-root user using TCP port
- on all other system it is the same. There is no specificity on HPUX.
it is only the file used by getservbyname() to match a service name with a port number.
It is just a naming facility!
now once it is defined in /etc/services you can use in inetd.conf, and make your service start by inetd like I wrote.
But declaring it in /etc/services doesn't reserve the port, nor start a service.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-10-2009 02:47 AM
тАО07-10-2009 02:47 AM
Re: non-root user using TCP port
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-10-2009 02:48 AM
тАО07-10-2009 02:48 AM