Wvdial failing on ioctl call as regular user
I followed the non-root dialout howto and now I can dial out as a regular user with wvdial - almost. the first time I use the computer, I have to dial out as root, otherwise it fails on an ioctl (I used strace to find out where it was failing) call with a permission denied error ( I think, It might be something different) - Anyway, checking the permissions on /dev/ttyS1 (my modem) results in:
Code:
crw-rw---- 1 root dialout 4, 65 2005-11-26 19:35 /dev/ttyS1 I am a member of the dialout group, so what the heck is wrong? PS: If you want, I can post the output of strace. |
"I followed the non-root dialout howto and now I can dial out as a regular user with wvdial - almost. the first time I use the computer, I have to dial out as root, otherwise it fails on an ioctl (I used strace to find out where it was failing) call with a permission denied error ( I think, It might be something different) - Anyway, checking the permissions on /dev/ttyS1 (my modem) results in:"
Different systems have different methods of enforcing dialout security. Here is a list of commands that unblock every wvdial security block that I have ever heard of. One of these might be the problem you have encountered. chown root:dialout /dev/ttyS1 chmod 660 /dev/ttyS1 chown root:dialout /dev/modem chown root:dialout /etc/wvdial.conf chmod 660 /etc/wvdial.conf chown root:dialout /etc/ppp/chap-secrets chmod 660 /etc/chap-secrets chown root:dialout /etc/ppp/pap-secrets chmod 660 /etc/pap-secrets chown root:dialout /etc/ppp/peers/wvdial chmod 660 /etc/ppp/peer/wvdial chmod u+s /usr/sbin/pppd chmod u+s /usr/bin/wvdial ---------------------------- Steve Stites |
Well, I did most of those to enable non-root dialout (not the suid stuff), and it works, except the first time if I didn't run it as root first, it fails on an ioctl call:
Code:
open("/var/lock/LCK..ttyS1", O_RDWR|O_NONBLOCK|O_CREAT|O_EXCL|O_LARGEFILE, 0644) = 4 |
I checked my permissions, and they are all right, except /usr/bin/wvdial isn't +s, which I want to avoid.
|
All times are GMT -5. The time now is 04:13 PM. |