LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   chmod g+w /dev/ttyS0 (https://www.linuxquestions.org/questions/linux-general-1/chmod-g-w-dev-ttys0-18436/)

jISV 04-13-2002 01:53 PM

chmod g+w /dev/ttyS0
 
Is someone able to tell me why I'm unable to change any permissions on the device as I've listed in the subject?
No matter what I do, I'm unable to change it from
lr-xr-xr-x 1 jisv jisv 5 Apr 13 10:10 /dev/ttyS0
This I think might be the cause of wvdial not working, since I'm able to get a connection just using /usr/sbin/pppd /dev/ttyS0 115200 debug user <username> connect "/usr/sbin/chat -v '' AT OK ATD08089933001 CONNECT".
Anyone got any ideas?
Thanks.

DavidPhillips 04-13-2002 04:40 PM

try ls -l /dev/ttyS0

it should tell you what the link points to


It's usually a device not a link

like

crw-rw---- 1 uucp uucp 4, 64


you may need to recreate the node


jISV 04-13-2002 05:04 PM

It points to tts/0
crwSr-S--- 1 jisv tty 4, 64 Apr 13 22:53 /dev/tts/0
How do you recreate a node, is it hard? Funny thing is that it works with kPPP and I've written a script to login and it works with that. It's just wvdial for example (which I wanted to use) and yawmppp dock app, so it's strange.

DavidPhillips 04-13-2002 05:39 PM

seems like the link is not right

try removing the link an remaking it


rm /dev/ttyS0

ln -s /dev/tts/0 /dev/ttyS0





if you create a node you just use mknod


mknod /dev/ttyS0 c 4 64


then you would setup the permissions to 644 and the owner, group that your system is setup to use


Of course you may want a different permission...

DavidPhillips 04-13-2002 06:01 PM

I just saw your other post on this


you need to look in wvdial.conf

see what the device is


maybe it's /dev/ttyS0 and kppp is /dev/modem


so it depends on where /dev/modem is pointing


All times are GMT -5. The time now is 08:27 PM.