The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

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 01:19 PM
Ports... TechKnow UNIX for Dummies Questions & Answers 5 05-20-2004 11:34 AM
Ports Yaki UNIX for Dummies Questions & Answers 6 10-10-2002 12:07 PM
aggregate ethernet ports under Solaris 98_1LE UNIX for Dummies Questions & Answers 4 02-13-2002 03:35 PM
ports djatwork UNIX for Dummies Questions & Answers 9 10-28-2001 03:34 PM

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Bulgarian Greek Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 01-06-2004
sssow sssow is offline
Registered User
  
 

Join Date: Aug 2001
Posts: 179
Nonprivileged ports on solaris

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

Join Date: Nov 2003
Location: Maryland
Posts: 449
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
sssow sssow is offline
Registered User
  
 

Join Date: Aug 2001
Posts: 179
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 Forum Advisor  
Hog Hunter
  
 

Join Date: Apr 2002
Location: On my motorcycle
Posts: 3,039
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
kduffin kduffin is offline Forum Advisor  
UN1X
  
 

Join Date: Nov 2003
Location: Maryland
Posts: 449
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
sssow sssow is offline
Registered User
  
 

Join Date: Aug 2001
Posts: 179
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
dangral dangral is offline Forum Advisor  
Registered User
  
 

Join Date: Oct 2002
Posts: 699
If you want to install I-planet as a non-root user, you need to specify a port above 1024.
Closed Thread

Bookmarks

Tags
solaris

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 08:03 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0