Operating Systems > Linux and UNIX

modem issue

(1/4) > >>

Stryker:
Why do I get an error telling me that i cannot write to /dev/ttyS2 (which has my modem)? I've tried it with kppp and it just said busy, so then i went to the prompt and did:

echo ATDTX0, > /dev/ttyS2

which told me that i couldn't write to it. Anyone know of a solution?

voidmain:
I suspect you are not root. Do an:

$ ls -l /dev/ttyS2

Who owns the device, what group is assigned to it and what are the permissions? Probably yours looks like this:

crw-rw----  1 root uucp  4, 66 Aug 30 18:31 /dev/ttyS2

The above says that "root" owns the file and root has read/write access. It also says that any user in the "uucp" group has read/write access, no one else can touch it. If you want your userid to be able to access it do this as root:

# chmod a+rw /dev/ttyS2

Now, is your modem *really* on ttyS2 (COM3)? Remember ttyS0 is equivelant to COM1.

Stryker:

quote:Originally posted by void main:
I suspect you are not root. Do an:

$ ls -l /dev/ttyS2

Who owns the device, what group is assigned to it and what are the permissions? Probably yours looks like this:

crw-rw----  1 root uucp  4, 66 Aug 30 18:31 /dev/ttyS2

The above says that "root" owns the file and root has read/write access. It also says that any user in the "uucp" group has read/write access, no one else can touch it. If you want your userid to be able to access it do this as root:

# chmod a+rw /dev/ttyS2

Now, is your modem *really* on ttyS2 (COM3)? Remember ttyS0 is equivelant to COM1.
--- End quote ---


Yeah it's really on com3... or at least windows says it is. I'll try this after i'm done catching up on other posts. Thanks.

Stryker:
Well here's what I did...

--- Code: ---
--- End code ---

voidmain:
Yep, you've got problems. Mine works if it's any consolation.    Did you ever mention what distro you are using and the make/model/type of modem you are using? I may have overlooked it. It's good to get that info out right up front.

Navigation

[0] Message Index

[#] Next page

Go to full version