That's understood. Who told you to do it like that?
----- Original Message ----- From: "Aldo Zavala" <[email protected]>
To: "Nikos Balkanas" <[email protected]>; <[email protected]>
Sent: Monday, December 15, 2008 8:27 AM
Subject: Re: Start up Error: unknown login: kannel


I added the line kannel_enable="YES" to /etc/rc.conf in order to have the Kannel to start automatically when the system boots.

The output of ls -ld /var/run/kannel is:
[output]
drwxr-xr-x  2 kannel  wheel  512 Dec 14 21:10 /var/run/kannel
[/output]

And this is what top command shows:
[top]
 PID USERNAME  THR PRI NICE   SIZE    RES STATE  C   TIME   WCPU COMMAND
 644 kannel     13  96    0 16916K  3860K ucond  0   0:01  0.00% bearerbox
 737 mysql      10  96    0 62148K 20828K ucond  1   0:01  0.00% mysqld
 688 root        1  96    0  5896K  2348K select 0   0:00  0.00% nmbd
 747 root        1  96    0 26956K 14056K select 0   0:00  0.00% httpd
 699 root        1  96    0  7680K  5728K select 0   0:00  0.00% perl5.8.8
 766 root        1  96    0  5848K  3188K select 0   0:00  0.00% sendmail
654 kannel 1 8 0 7188K 2204K nanslp 0 0:00 0.00% run_kannel_bo
 834 aldo        1  96    0  8384K  3804K select 1   0:00  0.00% sshd
 671 root        1  96    0  3284K  2304K select 0   0:00  0.00% proftpd
 666 kannel      9  96    0 16404K  3816K select 1   0:00  0.00% wapbox
 831 root        1   4    0  8384K  3824K sbwait 0   0:00  0.00% sshd
1234 root        1   4    0  8384K  3832K sbwait 0   0:00  0.00% sshd
 532 root        1  96    0  3156K  1196K select 1   0:00  0.00% syslogd
 776 root        1   8    0  3184K  1248K nanslp 0   0:00  0.00% cron
 692 root        1  96    0  8088K  3748K select 0   0:00  0.00% smbd
1244 root        1  20    0  4452K  2428K pause  0   0:00  0.00% csh
[/top]


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


So you say that now you can log into radius as kannel without any passwords?

Doesn't sound very safe.

You shouldn't create the pid-files. What is the output from "ls -ld
/var/run/kannel/" ?

BR,
Nikos
----- Original Message ----- From: "Aldo Zavala" <[email protected]>
To: <[email protected]>; "Nikos Balkanas" <[email protected]>
Sent: Monday, December 15, 2008 1:56 AM
Subject: Re: Start up Error: unknown login: kannel


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