On Mon, 11 Sep 2006, Alvaro Cornejo wrote:
Hi
Yes, that is one of things I do, but when rebooting or un-plug /re-plug the
device, the device ownership is again root...
i'm not sure about your operating system, but on freebsd there is a system
to run scripts as root at boot time which is where i would put such a
chgrp command.
cheers
iain
Alvaro
-----Mensaje original-----
De: Iain Dooley [mailto:[EMAIL PROTECTED]
Enviado el: Domingo, 10 de Septiembre de 2006 23:27
Para: Alvaro Cornejo
CC: [email protected]
Asunto: Re: Modem device owner
On Sun, 10 Sep 2006, Alvaro Cornejo wrote:
Hi
I´ve the following problem
I´ve an usb modem that is correctly recognized by the OS (Fed5) and
works fine.
However, when the machine reboots and or I need to disconnect the
modem, when reconecting it or after booting, bearbox can not open the
connection. I´ve a permision denied eror. After some debug I found
that the kannel init.d script that came with the fed5 rpm uses the
parameter --chuid kannel:kannel as an argument for starting kannel;
however, at boot or when reconnecting the usb device, /dev/ttyACM0,
the mapped usb device belong to root; so I have to either run chown
kannel before starting kannel in order to allow bearerbox write to the
modem or I´ve to edit the kannel init.d script and take out the chuid
parameter.
My questions are:
1) Is there a problem running kannel as root; other than a security
issue?
2) Is there a way to make the device belong or be write enabled to kannel
user/group at the moment the usb device is recognized by the system?
this may be a little naive of me but can't you chgrp /dev/YOURDEVICE
kannel and make it's permissions 664?
cheers
iain
Regards
Alvaro