Re: wvdial permissions modem device
matt zagrabelny, 2003-Mar-07 09:16 -0600: i am currently stopping wvdial with: killall wvdial sometimes the permissions to /dev/modem (/dev/ttyS0) which are usually root dialout -rw-rw do not get reset to this. i know that when pppd is running that it removes group rw to the device, effectively making the permissions 600, and then when pppd is shutdown properly it restores them to 660. so then it appears that pppd is not shuting down properly. 1) does anyone else experience this problem? I have not. I run wvdial from a terminal and when I'm done I Ctrl-C in that terminal. The Ctrl-C always shuts down pppd properly. 2) do you know why sometimes wvdial can properly kill pppd and other times it cant? Nope. 3) what solutions have people used for this problem? I haven't needed one, but you could right a script that will kill both wvdial and find the PID of pppd and kill it too, if it exists. Something simple run from root, or preferrably sudo: bof #!/bin/sh echo Stopping wvdial... killall wvdial echo Checking pppd... PPPD_PID=`ps axww | grep pppd | awk '{print $1}'` if [ $PPPD_PID != ]; then kill -9 $PPPD_PID echo pppd process killed else echo pppd already dead fi eof Bear in mind, this bitty script is quick and dirty and needs testing. jc -- Jeff CoppockSystems Engineer Diggin' Debian Admin and User -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]
wvdial permissions modem device
i am currently stopping wvdial with: killall wvdial sometimes the permissions to /dev/modem (/dev/ttyS0) which are usually root dialout -rw-rw do not get reset to this. i know that when pppd is running that it removes group rw to the device, effectively making the permissions 600, and then when pppd is shutdown properly it restores them to 660. so then it appears that pppd is not shuting down properly. 1) does anyone else experience this problem? 2) do you know why sometimes wvdial can properly kill pppd and other times it cant? 3) what solutions have people used for this problem? thanks, matt -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]
wvdial permissions
I have been using wvdial without difficulty for weeks. Upon use this evening, I am getting permission denied cannot open /dev/ttyS2. Any Idea on why this has changed? No one has made any (known)changes. What should /dev/ttyS2 permissions be on a standalone desktop system? ls -l:crw-r-1 root dialout 4, 66... wvdial works fine as root (I understand I should not). Thanks -Wade Wade Barocsi [EMAIL PROTECTED]
Re: wvdial permissions
Wade Barocsi writes: I have been using wvdial without difficulty for weeks. Upon use this evening, I am getting permission denied cannot open /dev/ttyS2. Any Idea on why this has changed? A known bug in wvdial. The port should be group writeable. Just change it back. wvdial works fine as root (I understand I should not). There's no special reason not to run wvdial as root. -- John Hasler [EMAIL PROTECTED] Dancing Horse Hill Elmwood, Wisconsin
Wvdial permissions
I always end up doing horrible, insecure hacks in order to access the wvdial stuff, and since I am now using wvdial's home distribution, I'd like to do it properly. Here's the current error: cmayes:~$ wvdial -- Can't read config file: Permission denied Here's the config file's permissions: -rw-r- 1 root dialout 186 Mar 29 21:54 /etc/wvdial.conf This means that the dialout group can read it, right? So, I did this to the dialout line of /etc/group: dialout:x:20:cmayes: Is that the right way to do it? It still doesn't work, so aparrently not ;-) As always, your help is very much appreciated. Thanks! -Chris -BEGIN GEEK CODE BLOCK- Version: 3.1 GCS/CC/MC d- s+:+ a-- C++ US P L++ E W++ N- o? K? w O M- V- PS++ PE+ Y+ PGP- t+ 5 X+ R tv+ b++ DI+ D- G e+(++) h--- r++ z+ --END GEEK CODE BLOCK--
Re: Wvdial permissions
On Sat, 3 Apr 1999, Chris Mayes wrote: This means that the dialout group can read it, right? So, I did this to the dialout line of /etc/group: dialout:x:20:cmayes: close: dialout:x:20:cmayes you would separate users by commas if you had more than one in that group. the 'adduser' command will do this for you, actually: adduser cmayes dialout hth, -thomas .. please forgive my abrupt ending hre - but my conection is xtrememleyyhiclmelyey BAD hiccuppy etc must sign off - EF D8 33 68 B3 E3 E9 D2 C1 3E 51 22 8A AA 7B 98 umbra (!)