Yes, you have no permission to do nothing when you are in the group
uucp.

In order to do something, the entry must be:

crw-rw----    1 uucp     uucp       4,  64 Jan  7 14:38 /dev/ttyS0

Use chmod to change it, and it must to work.

Anyway, the permissions in your system are weird because the owner
usually is root, and by default, the group is uucp or another but ever
has rw access by default.

HTH

Pietro

On Jan 8, 3:22 am, crimson <[email protected]> wrote:
> Hi all,
>
> I just started using smslib to send out SMS via GSM modem. I tried
> running misc.CommTest and below is the result I got. It seems there is
> no enough permission to access the serial port. I have read similar
> post on this issue and the advice is to add user to uucp group; but I
> have checked that I am already included in uucp grp. Any advice?
>
>  ls -l /dev/ttyS0
> crw-------    1 uucp     uucp       4,  64 Jan  7 14:38 /dev/ttyS0
>
> cat /etc/group | grep uucp
> uucp:x:14:uucp,smsuser <-- user already added to group
> smsuser:x:506:uucp
>
> ==============
> CommTest Results
> ==============
> Searching for devices...
>
> Found port: /dev/ttyS0
>        Trying at   9600...
>
>   no device found (java.lang.RuntimeException:
>   Error opening "/dev/ttyS0"
>   Permission denied)
>        Trying at  14400...
>
>   no device found (java.lang.RuntimeException:
>   Error opening "/dev/ttyS0"
>   Permission denied)
>        Trying at  19200...
>
>   no device found (java.lang.RuntimeException:
>   Error opening "/dev/ttyS0"
>   Permission denied)
>        Trying at  28800...
>
>   no device found (java.lang.RuntimeException:
>   Error opening "/dev/ttyS0"
>   Permission denied)
>        Trying at  33600...
>
>   no device found (java.lang.RuntimeException:
>   Error opening "/dev/ttyS0"
>   Permission denied)
>        Trying at  38400...
>
>   no device found (java.lang.RuntimeException:
>   Error opening "/dev/ttyS0"
>   Permission denied)
>        Trying at  56000...
>
>   no device found (java.lang.RuntimeException:
>   Error opening "/dev/ttyS0"
>   Permission denied)
>        Trying at  57600...
>
>   no device found (java.lang.RuntimeException:
>   Error opening "/dev/ttyS0"
>   Permission denied)
>        Trying at 115200...
>
>   no device found (java.lang.RuntimeException:
>   Error opening "/dev/ttyS0"
>   Permission denied)
> ...
>
> Thanks,
> crimson
-- 
You received this message because you are subscribed to the Google Groups 
"SMSLib for Java User Group" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/smslib?hl=en.


Reply via email to