LinuxQuestions.org
Visit the LQ Articles and Editorials section
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices

Reply
 
Search this Thread
Old 08-11-2003, 11:19 AM   #1
linuxlouis
LQ Newbie
 
Registered: Aug 2003
Posts: 3

Rep: Reputation: 0
binding <1024 ports with non root account?


Hello. I'm currently running RH 9.0 on a compaq proliant ML370 server. I just installed Lotus Domino Server 6.0 trial version and after executing the "server" console, it reports that it cannot bind the following services - smtp, httpd, pop3, imap.
for 1 of 2 reasons:
1) port already in use, busy
or
2) permission denied, insufficient privileges.

after examining the listening sockets with - netstat -an
and using the "chkconfig" command to verify that these services are shut off in all run levels, I have concluded that the only reason the LD - Lotus Domino - server cannot bind these ports is because of the user account trying to bind them, is not a root account. What is the method for adding a non root account the neccessary privileges to bind to ports less than 1024? Any help will be appreciated, or even if someone knows what reading material I can reference quickly......thanks...

-linuxlouis
 
Old 08-11-2003, 04:50 PM   #2
bastard23
Member
 
Registered: Mar 2003
Distribution: Debian
Posts: 275

Rep: Reputation: 30
linuxlouis,

Search for 'setuid' in the Domino documentation. The standard, somewhat insecure, method for allowing users to start programs with more privileges is to make the file owned by root, and doing a Set UID. The program will be owned by root not the user starting it.

chown root <filename>
chmod +s <filename>

Check the domino documentation to see if this should be done.

Are you sure the dominio server shouldn't be started by root. In the init scripts perhaps?

Good luck,
chris
 
Old 08-11-2003, 05:55 PM   #3
linuxlouis
LQ Newbie
 
Registered: Aug 2003
Posts: 3

Original Poster
Rep: Reputation: 0
yes...

chris, yeah it says explicitly not to run Lotus Domino as root. While going through the configuration of Lotus Domino, it asks which services you want to LD to run, of which you can select httpd, smtp, and the earlier mentioned. I was under the impression that after the setup, LD's setup program would take care of communicating the neccessary permissions with the operating system. What reinforced this intuition, was when I launched the LD's "server" console, it shows that it starts these services up...but they are not running on the ports. the only one that it fails on, is the httpd. So I have begun to consider alternatives, such as letting httpd being run by the lotus notes account. thanks for your suggestion...

-linuxlouis
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Allowing non-root to bind to ports < 1024? MWTJ Linux - Networking 8 08-12-2011 07:06 PM
Need Java program to listen on ports < 1024 w/o being root - possible brenan99 Linux - General 2 02-22-2005 02:12 PM
using privileged ports below 1024 not possible AS ROOT??? flipper333 Slackware 2 01-23-2004 07:35 PM
opening ports below 1024 without being root? meks Linux - Networking 2 12-25-2003 06:05 PM
Ports below 1024 peo66 Linux - Networking 4 06-14-2003 05:04 AM


All times are GMT -5. The time now is 02:00 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration