LinuxQuestions.org
Go Job Hunting at the LQ Job Marketplace
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
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.

Notices



Reply
 
Search this Thread
Old 04-16-2003, 04:01 PM   #1
syntac
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
samri
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
 
  


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


All times are GMT -5. The time now is 11:45 PM.

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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration