I'm using similar init-script than "kannel-init.d" in the utils folder.
If you do not modify it, kannel will be run as root. From the manual
page of start-stop-daemon:
 -c|--chuid
        Change to this username/uid before starting the process. You can
        also  specify  a group by appending a ':', then the group or gid
        in  the  same  way  as  you  would  for  the   `chown'   command
        (user:group).  When  using this option you must realize that the
        primary and suplimental groups are set  as  well,  even  if  the
        group'  options  is not specified. The group option is only for
        groups that the user isn't normally a  member  of  (like  adding
        per/process group membership for generic users like `nobody').

Before you try non-root user, you should take care of couple of things:
- Check port(s) Kannel is using. Only root can use ports under 1024.
- Check permissions of the serial ports. Kannel user should have read
and write access to the port gsm terminal is using.
- Check permissions of the kannel log and configuration files.

If something still goes wrong... Don't blame me. I have not tried that
by myself :-)

On Wed, 2003-11-19 at 09:12, Ghost wrote:
> Thanks Jaakko.
> 
> I have looked at the utils folder and saw a couple of
> init.d files. Is kannel going to run as root? How can
> I make it run as a user other than root.
> 
> Best regards,
> 
> Arnold
> 
> --- Jaakko Heikkil <[EMAIL PROTECTED]>
> wrote:
> > Hello Arnold,
> > 
> > Look at the "utils" folder in the source tree. There
> > are couple of
> > start-up scripts (init.d) and spec-files. Most
> > likely you have to modify
> > them before you can use them.
> > 
> > Jaska
> > 
> > On Sun, 2003-11-16 at 14:01,
> > [EMAIL PROTECTED] wrote:
> > > Date: Sat, 15 Nov 2003 23:53:55 -0800 (PST)
> > > From: Ghost <[EMAIL PROTECTED]>
> > > Subject: Kannel Installation
> > > To: [EMAIL PROTECTED]
> > > 
> > > Dear All,
> > > 
> > > I have a few questions as regards the installation
> > of
> > > Kannel. 
> > > 
> > > I compiled the source and rane 'make install' but
> > how
> > > can I get a start-up script so it can run as a
> > daemon
> > > and as a user other than root?
> > > 
> > > Can I get an rpm installation of kannel. If yes,
> > > please where can I get it. I cannot find it on
> > > www.kannel.org.
> > > 
> > > Best regards,
> > > 
> > > Arnold
> > 
> > 
> 
> 
> __________________________________
> Do you Yahoo!?
> Protect your identity with Yahoo! Mail AddressGuard
> http://antispam.yahoo.com/whatsnewfree
-- 
Jaakko Heikkil�


Reply via email to