Accessing /dev/ttyUSB0 to send SMS

Hugo van der Kooij hvdkooij at vanderkooij.org
Mon Jan 22 07:30:54 CET 2007


On Mon, 22 Jan 2007, Herman (ISTD) wrote:

> I use gnokii to send Nagios notification. Gnokii need to access
> /dev/ttyUSB0 in order to deliver message to Handphone. At present, I
> need to set nagios user to root group in order to accomplish this task.
> If the nagios user is not in root group, it could not access
> /dev/ttyUSB0.
>
> Previously when nagios user is not in root group, I tried to do some
> workarounds such as : chown nagios /dev/ttyUSB0 but it didn't work. Is
> there's any way to access /dev/ttyUSB0 without setting nagios user as
> root group ?

There is a touch one. USB devices get removed and recreated so if you set 
it once it will be gone the next time.

Hugo.

-- 
 	hvdkooij at vanderkooij.org	http://hvdkooij.xs4all.nl/
 	    This message is using 100% recycled electrons.

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Nagios-users mailing list
Nagios-users at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. 
::: Messages without supporting info will risk being sent to /dev/null





More information about the Users mailing list