LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 08-02-2011, 11:21 AM   #1
szboardstretcher
Senior Member
 
Registered: Aug 2006
Location: Detroit, MI
Distribution: GNU/Linux systemd
Posts: 4,237

Rep: Reputation: 1656Reputation: 1656Reputation: 1656Reputation: 1656Reputation: 1656Reputation: 1656Reputation: 1656Reputation: 1656Reputation: 1656Reputation: 1656Reputation: 1656
How do you allow non root users to bind to ports less than 1024?


Have a program, erlang, that needs to bind to a port lower than 1024, as a non-root user.

How do you allow that on a system?
 
Old 08-03-2011, 10:36 AM   #2
tommylovell
Member
 
Registered: Nov 2005
Distribution: Raspbian, Debian, Ubuntu
Posts: 374

Rep: Reputation: 101Reputation: 101
I've never done it, but this may work.
Code:
setcap 'cap_net_bind_service=+ep' /<path to>/erlang
See 'man capabilities'.

Last edited by tommylovell; 08-04-2011 at 12:06 AM.
 
  


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 08:06 PM
Why can only root use ports <1024? jasohl Linux - Security 12 02-07-2010 10:58 PM
Why can only root listen to ports below 1024? mikaelstaldal LQ Articles Discussion 2 07-09-2008 03:34 AM
using privileged ports below 1024 not possible AS ROOT??? flipper333 Slackware 2 01-23-2004 08:35 PM
how to bind a <1024 port number with a non root users linuxlouis Linux - Networking 0 08-11-2003 12:10 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

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

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration