Results 1 to 3 of 3

Thread: Upstart service ownership - when does it change?

  1. #1
    Join Date
    Aug 2012
    Beans
    2

    Question Upstart service ownership - when does it change?

    Best practice says that each process should be owned by it's own individual user. For example: Apache is owned by the apache user, Postfix is owner by the postfix user.

    Lets say I've installed pure-ftp and created a 'pureftp' system user that I want to own the pure-ftpd daemon.

    Since it's launched at boot time by upstart, the files are owned and run by root.

    At what point, and how, do I set the ownership of pure-ftpd to the prureftp system user?


    Thanks for taking the time to look at this.

  2. #2
    Join Date
    Aug 2010
    Location
    Lancs, United Kingdom
    Beans
    1,588
    Distro
    Ubuntu Mate 16.04 Xenial Xerus

    Re: Upstart service ownership - when does it change?

    Does this help?

  3. #3
    Join Date
    Aug 2012
    Beans
    2

    Re: Upstart service ownership - when does it change?

    Thanks for the link.

    I could hack the pure-ftpd init.d script to launch it under a different user …… but neither apache not Postfix do it this way this way within their scripts.

    There must be a more elegant way of doing this?

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •