Professional Web Applications Themes

How to start the fetchmail as general user instead of root? - Linux Setup, Configuration & Administration

hao <com> wrote:  If fetchmail is running as root, he will switch to the recipient user when delivery the mail, so, he is _not_ running as root after all. Anyway, you can use su - username fetchmail ... to start it as user 'username'. Man su for more info. Davide...

  1. #1

    Default Re: How to start the fetchmail as general user instead of root?

    hao <com> wrote: 

    If fetchmail is running as root, he will switch to the recipient
    user when delivery the mail, so, he is _not_ running as root
    after all.

    Anyway, you can use su - username fetchmail ...
    to start it as user 'username'. Man su for more info.

    Davide
    Davide Guest

  2. #2

    Default Re: How to start the fetchmail as general user instead of root?

    On Sun, 23 Nov 2003 16:01:17 +0000, hao <com> wrote: 

    If I am following you, you will need to put a script there that su's to
    a user then runs fetchmail the su's to the next user and so forth.

    This should do it:


    #!/bin/sh

    su - username -c fetchmail

    exit 0

    AC


    Alan Guest

  3. #3

    Default How to start the fetchmail as general user instead of root?

    HI,
    I want to configure the fetchmail start to work as usual user
    when power on.Some one suggested that i put "fetchmail ....." in
    the file /etc/rc.local.I found it really work but the owner is root.
    How could i do?
    hao Guest

  4. #4

    Default Re: How to start the fetchmail as general user instead of root?

    Davide Bianchi wrote:
     
    >
    > If fetchmail is running as root, he will switch to the recipient
    > user when delivery the mail, so, he is _not_ running as root
    > after all.
    >
    > Anyway, you can use su - username fetchmail ...
    > to start it as user 'username'. Man su for more info.
    >
    > Davide[/ref]

    Thanks,it works now.
    I use "su - user -c fetchmail......" in the rc.local file.
    hao Guest

Similar Threads

  1. Web User Control in general
    By Joachim Hofmann in forum ASP.NET Building Controls
    Replies: 0
    Last Post: January 9th, 09:59 AM
  2. Can't start acrobat 6.0 as admin have to use user mode to start
    By winstonlau@adobeforums.com in forum Adobe Acrobat Windows
    Replies: 5
    Last Post: June 10th, 05:28 PM
  3. root crontab run as different user
    By Martin Glora in forum Linux / Unix Administration
    Replies: 5
    Last Post: August 11th, 11:57 AM
  4. Start Menu - All Programs - All users/Current user (Default user)
    By Gary in forum Windows Setup, Administration & Security
    Replies: 2
    Last Post: August 11th, 05:52 AM

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
  •  

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139