Accessing /dev/ttyUSB0 to send SMS

Herman (ISTD) herman_ang at toyota.co.id
Mon Jan 22 10:52:55 CET 2007


May be sudo could solve this problem but not permanently, since sudo
only add root rights to user for certain period of time.
Is there any way to make devs such as serial line and USB controlled by
certain user ?
Another question, is it common to run nagios as root ?
Thx.

Regards,

Herman

> -----Original Message-----
> From: Andy Shellam (Mailing Lists) [mailto:andy.shellam-
> lists at mailnetwork.co.uk]
> Sent: Monday, January 22, 2007 4:12 PM
> To: Herman (ISTD)
> Cc: Nagios Users mailinglist
> Subject: Re: [Nagios-users] Accessing /dev/ttyUSB0 to send SMS
> 
> Herman (ISTD) wrote:
> > Dear all,
> >
> > 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 ?
> > Thank you.
> >
> 
> Will "sudo" not accomplish this?


-------------------------------------------------------------------------
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