Bug 220539 - RFE: run ddclient as a dedicated user
Summary: RFE: run ddclient as a dedicated user
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Fedora
Classification: Fedora
Component: ddclient
Version: rawhide
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Josh Boyer
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2006-12-21 23:03 UTC by Ville Skyttä
Modified: 2007-11-30 22:11 UTC (History)
1 user (show)

Fixed In Version: 3.7.1-1
Clone Of:
Environment:
Last Closed: 2007-03-03 08:39:16 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)
specfile changes (2.82 KB, patch)
2007-01-17 02:44 UTC, Josh Boyer
no flags Details | Diff

Description Ville Skyttä 2006-12-21 23:03:59 UTC
ddclient currently runs as root.  I suppose it could be fairly easily be made to
run as a dedicated less privileged user?  See eg. the ez-ipupdate package for
examples.

Comment 1 Josh Boyer 2006-12-26 19:48:30 UTC
(In reply to comment #0)
> ddclient currently runs as root.  I suppose it could be fairly easily be made to
> run as a dedicated less privileged user?  See eg. the ez-ipupdate package for
> examples.

Good idea.  I'll take a look at this shortly after I get back from vacation

Comment 2 Thomas Vander Stichele 2006-12-27 15:52:09 UTC
Josh, if you feel like taking over this package, let me know

Comment 3 Josh Boyer 2007-01-06 21:30:44 UTC
(In reply to comment #2)
> Josh, if you feel like taking over this package, let me know


Erm... I thought we had already agreed on that?  I took it right before FC-6
came out.  I'll forward you the email I have.


Comment 4 Josh Boyer 2007-01-17 02:44:34 UTC
Created attachment 145768 [details]
specfile changes

Ok, I'm obviously missing something here.  I've created the dedicated ddclient
user, but I'm missing how to actually start the program as that user.  Help?

Comment 5 Ville Skyttä 2007-01-17 21:15:53 UTC
Try "daemon --user ddclient $exec ..." in the init script.

By the way, it'll probably be necessary to do something about the PID file too
(eg. move to /var/run/ddclient/ddclient.pid and use "daemon --pidfile ..." in
the init script) - currently it's specified as pid=/var/run/ddclient.pid in the
config file but /var/run is not writable for non-root users.

Comment 6 Ville Skyttä 2007-03-03 08:39:16 UTC
Done in upcoming 3.7.1-1


Note You need to log in before you can comment on or make changes to this bug.