Accessing /dev/ttyUSB0 to send SMS

Arno Lehmann al at its-lehmann.de
Mon Jan 22 11:04:32 CET 2007


Hallo,

On 1/22/2007 10:52 AM, Herman (ISTD) wrote:
> 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 ?

That's done by another part of the OS, for example udev.

Basically you configure how device links are created for hot-plugged 
devices.

You'll have to tell us the OS and its version at least... or look up the 
documentation for your system, or ask the mailing list / support / frum 
for your OS.

> Another question, is it common to run nagios as root ?

Depends.

I strongly adviso to not run Nagios as root - only processes that really 
need root permissions should be run as such, and Nagios definitely does 
not need root access to your system.

Arno

> 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

-- 
IT-Service Lehmann                    al at its-lehmann.de
Arno Lehmann                  http://www.its-lehmann.de

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