Hello, now I have another error; I used the adduser command to add the kannel 
user (I dont know if there are another way to create a daemon user)
This is what I did (according to an advice in the freebsd forums)

radius# adduser
Username: kannel
Full name:
Uid (Leave empty for default):
Login group [kannel]:
Login group is kannel. Invite kannel into other groups? []:
Login class [default]:
Shell (sh csh tcsh nologin) [sh]:
Home directory [/home/kannel]:
Use password-based authentication? [yes]: no
Lock out the account after creation? [no]:
Username   : kannel
Password   : <disabled>
Full Name  :
Uid        : 1004
Class      :
Groups     : kannel
Home       : /home/kannel
Shell      : /bin/sh
Locked     : no
OK? (yes/no): yes
adduser: INFO: Successfully added (kannel) to the user database.
Add another user? (yes/no): no
Goodbye!

* And this is the error that now I am getting:

radius# /usr/local/etc/rc.d/kannel start
Starting kannel_bearerbox.
/usr/local/sbin/run_kannel_box: open: /var/run/kannel/kannel_bearerbox.pid: No 
such file or directory
Starting kannel_smsbox.
/usr/local/sbin/run_kannel_box: open: /var/run/kannel/kannel_smsbox.pid: No 
such file or directory
Starting kannel_wapbox.
/usr/local/sbin/run_kannel_box: open: /var/run/kannel/kannel_wapbox.pid: No 
such file or directory
radius#

* Then I created manually the pid files, and after trying to start the kannel 
daemon again I got these errors:

radius# /usr/local/etc/rc.d/kannel start
Starting kannel_bearerbox.
/usr/local/sbin/run_kannel_box: open: /var/run/kannel/kannel_bearerbox.pid: 
Permission denied
Starting kannel_smsbox.
/usr/local/sbin/run_kannel_box: open: /var/run/kannel/kannel_smsbox.pid: 
Permission denied
Starting kannel_wapbox.
/usr/local/sbin/run_kannel_box: open: /var/run/kannel/kannel_wapbox.pid: 
Permission denied

* I chowned the pid files to kannel user and finally the kannel services were 
started:
radius# chown kannel *.*
radius# /usr/local/etc/rc.d/kannel start
Starting kannel_bearerbox.
Starting kannel_smsbox.
Starting kannel_wapbox.

* Do you think this is normal? Will this kannel installation setup will behave 
as should after these sort of tweaks I made?

Thanks in advance.


----- Original Message -----
From: Nikos Balkanas
[mailto:[email protected]]
To: [email protected], Aldo Zavala
[mailto:[email protected]]
Sent: Sun, 14 Dec 2008 13:48:51 -0700
Subject:
Re: Start up Error: unknown login: kannel


> Hi,
> 
> As you may have guessed it doesn't have much to do with configuration. Just 
> create the user. I don't know why the installation script didn't create it, 
> but then again I don't have BSD. I know Alej was looking at FreeBSD for 
> sqlbox. Maybe he could take a look at this, too.
> 
> BR,
> Nikos
> ----- Original Message ----- 
> From: "Aldo Zavala" <[email protected]>
> To: <[email protected]>
> Sent: Sunday, December 14, 2008 10:18 PM
> Subject: Re: Start up Error: unknown login: kannel
> 
> 
> >I forgot to say that is a FreeBSD 7.0, and this is my current kannel.conf:
> >
> > group = core
> > admin-port = 13000
> > wapbox-port = 13002
> > admin-password = bar
> > #status-password = foo
> > #admin-deny-ip = ""
> > #admin-allow-ip = ""
> > wdp-interface-name = "*"
> > log-file = "/var/log/kannel-bearerbox.log"
> > #log-level = 0
> > box-deny-ip = "*.*.*.*"
> > box-allow-ip = "127.0.0.1"
> > access-log = "/var/log/kannel-access.log"
> > #store-file = "/tmp/kannel.store"
> > #ssl-server-cert-file = "cert.pem"
> > #ssl-server-key-file = "key.pem"
> > #ssl-certkey-file = "mycertandprivkeyfile.pem"
> >
> > group = wapbox
> > bearerbox-host = 127.0.0.1
> > log-file = "/var/log/kannel-wapbox.log"
> > #log-level = 0
> > syslog-level = none
> > access-log = "/var/log/kannel-wapaccess.log"
> >
> >
> > --- thanks!, A
> > ldo
> >
> > 
> 
> 

Reply via email to