The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Dummies Questions & Answers
Google UNIX.COM


UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !!

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
USB Ports eggfoot UNIX for Dummies Questions & Answers 1 04-22-2008 10:19 AM
Ports... TechKnow UNIX for Dummies Questions & Answers 5 05-20-2004 08:34 AM
Ports Yaki UNIX for Dummies Questions & Answers 6 10-10-2002 09:07 AM
aggregate ethernet ports under Solaris 98_1LE UNIX for Dummies Questions & Answers 4 02-13-2002 11:35 AM
ports djatwork UNIX for Dummies Questions & Answers 9 10-28-2001 11:34 AM

Closed Thread
 
Submit Tools LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 01-06-2004
Registered User
 

Join Date: Aug 2001
Posts: 179
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit! Stumble this Post!Spurl this Post!
Nonprivileged ports on solaris

Is there a way to change a privileged TCP port (say 80) to a nonprivileged one..
Forum Sponsor
  #2 (permalink)  
Old 01-06-2004
kduffin's Avatar
UN1X
 

Join Date: Nov 2003
Location: Virginia
Posts: 441
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit! Stumble this Post!Spurl this Post!
I believe that Solaris will only let you adjust the range, not specify on a per port basis. You can see the smallest (default 1024) using:

ndd -get /dev/tcp tcp_smallest_nonpriv_port

You can change it using:

ndd -set /dev/tcp tcp_smallest_nonpriv_port some#

I found a nice treatise on the subject at:

http://www.ncftpd.com/ncftpd/doc/misc/ephemeral_ports.html#Solaris

Cheers,

Keith
  #3 (permalink)  
Old 01-07-2004
Registered User
 

Join Date: Aug 2001
Posts: 179
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit! Stumble this Post!Spurl this Post!
I have already tried to use ndd to set the smallest non privileged port, but it wont accept any thing below 1024.
  #4 (permalink)  
Old 01-07-2004
RTM's Avatar
RTM RTM is offline
Hog Hunter
 
Join Date: Apr 2002
Location: On my motorcycle
Posts: 3,039
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit! Stumble this Post!Spurl this Post!
From Sunsolve:
Quote:
In Solaris, the available range of TCP/IP ports is 0 to 65535. However, there are some restrictions that apply:

Ports in the range 0 to 1023 are reserved for privileged (root) services, such as telnetd, ftpd, and so on.

Ports in the range 1024 to tcp_smallest_anon_port-1 are used for user services such as NFS server daemon, FONT server, and so on.
This leaves the range 32768 to 65535 available for general TCP/IP connections. To limit the range of the port numbers allocated for the general use, the following two ndd(1M) parameters can be used:
tcp_smallest_anon_port:
This determines the smallest TCP port number that may be used for an anonymous connection. Solaris allocates anonymous ports above 32768. The default value is 32768.


tcp_largest_anon_port:
This is the largest TCP port number that may be used for anonymous connections. The default value of this is 65535.
You mention port 80 - are you trying to change where http will be going? If so, you can change to port inside (example Apache) the httpd.conf. If not, give more information on what you are trying to accomplish.
  #5 (permalink)  
Old 01-07-2004
kduffin's Avatar
UN1X
 

Join Date: Nov 2003
Location: Virginia
Posts: 441
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit! Stumble this Post!Spurl this Post!
sssow,

Maybe you should elaborate on the problem you are trying to solve, rather than the solution you are trying to use. Why do you want to have port 80 be non-privliged?

Keith
  #6 (permalink)  
Old 01-08-2004
Registered User
 

Join Date: Aug 2001
Posts: 179
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit! Stumble this Post!Spurl this Post!
Sorry for not giving much details..We were trying to install Iplanet webserver as a non root user and it wont let us use standard port 80 as it is privileged one. I could install it with a different port like 8080.
  #7 (permalink)  
Old 01-08-2004
Registered User
 

Join Date: Oct 2002
Posts: 670
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit! Stumble this Post!Spurl this Post!
If you want to install I-planet as a non-root user, you need to specify a port above 1024.
  #8 (permalink)  
Old 01-08-2004
kduffin's Avatar
UN1X
 

Join Date: Nov 2003
Location: Virginia
Posts: 441
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit! Stumble this Post!Spurl this Post!
Well, since you are on a Solaris system, you can use the built-in RBAC facility to allow a non-privilged user to have rights to bind the port. I believe that the privilges that whatever role you use would need to include 35, 53, 68 and 70.

Are you familiar with the Solaris RBAC facility?

Cheers,

Keith
  #9 (permalink)  
Old 01-08-2004
kduffin's Avatar
UN1X
 

Join Date: Nov 2003
Location: Virginia
Posts: 441
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit! Stumble this Post!Spurl this Post!
dangral is correct though - the easiest way would be to simply use a different port. Do you have a load balancer or proxy in front of your webservers?

Keith
  #10 (permalink)  
Old 01-08-2004
Registered User
 

Join Date: Aug 2001
Posts: 179
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit! Stumble this Post!Spurl this Post!
For now we have installed using port 8080. There is no proxy or external load balancer used. We are trying this to evaluate a portal software. I am familiar with RBAC also..Thanks for all the information..

Last edited by sssow; 01-08-2004 at 02:32 PM.
Google UNIX.COM
Closed Thread

Thread Tools
Display Modes




All times are GMT -7. The time now is 04:29 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited.
The UNIX and Linux Forums Content Copyright ©1993-2008 The CEP Blog All Rights Reserved -Ad Management by RedTyger Visit The Global Fact Book

Content Relevant URLs by vBSEO 3.2.0

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101