gnokii-users
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Gnokii-smsd-mysql question


From: Jan Derfinak
Subject: Re: Gnokii-smsd-mysql question
Date: Sat, 27 Mar 2010 22:14:18 +0100 (CET)
User-agent: Alpine 2.00 (LNX 1167 2008-08-23)

On Sat, 27 Mar 2010, Paul Darius wrote:

> /dev/ttyUSB0 permission is 660
> 
> seems that /etc/rc.d/init.d/gnokii-smsd will run when /dev/ttyUSB0 permission
> become 666.
> but this device permission always become 660 when the box reboot.
> 
> what should we do ?

I assume that script /etc/rc.d/init.d/gnokii-smsd drops the root privilege.
You must find what it realy does and under which user and group it starts
smsd. Then you must look on owner and group of /dev/ttyUSB0.
Then you must find a way how to unify owner or group of smsd and device or
way how to permanently change ownership or mode of device (for example in udev
rules). Consult documentation for your distribution.

jan

> ----- Original Message ----- From: "Jan Derfinak" <address@hidden>
> To: "Discussion forum for gnokii users." <address@hidden>
> Sent: Thursday, March 25, 2010 9:09 PM
> Subject: Re: Gnokii-smsd-mysql question
> 
> 
> > On Wed, 24 Mar 2010, Paul Darius wrote:
> > 
> > Hello.
> > 
> > > Initializing AT capable mobile phone ...
> > > Serial device: opening device /dev/ttyUSB0
> > > Gnokii serial_open: open: Permission denied
> > > Couldn't open ATBUS device: Permission denied
> > > AT bus initialization failed (1)
> > > Initialization failed (1)
> > > Serial device: closing device
> > > Telephone interface init failed: Command failed.
> > > Quitting.
> > > Cannot unlock device.
> > > GSM/FBUS init failed! (Unknown model?). Quitting.
> > > Command failed.
> > > 
> > > The gnokii --identify work fine as it can recognize the imei and other
> > > info
> > > BUT /etc/rc.d/init.d/gnokii-smsd can not open the ports
> > 
> > I don't know what /etc/rc.d/init.d/gnokii-smsd is doing. Try to run smsd by
> > hand under the same user as you run gnokii --identify.
> > What permission you have on /dev/ttyUSB0?
> > Do you have selinux or other security magic enabled?
> > 
> > 
> > jan
> > 
> > -- 
> > 
> > 
> > _______________________________________________
> > gnokii-users mailing list
> > address@hidden
> > http://lists.nongnu.org/mailman/listinfo/gnokii-users 
> 
> 
> 
> _______________________________________________
> gnokii-users mailing list
> address@hidden
> http://lists.nongnu.org/mailman/listinfo/gnokii-users
> 

-- 




reply via email to

[Prev in Thread] Current Thread [Next in Thread]