Welcome to the most active Linux Forum on the web.
Go Back > Forums > Linux Forums > Linux - Networking
User Name
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.


  Search this Thread
Old 08-11-2003, 11:19 AM   #1
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
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...

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

Rep: Reputation: 30

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,
Old 08-11-2003, 05:55 PM   #3
LQ Newbie
Registered: Aug 2003
Posts: 3

Original Poster
Rep: Reputation: 0

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...



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 > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 06:10 AM.

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