Help answer threads with 0 replies.
Go Back > Forums > Linux Forums > Linux - General
User Name
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.


  Search this Thread
Old 04-16-2003, 04:01 PM   #1
LQ Newbie
Registered: Mar 2003
Distribution: Gentoo
Posts: 7

Rep: Reputation: 0
Change UID of process/Privileged ports

I have a user on my server that would like to run an IRCD on port 23 (port 23 is his country's default IRCing port) for his IP. The only problem is, only privileged users can run daemons on ports lower than 1024. The only way I can think of to solve this problem would be to run the IRCD as root but that is extremely unsafe. Is there a way I could start the IRCD as root and switch it to another users UID while it's running?

If you have any other suggestions please let me know. Thanks.
Old 04-17-2003, 08:07 AM   #2
LQ Newbie
Registered: Nov 2002
Posts: 4

Rep: Reputation: 0
try sudo

the definition file would be /etc/sudoers

You would need to edit this file using "visudo"

try "man visudo" for usage.
-- default on RH7.2
# sudoers file.
# This file MUST be edited with the 'visudo' command as root.
# See the sudoers man page for the details on how to write a sudoers file.

# Host alias specification

# User alias specification

# Cmnd alias specification

# User privilege specification
root ALL=(ALL) ALL


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

Similar Threads
Thread Thread Starter Forum Replies Last Post
how to change uid group id mfrangos79 Linux - General 1 11-07-2005 08:19 PM
Process UID Question halfpower Linux - General 1 10-03-2005 01:25 PM
Privileged ports can only be forwarded by root??? sovietpower Linux - Networking 1 03-10-2005 06:45 AM
how to change UID linuxidiot2 Linux - General 2 07-30-2004 05:17 PM
using privileged ports below 1024 not possible AS ROOT??? flipper333 Slackware 2 01-23-2004 08:35 PM > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 01:32 PM.

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